Re: top and time



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric wrote:
> I have been running a program for just under 4 days now
> but top shows it as only running:
> PID USER S PR %MEM VIRT SWAP RES UID NI P %CPU TIME TIME+
> 31742 root R 21 0.0 1584 1012 572 0 0 0 0.0 25:38 25:38.06
>
> In actuality the program has run
> 3 days 23 hrs, 37 minutes

The TIME and TIME+ values shown by top(1) are CPU times. By the system's
account, your process has only been active for about 25 minutes, 38 seconds.

In the rest of the time (3 days, 23 hours, 12 minutes, by your reconning), the
process has been swapped out for some reason or other (including I/O and
pre-emptive swaps).

HTH
- --
Lew Pitcher

Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFD3FiJagVFX4UWr64RAjRqAJ9vxRxWV6sGuWxxNYtHWg5HuGqnQgCg2SYm
RVYjnhgghRG0Uf5lzYit3RI=
=GIxs
-----END PGP SIGNATURE-----
.