New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
htop recognizes most user-space processes as kernel threads (!) #426
Comments
The htop output looks just fine to me, all processes listed as childs of kthreadd are indeed kernel threads, and every other process is a child of procd, which is our init system. |
http://stackoverflow.com/questions/12213445/identifying-kernel-threads process with old init file are fine |
Is there any comment from the procd developers? I patched procd in my router to set its own process group to 1 (or actually its process id =1), after which htop showed the previously misdetected non-kernel processes correctly (see below). Earlier only those process that had set their own process group, were detected as non-kernel processes.
I am not sure if that is the optimal way to change procd, but it seems to work. After that htop shows also the previously missing non-kernel processes, as their process group is now non-zero:
|
Hi, 2nd report of that problem in 3 days. i am working on a slightly
On 03/11/2014 19:07, hnyman wrote:
|
r43193 fixed things for trunk by changing procd to behave better. Its process group is no more 0, so the userspace processes get recognised correctly. The issue could maybe be closed, as trunk is fixed. BB will get fixed if current procd gets backported there. |
On 06/11/2014 23:04, hnyman wrote:
i am not sure this was all. i think that we need to also call setsid()
|
babeld: Update to version 1.8.4
Close openwrt#426. Signed-off-by: Nicolas Williams <nico@cryptonector.com>
Hello,
In order to view most user-space processes in htop, I need to show kernel threads in the setup.
There is obviously something wrong with this.
Also, command lines of those badly-recognized processes do not show up (because they're seen as kernel threads...).
I'm using BB r42853, but if I remember well this is happening since OpenWrt started using procd as init (I thought there was something wrong with my setup at the time so I didn't report it...).
This is a screen after enabling colors and tree too.
Regards,
Vittorio G
The text was updated successfully, but these errors were encountered: