1819866 Members
2833 Online
109607 Solutions
New Discussion юеВ

Top Command TIME Format

 
karthkri
Advisor

Top Command TIME Format

In top command output it shows TIME column,

What is the format of TIME?

Is it Minutes: Seconds

or

is it Hours:Minutes

In the below output the first process "cognos" shows time as 7:16 ( is it minutes:seconds or Hours:minutes)

Eg:

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
1 ? 12051 cognos 245 22 1876M 1842M run 7:16 84.54 84.39 rsserver
0 ? 16561 cognos 245 22 1892M 1844M run 59:27 82.09 81.95 rsserver
1 ? 1636 root 154 20 4156K 364K sleep 8:24 2.26 2.25 vbda
1 ? 20001 cognos 152 20 102M 30704K run 0:19 1.78 1.78 UpfServer
0 ? 655 oracle 148 20 413M 5048K sleep 235:37 1.69 1.69 ora_lgwr_GLGPSP
0 ? 15764 oracle 156 20 407M 3016K sleep 0:00 3.55 1.60 oracleGLGPSP

Thanks in advance
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: Top Command TIME Format

>Is it Minutes: Seconds

Yes. I see some with 79:20.
SANTOSH S. MHASKAR
Trusted Contributor

Re: Top Command TIME Format

Hi,

If u see in man of top command it says

TIME: Number of system and CPU seconds the
process has consumed.

SANTOSH S. MHASKAR
Trusted Contributor

Re: Top Command TIME Format

Format is
min:ss i.e minute:seconds

karthkri
Advisor

Re: Top Command TIME Format

guys thanks,

HP Man page was not clear enough.

Thought it it Minutes:Seconds, but still had a confusion.

karthkri
Advisor

Re: Top Command TIME Format

Thanks
Dennis Handly
Acclaimed Contributor

Re: Top Command TIME Format

If it runs for days, you start seeing some "-"??
SANTOSH S. MHASKAR
Trusted Contributor

Re: Top Command TIME Format

Hi,

Yes, the format is not clearly mentioned in HP man page but if u see man ps
it says in EXTERNAL INFLUENCES for XPG4 behaviour

+ The TIME column format changes from mmmm:ss to [dd-]hh:mm:ss.

This means the default time format is

minutes:seconds