Re: Process's Percent Time


Subject: Re: Process's Percent Time
From: Chris (clear@bigpond.net.au)
Date: Wed Nov 07 2001 - 00:19:57 AKST


Patrick Laidlaw wrote:
>
> Hello Guys.
> I just ran ps -ax on a box that I am running. I was wondering
> about the column under time. Is that percent processor time being
> taken up or is that how long something is running. My assumption is
> percent processor time but please correct me if wrong.
>
> Patrick Laidlaw
>
> PID TTY STAT TIME COMMAND
> 1 ? S 0:02 init
> 2 ? SW 0:00 [kflushd]
> 3 ? SW 0:00 [kpiod]
> 4 ? SW 0:00 [kswapd]
> 218 ? SL 0:01 xntpd -A
> 267 ? SW 0:00 [squid]
> 270 ? S 1:56 (squid) -D
> 278 ? S 0:00 (unlinkd)
> 281 ? S 0:20 syslogd -m 0
> 291 ? SW 0:00 [klogd]
> 317 ? S 0:00 /usr/sbin/atd
> 330 ? S 0:00 crond
> 343 ? S 0:00 [slapd]
> 344 ? S 0:00 [slapd]
> 345 ? S 0:00 [slapd]
> 359 ? S 1:19 named
> 372 ? S 0:00 inetd
> 379 ? S 0:14 /usr/sbin/sshd
> 392 ? SW 0:00 [lpd]
> 399 ? S 0:00 [lpd]
> 416 ? S 0:04 /usr/sbin/exim -bd -q1h
> 456 ? S 0:01 httpd
> 520 tty1 SW 0:00 [mingetty]
> 521 tty2 SW 0:00 [mingetty]
> 522 tty3 SW 0:00 [mingetty]
> 523 tty4 SW 0:00 [mingetty]
> 524 tty5 SW 0:00 [mingetty]
> 525 tty6 SW 0:00 [mingetty]
> 526 ? S 0:00 /sbin/mgetty ttyS0
> 531 ? S 0:00 update (bdflush)
> 539 ? S 0:03 atalkd
> 763 ? SW 0:00 [papd]
> 15005 ? S 0:19 /usr/sbin/dhcpd
> 10116 ? S 0:00 httpd
> 10117 ? S 0:00 httpd
> 10118 ? S 0:00 httpd
> 10119 ? S 0:00 httpd
> 10120 ? S 0:00 httpd
> 10121 ? S 0:00 httpd
> 10122 ? S 0:00 httpd
> 10123 ? S 0:00 httpd
> 10124 ? S 0:00 httpd
> 10125 ? S 0:00 httpd
> 13551 ? S 0:00 /usr/sbin/sshd
> 13553 pts/1 S 0:00 -bash
> 13609 pts/1 R 0:00 ps -ax

According to the man pages it is the "cputime".
If you do a man ps then search for the section on "STANDARD FORMAT
SPECIFIERS" you'll see all the info you want about those headers and
then some.

-- 

Chris

~\\clear@bigpond.net.au//~ < ~\\//~ https://changing.dyndns.org IseekU 2579.7959222^2 658D73(hex)

"One World, one Web, one Program" - Microsoft promotional ad "Ein Volk, ein Reich, ein Fuhrer" - Adolf Hitler



This archive was generated by hypermail 2a23 : Wed Nov 07 2001 - 14:11:18 AKST