nptl - is it beneficial and is it worth it?


Recommended Posts

Hey,

I've been doing some reading lately and I just found out about nptl. Unfortunately, the details for it are a little technical. What I'm wondering, is if its beneficial? If so, what are the benefits? I see that it allows the kernel to do all the scheduling and that parts of it have been optimized - is this noticable on the desktop?

Also, I'm wondering if its worth it - will I need to recompile much of my system in order to use nptl? Also, are there certain apps that don't work with nptl?

Thanks much

My system is so fast with NPTL. It is much more responsive than before. As another Gentoo user said, there is as much of a difference between going from non-nptl to nptl as there is when going from 2.4 to 2.6, and I think that is true. It does require the 2.6 kernel headers which are masked, but all you have to do is add your arch to the KEYWORDS in the ebuild. I did find that...uhhh...I'd say about 2 apps didn't compile the first time with NPTL, but they were easy fixes IIRC. I did do a complete reinstall of Gentoo for NPTL, but then again I have a lot of time on my hands. People have said that they just do glibc and I think gcc and it worked. Pretty much any app that has the nptl use flag should be reconfigured. "emerge -epv world | grep nptl" to see what you should recompile. Play around with it!

Well, since i've recompiled glibc, gcc, and binutils, as well as upgrading to an mm-patched 2.6.2-pre kernel, and prelinked everything, my box is flying, but I can't really say exactly which one of these has made the difference (to be honest, its not a massive difference, but this box was fairly snappy to begin with).

So yeah, I'd recommend it... just be careful to recompile your base stuff (glibc, gcc, binutils) and make sure you're running a recent kernel, because before i finished doing that, some of my apps were segfaulting on me.

From my understanding the big advantage is when you are running lots of threads. More usefull for servers than the desktop. It scales better and creates threads faster. Still a good idea if you are desktop user because it doesn't hurt anything and its kinda cool.

Awesome, performance upgrades are always nice, even if they only work with some Java apps (like I read on the gentoo forums, thanks for pointing me there static void :) ). I'll be installing this later.... just gotta recompile kernel with nptl, install linux-headers, add nptl to use flags, emerge glibc, gcc, binutils, wine as far as I can tell... I'll leave it on overnight.

Rezza, your post reminded me of something that's been bugging me for a while. I've tried using prelink according to the gentoo prelink guide on their site (prelink -afmR) and it runs for a few minutes, erroring on every single kde binary, but it *appears* to be working on other binaries. Unfortunately though, I don't notice the speed increase in startup time. I've left my prelink.conf file to be auto-generated by portage as it tells me to. Is this just happening because prelinking just doesn't work well/isn't very noticable on my computer, or am I doing something wrong?

Thanks for the help you guys =)

yeah MG-Cloud, I had the same thing happen the first time I used it... now I just make sure it doesn't try to preling anything from /opt or anything to do with KDE. It does improve startup times of some apps, but not by all that much. Firebird/thunderbird, abiword, xchat-2, etc are a few which are a bit quicker to open.

Ah, I see. Thanks rezza. I probably just didn't notice the improvement (because I prelinked right after school, a few hours after I had looked at my computer last... it probably felt the same, but was just a little faster).

Also, I think my project for tonight's gonna be nptl then, because frikkin mozilla-firebird-cvs refuses to work :D

Just a quick couple of questions though -

Do i recompile the kernel with nptl support first? If so, do I need to reboot with the updated kernel (and will it work even though my glibc/gcc is not nptl enabled?). Eg. Which comes first?

If it doesn't work, all I need to do is revert back to the old kernel and recompile gcc glibc and binutils without nptl, correct?

Thanks much

erroring on every single kde binary
that's because you gotta re-compile it with -fPIC in your cflags.
Two questions: 1) What's nptl and 2) What does it do?

1) Native POSIX Thread Library

2) Long story very short: It manages threads

A thread is like a task.

Thanks goalie - I'll keep that in mind for my next emerge of kde (i don't really use kde all that much, it's only installed for me to toy around with :p). Is the -fPIC flag smart to use with other packages as well?

Oh, and just wondering about any answers to my questions above :D Doh, I know it hasn't been long since I posted, but I'm bored atm ;)

Thanks !

Well, got mozilla-firebird-cvs working. Awesome. It's much better than 0.7 =)

Was doing a little more research on nptl and found out that ... basically, I apparently don't even need to recompile my kernel. I was sure I saw an NPTL option in there before, but I just took a look at it and couldn't find it again.

So basically then, i just need to install linux-headers, glibc, gcc, binutils w/ nptl, nvidia-glx (heard that you need to re-emerge it), and various stuff that has the nptl USE flag. This seems about right to me, but am I missing something? ;)

Also, it's possible to revert without damaging too much stuff, is it not?

Thanks guys. Sorry for asking so many questions ;)

Well i can't really tellyou any thing other than I use it :-P. Why? well i used Foedora Core 1 and it is used in there, could some one PLEASE tell me why i should use it and if i should use it when i upgrade my Kernel to (from Foedra Default) to 2.6.2

If it's already enabled, you should keep it enabled. If you want a technical explanation of nptl (maybe you will have more luck with it than I did), you can try: http://people.redhat.com/drepper/nptl-design.pdf

Well, I went ahead and took the plunge... recompiled glibc, gcc, binutils with the nptl useflags enabled, as well as any other packages that have the flag. Rebooted, and everything seems to be working fine. Is there any indication I can use to check to see if it's actually working though? ;-)

Thanks!

EDIT:

Thought I'd add this:

U I [ Found these USE variables in : sys-libs/glibc-2.3.3_pre20040117 ]
 + + nls   : unknown
 - - pic   : unknown
 - - build : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping.
 + + nptl  : unknown

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • BleachBit 6.0.1 Beta by Razvan Serea When your computer is getting full, BleachBit quickly frees disk space. When your information is only your business, BleachBit guards your privacy. With BleachBit you can free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn't know was there. Designed for Linux and Windows systems, it wipes clean thousands of applications including Firefox, Microsoft Edge, Google Chrome, Opera, Safari, and more. Beyond simply deleting files, BleachBit includes advanced features such as shredding files to prevent recovery, wiping free disk space to hide traces of files deleted by other applications, and vacuuming Firefox to make it faster. Better than free, BleachBit is open source. BleachBit has many useful features: Delete your private files so completely that "even God can't read them" according to South Carolina Representative Trey Gowdy. Simple operation: read the descriptions, check the boxes you want, click preview, and click delete. Multi-platform: Linux and Windows Free of charge and no money trail Free to share, learn, and modify (open source) No adware, spyware, malware, browser toolbars, or "value-added software" Translated to 64 languages besides American English Shred files to hide their contents and prevent data recovery Shred any file (such as a spreadsheet on your desktop) Overwrite free disk space to hide previously deleted files Portable app for Windows: run without installation Command line interface for scripting and automation CleanerML allows anyone to write a new cleaner using XML Automatically import and update winapp2.ini cleaner files (a separate download) giving Windows users access to 2500+ additional cleaners Frequent software updates with new features Going beyond standard deletion of files, BleachBit has several advanced cleaners: Clear the memory and swap on Linux Delete broken shortcuts on Linux Delete the Firefox URL history without deleting the whole file—with optional shredding Delete Linux localizations: delete languages you don't use. More powerful than localepurge and available on more Linux distributions. Clean APT for Debian, Ubuntu, Kubuntu, Xubuntu, and Linux Mint Find widely-scattered junk such as Thumbs.db and .DS_Store files. Execute yum clean for CentOS, Fedora, and Red Hat to remove cached package data Delete Windows registry keys—often where MRU (most recently used) lists are stored Delete the OpenOffice.org recent documents list without deleting the whole Common.xcu file Overwrite free disk space to hide previously files Vacuum Firefox, Google Chrome, Liferea, Thunderbird, and Yum databases: shrink files without removing data to save space and improve speed Surgically remove private information from .ini and JSON configuration files and SQLite3 databases without deleting the whole file Overwrite data in SQLite3 before deleting it to prevent recovery (optional) BleachBit 6.0.1 Beta release notes: BleachBit 6.0.1 beta is now available for testing. This maintenance-focused release includes bug fixes, updated translations, and a range of safe enhancements. This release fixes a Windows security issue that could allow arbitrary file deletion during privileged cleaning (reported by Zeze with TeamT5). It also adds new cleaners (including a DNS cache cleaner, Claude Code, and Visual Studio Code forks), support for multiple Chrome and Edge profiles, new deep scan options for developer directories like node_modules and venv, and safer, faster file shredding. All Platforms Added cleaners for Claude Code, DNS cache, and many Visual Studio Code forks. Added support for multiple Chrome and Edge profiles. Chrome can now clean downloaded AI models. Deep Scan can optionally remove venv, __pycache__, node_modules, and .angular directories. Deep Scan is faster by skipping directories on the keep list. File shredding is safer, faster, and leaves fewer recoverable traces. Improved handling of cookies, symlinks, Unicode filenames, external processes, and configuration files. Improved Expert Mode warnings and long warning dialogs. Fixed crashes related to cleaner detection, invalid Unicode, and malformed cleaner data. Clipboard is now cleared automatically after shredding files via paste operations. Linux Added AppImage support. Added cleaners for Visual Studio Code, Codeium, Librewolf (.deb), Transmission (Flatpak), and Profanity. Improved Linux trash detection, including Snap-installed applications and mounted drives. Fixed Wayland root CLI issues and several Snap-related problems. Improved package dependencies, AppStream metadata, and desktop file handling. Fixed startup crashes when Python Requests is unavailable. Windows Fixed a security vulnerability that could allow arbitrary file deletion when cleaning with elevated privileges. Added %WindowsSystem% variable support. Improved clipboard clearing using native Windows APIs. Improved installer experience on unsupported Windows versions. Reduced installer size and improved application robustness. Fixed Unicode handling, filename anonymization, Git revision reporting, and splash screen stability. [full release notes] Download: BleachBit 6.0 | Portable | ~20.0 MB (Open Source) View: BleachBit Home page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • DriversCloud 12.1.6 by Razvan Serea With DriversCloud (formerly My-Config.com), you can explore your computer easily, safely and free. The application quickly scans your PC and identifies the hardware and software components. DriversCloud then establishes a list of the different drivers compatible with your OS and hardware. Download the drivers needed for the proper functioning of your computer. To detect your drivers, DriversCloud also displays a detailed summary of your hardware and software configuration, analyzes your BSOD, monitors in real-time your PC voltages and temperatures and lets you share your configuration online. Once the hardware components have been detected, you will be able to obtain with just a few clicks the latest drivers corresponding to the identified hardware. You can record your configuration on the site for free, and can get the corresponding URL to post the configuration to technical forums, e-mail and social networks. You can also download the detection result (the configuration) as a PDF file. To protect the user's privacy and data confidentiality, a 4-level confidentiality system was created that filters the XML marks and gives control to the user. The default level can be modified in the preferences. Using the maximum level will prevent the user from publishing his configuration and generating a corresponding PDF file. In non-connected mode, each XML configuration is stored on the server for one day (for practical reasons). However, you are given the opportunity to manually delete it. Created in 2004, and continually improved, My-Config.com has established itself on the web as a free service to PC users running Windows and Linux operating systems. The service is designed to work with the most common Internet browsers (Edge, Firefox, Chrome, Safari). Download: DriversCloud 64-bit | 20.0 MB (Freeware) Download: DriversCloud 32-bit | 18.9 MB Link: DriversCloud Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      agatameier earned a badge
      Week One Done
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
  • Popular Contributors

    1. 1
      +primortal
      516
    2. 2
      +Edouard
      193
    3. 3
      PsYcHoKiLLa
      147
    4. 4
      ATLien_0
      96
    5. 5
      Steven P.
      77
  • Tell a friend

    Love Neowin? Tell a friend!