Re: top and time



On Sat, 28 Jan 2006 21:07:33 -0800, 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
>
> I've noticed this before with other programs, why is there a time
> discrepancy in top?

From... you guessed! man time:

l: TIME -- CPU Time
Total CPU time the task has used since it started. When 'Cumulative
mode' is On, each process is listed with the cpu time that it and
its dead children has used. You toggle 'Cumulative mode' with 'S',
which is a command-line option and an interactive command. See the
'S' interactive command for additional information regarding this
mode.

so you process has used just over 25 and a half *minutes* of CPU time.

--
Ben.

.



Relevant Pages

  • Re: top and time
    ... > PID USER S PR %MEM VIRT SWAP RES UID NI P %CPU TIME TIME+ ... pre-emptive swaps). ...
    (comp.os.linux.development.apps)
  • Re: Java Timer
    ... > The problem with this approach is you will gobble up all the CPU time ... Which is also why for example old DOS games can't run on new computers. ... Beware the False Authority Syndrome ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Java Timer
    ... The problem with this approach is you will gobble up all the CPU time ... http://mindprod.com Java custom programming, consulting and coaching. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Configuring XP not to allow processes from taking 100% CPU timre
    ... Is there a way to configure Windows XP such that there should always be ... CPU time and the process is in an infinite loop, ... kill the process. ... Prev by Date: ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: cpu load problem on linux opengl programs
    ... > Why does such an application (synchronized to 60 frames) always make ... You need to surrender some CPU time to the OS using the Unix "sleep" ... Prev by Date: ...
    (comp.graphics.api.opengl)