Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Incomplete process list #260

Closed
drwilly opened this issue Sep 5, 2015 · 3 comments
Closed

Incomplete process list #260

drwilly opened this issue Sep 5, 2015 · 3 comments

Comments

@drwilly
Copy link

drwilly commented Sep 5, 2015

I've recently noticed a problem with htop. The problem is that htop does not show all processes that are running on my system.
Interestingly the processes that are missing are the ones that are spawned early on during the boot process.
Currently, when sorting the processes by pid, the smallest pid, according to htop, is 164.
ps -e confirms that there are about 60 processes running between pid 1 and 164 that htop does not show. It's almost like htop just doesn't let me scroll to the top of the list.

My assumption is that this is related to me replacing sysvinit with s6.
One difference is that s6 does not have an init-executable that keeps running from system start to end, but starts off as a sequence of programs that exec into one another during boot. (described here)
Could it be that this execing of pid 1 causes the error I described?

@aueelis
Copy link

aueelis commented Sep 7, 2015

Did you enable kernel threads? The standard shortcut should be [Shift]-[K].

@drwilly
Copy link
Author

drwilly commented Sep 7, 2015

Enabling kernel threads does indeed reveal the remaining processes.
I still find it weird that s6's pid 1 classifies as a kernel thread under htop and not as a regular process.
pstree for instance displays the tree correctly (without showing kernel threads).

@drwilly
Copy link
Author

drwilly commented Sep 7, 2015

After further investigation, this issue looks a lot like openwrt/packages#426

@drwilly drwilly closed this as completed Sep 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants