Hello, From some time in 6.0 and -current top(1) shows by default also the kernel threads. But the top(1) manual page still says that the default behaviour is NOT to show them. Maybe something like this will be enough: --- usr.bin/top/top.local.1 Fri Jul 18 02:56:39 2003 +++ usr.bin/top/top.local.1.fix Wed Nov 30 18:51:35 2005 @@ -3,7 +3,7 @@ .SH DISPLAY OF THREADS The '-H' option will toggle the display of kernel visible thread contexts. -At runtime the 'H' key will toggle this mode. The default is OFF. +At runtime the 'H' key will toggle this mode. The default is ON. .SH DESCRIPTION OF MEMORY Mem: 9220K Active, 1032K Inact, 3284K Wired, 1MB Cache, 2M Buf, 1320K Free
On Wed, Nov 30, 2005 at 06:55:19PM +0200 I heard the voice of Niki Denev, and lo! it spake thus:> > But the top(1) manual page still says that the default behaviour is > NOT to show them.Because it's true. H mode shows the kernel-visible threads INDEPENDENTLY. Of course, it would be neat if we had CPU% accounting for threaded programs... -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.
On Wednesday 30 November 2005 11:55 am, Niki Denev wrote:> Hello, > > From some time in 6.0 and -current top(1) shows by default also the kernel > threads. > But the top(1) manual page still says that the default behaviour is NOT to > show them. > > Maybe something like this will be enough: > > --- usr.bin/top/top.local.1 Fri Jul 18 02:56:39 2003 > +++ usr.bin/top/top.local.1.fix Wed Nov 30 18:51:35 2005 > @@ -3,7 +3,7 @@ > > .SH DISPLAY OF THREADS > The '-H' option will toggle the display of kernel visible thread contexts. > -At runtime the 'H' key will toggle this mode. The default is OFF. > +At runtime the 'H' key will toggle this mode. The default is ON. > > .SH DESCRIPTION OF MEMORY > Mem: 9220K Active, 1032K Inact, 3284K Wired, 1MB Cache, 2M Buf, 1320K FreeThe manpage is correct. The problem is that kernel threads such as ithreads are really kernel processes currently. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org