top: what processes use the CPU?

2006-08-10 Thread Roberto Nunnari

Hello everybody.

Just a short question: Why top doesn't any more show what
processes use the CPU? I mean.. 0.0% idle and the sum of the
processes CPU doesn't reach 1.0%..

as an example, while make buildkernel top shows:

104 processes: 2 running, 97 sleeping, 5 zombie
CPU states: 88.3% user,  0.0% nice, 10.9% system,  0.8% interrupt,  0.0% 
idle

Mem: 521M Active, 239M Inact, 195M Wired, 5048K Cache, 112M Buf, 40M Free
Swap: 2027M Total, 68M Used, 1959M Free, 3% Inuse

  PID USERNAMEPRI NICE   SIZERES STATETIME   WCPUCPU 
COMMAND

62670 www  200   221M 29928K kserel 168:48  0.00%  0.00% java
74645 mailman   80  9408K  3208K nanslp  22:59  0.00%  0.00% python
74644 mailman   80 11412K  4436K na..

75160 root1200  9880K  8904K RUN  0:00  0.00%  0.00% cc1
63370 root 960  2668K  1808K RUN  0:00  0.00%  0.00% top
74398 root  80  3892K  3740K wait 0:00  0.00%  0.00% make


# uname -srp
FreeBSD 5.3-RELEASE-p31 i386

Please reply also to my mailbox, as I'm not on the list.

Thank you!
--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Mannofax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: top: what processes use the CPU?

2006-08-10 Thread Stefan Bethke


Am 10.08.2006 um 08:38 schrieb Roberto Nunnari:


Hello everybody.

Just a short question: Why top doesn't any more show what
processes use the CPU? I mean.. 0.0% idle and the sum of the
processes CPU doesn't reach 1.0%..

as an example, while make buildkernel top shows:


Because the cc processes are too short lived to consistently show up  
when top is scanning the process table?



Stefan

--
Stefan Bethke [EMAIL PROTECTED]   Fon +49 170 346 0140


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: top: what processes use the CPU?

2006-08-10 Thread Roberto Nunnari

Stefan Bethke wrote:


Am 10.08.2006 um 08:38 schrieb Roberto Nunnari:


Hello everybody.

Just a short question: Why top doesn't any more show what
processes use the CPU? I mean.. 0.0% idle and the sum of the
processes CPU doesn't reach 1.0%..

as an example, while make buildkernel top shows:


Because the cc processes are too short lived to consistently show up 
when top is scanning the process table?


Ok.. but as idle CPU shows 0.0%, there should be a way of getting
the processes that finished already living but caused that 0.0% idle..

What if your users are running lot of short lived processes?
How can you find them out?

Thank you.
--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: top: what processes use the CPU?

2006-08-10 Thread Stefan Bethke

Am 10.08.2006 um 11:09 schrieb Roberto Nunnari:


Stefan Bethke wrote:

Am 10.08.2006 um 08:38 schrieb Roberto Nunnari:

Hello everybody.

Just a short question: Why top doesn't any more show what
processes use the CPU? I mean.. 0.0% idle and the sum of the
processes CPU doesn't reach 1.0%..

as an example, while make buildkernel top shows:
Because the cc processes are too short lived to consistently show  
up when top is scanning the process table?


Ok.. but as idle CPU shows 0.0%, there should be a way of getting
the processes that finished already living but caused that 0.0% idle..

What if your users are running lot of short lived processes?
How can you find them out?


You can't with current FreeBSD tools.

Efforts are underway to port DTrace from Solaris, which allows  
gathering information like this, among many other interesting things.



Stefan

--
Stefan Bethke [EMAIL PROTECTED]   Fon +49 170 346 0140


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: top: what processes use the CPU?

2006-08-10 Thread Roberto Nunnari

Stefan Bethke wrote:

Am 10.08.2006 um 11:09 schrieb Roberto Nunnari:


Stefan Bethke wrote:

Am 10.08.2006 um 08:38 schrieb Roberto Nunnari:

Hello everybody.

Just a short question: Why top doesn't any more show what
processes use the CPU? I mean.. 0.0% idle and the sum of the
processes CPU doesn't reach 1.0%..

as an example, while make buildkernel top shows:
Because the cc processes are too short lived to consistently show up 
when top is scanning the process table?


Ok.. but as idle CPU shows 0.0%, there should be a way of getting
the processes that finished already living but caused that 0.0% idle..

What if your users are running lot of short lived processes?
How can you find them out?


You can't with current FreeBSD tools.

Efforts are underway to port DTrace from Solaris, which allows gathering 
information like this, among many other interesting things.



Stefan

--Stefan Bethke [EMAIL PROTECTED]   Fon +49 170 346 0140




Ok. Thank you Stefan.

Best regards.
--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: top: what processes use the CPU?

2006-08-10 Thread Chuck Swiger

Roberto Nunnari wrote:

Stefan Bethke wrote:

[ ... ]
Because the cc processes are too short lived to consistently show up 
when top is scanning the process table?


Ok.. but as idle CPU shows 0.0%, there should be a way of getting
the processes that finished already living but caused that 0.0% idle..

What if your users are running lot of short lived processes?
How can you find them out?


You could set up process accounting as documented here:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/security-accounting.html

--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: top: what processes use the CPU?

2006-08-10 Thread Roberto Nunnari

Chuck Swiger wrote:

Roberto Nunnari wrote:

Stefan Bethke wrote:

[ ... ]
Because the cc processes are too short lived to consistently show up 
when top is scanning the process table?


Ok.. but as idle CPU shows 0.0%, there should be a way of getting
the processes that finished already living but caused that 0.0% idle..

What if your users are running lot of short lived processes?
How can you find them out?


You could set up process accounting as documented here:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/security-accounting.html 





Thank you. I'll take a look at that.

--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]