Hide userland threads by default - #2083
Conversation
This commit changes a long‑standing default, and might be one of the most visible changes yet. Userland threads were originally shown to help users learn about NPTL/LWP at a time when these threading models were still rare, but that historical purpose has since long faded. Modern applications routinely spawn large numbers of lightweight threads, and exposing all of them by default has become more distracting than informative. With NPTL now widely adopted and commonly used, hiding userland threads provides a cleaner, more relevant process view. The updated default enables hide_userland_threads, reducing clutter while still allowing users to inspect userland threads explicitly when needed. Please note that this change only affects new setups while existing configurations are kept unchanged unless they are manually adjusted.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthrough
Suggested reviewers: Poem
Merge Risk: ⚪ Minimal · up to This changes the default process view for new setups by hiding userland threads, while existing configurations remain unchanged and the prior behavior remains available through the documented controls. No actionable merge-blocking risk remains after normal checks and review. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
fasterit
left a comment
There was a problem hiding this comment.
etc -> etc.
Otherwise fine.
Try to find a shorter summary for the Changelog 😄 .
c69e29c to
11ded9b
Compare
|
Makes sense :) I toggle them often, depending on whether I'm interested in the inner workings of some processes or just want an overall look of the system. Here's an unsolicited wild idea that occurred to me the other day: what if clicking the thr and kthr counters of the Meter toggled their display on and off? I don't think anything in Meters is clickable yet (at least they weren't in my days), but seeing the thread gray out made this thought spring to my mind the other day. Cheers, and keep up the amazing work! <3 |
…icked Idea from Hisham in htop-dev#2083 (comment) Assisted-by: Microsoft Copilot/Claude Sonnet 4.6
This PR changes a long‑standing default, and might be one of the most visible changes yet. Userland threads were originally shown to help users learn about NPTL/LWP at a time when these threading models were still rare, but that historical purpose has since long faded. Modern applications routinely spawn large numbers of lightweight threads, and exposing all of them by default has become more distracting than informative.
With NPTL now widely adopted and commonly used, hiding userland threads provides a cleaner, more relevant process view. The updated default enables
hide_userland_threads, reducing clutter while still allowing users to inspect userland threads explicitly when needed. Please note that this change only affects new setups while existing configurations are kept unchanged unless they are manually adjusted.Please note: To restore the old behavior for your setup use the Shift+H (capital
H) toggle key while watching the process list OR hit F2 to enter setup, navigate theDisplay Optionsto the left and toggle theHide userland process threadsentry in theGlobal options:section on the right by pressing SPACE or ENTER once that entry is selected; hit F10 or q to leave the setup screen.