[Breezy] "top" versus "gkrellm" - disparity in process numbers?
Peter Garrett
peter.garrett at optusnet.com.au
Thu Feb 9 20:49:44 UTC 2006
Hi Marius,
On Thu, 9 Feb 2006 13:14:47 +0200
Marius Gedminas <marius at pov.lt> wrote:
> I can confirm this.
>
> [Peter wrote]
> > For example currently "top" reports
> >
> > Tasks: 96 total, 2 running, 94 sleeping, 0 stopped, 0 zombie
> >
> > while gkrellm claims I have 150 processes .
[snip]
> top shows the total number of processes.
>
> gkrellm shows the total number of threads.
OK, that makes sense.
>
> ps -em will also list
> all threads for each process, as well as listing all processes -- the
> number of lines matches the sum of the numbers shown by top and gkrellm.
Aha! Thank you -
[snip]
> Linux kernel 2.4 used to assign different process IDs to each thread,
> so top also used to show the total number of threads. Linux 2.6 and the
> new threading library (NPTL) changed this.
>
> HTH,
It does, indeed - thanks again!
Peter
More information about the ubuntu-users
mailing list