LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-06-2013, 06:30 AM   #1
wastingtime
Member
 
Registered: Sep 2004
Posts: 86

Rep: Reputation: 17
linux top command shows odd value in TIME+ column


I run top and sort by TIME+ column. Notice that the first process' TIME+ has an odd format.
That large value shows up the moment I run this program and never changes. Is this a bug in top.

# top -version
top: procps version 3.2.8

Code:
# top
top - 04:24:14 up 5 days, 58 min, 14 users,  load average: 0.29, 0.25, 0.19
Tasks: 173 total,   1 running, 172 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.8%us,  0.5%sy,  0.0%ni, 96.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2005524k total,  1837696k used,   167828k free,   212692k buffers
Swap:  4088504k total,        0k used,  4088504k free,   614640k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
 6009 user       1   0  2104  788  576 S    0  0.0  71571:54 mbedit             
 3876 root       1   0  134m  48m  25m S    1  2.5  64:48.26 X                  
 2100 user       1   0  192m  54m  24m S    3  2.8  48:06.01 konsole            
 4273 user       1   0  342m  83m  20m S    0  4.3  47:33.05 plasma-desktop     
 4259 user       1   0  332m  78m  11m S    0  4.0  37:13.52 kwin
 
Old 02-06-2013, 06:39 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Maybe the process hangs and since it doesn't use the CPU, the CPU time doesn't change.
 
Old 02-06-2013, 07:16 AM   #3
wastingtime
Member
 
Registered: Sep 2004
Posts: 86

Original Poster
Rep: Reputation: 17
I'm using it so it definitely not hung. 71571 hours is much more than the machine's uptime of 5 days. And that value shows up as soon as the process starts.
 
Old 02-06-2013, 07:28 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Quote:
Originally Posted by wastingtime View Post
I'm using it so it definitely not hung. 71571 hours is much more than the machine's uptime of 5 days. And that value shows up as soon as the process starts.
That should be 71571 minutes!
64:48.26 -> 64 minutes, 48 seconds and 26 hundredths of a second.
 
Old 02-06-2013, 09:45 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Quote:
Originally Posted by wastingtime View Post
I'm using it so it definitely not hung. 71571 hours is much more than the machine's uptime of 5 days. And that value shows up as soon as the process starts.
Not hung (I used the wrong word) but even if in a sleeping or waiting status, the point is that it doesn't use the CPU so the TIME count is not increased. The TIME column shows the CPU time, not the elapsed time.
 
Old 02-06-2013, 01:52 PM   #6
wastingtime
Member
 
Registered: Sep 2004
Posts: 86

Original Poster
Rep: Reputation: 17
You right 71571 minutes, which is over 49 days, and uptime is less than 6 days. So my point is even if the process had run at 100% cpu since up, this number would still have to be much smaller.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Can You Top This? 15 Practical Linux Top Command Examples LXer Syndicated Linux News 0 01-09-2010 09:42 PM
top command - Time shown sameer29 Linux - Newbie 3 06-12-2008 02:59 PM
top command shows 249% usage pudhiyavan Linux - Server 7 02-27-2008 12:29 AM
wa (waiting time) from top command is big Horos23 Linux - Software 2 02-06-2008 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration