login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
3
Re: top displaying 9999% CPU usage
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Ilpo Järvinen <ilpo.jarvinen@...>
To: Frans Pop <elendil@...>
Cc: LKML <linux-kernel@...>, Alexander E. Patrakov <patrakov@...>
Subject:
Re: top displaying 9999% CPU usage
Date: Wednesday, October 3, 2007 - 10:43 am
On Wed, 3 Oct 2007, Frans Pop wrote:
quoted text
> On Wednesday 03 October 2007, you wrote: > > Try to capture the i/o log with the following command: > > strace -o top.log top > > Thanks for the suggestion. > > > This will show for sure whether the kernel gives out incorrect data or > > top misinterprets them. > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 5269 fjp 20 0 442m 61m 33m S 9999 3.1 0:34.12 kontact > > Here are the last two reads for PID 5269 from /proc before that: > > 15:48:51 stat("/proc/5269", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 > 15:48:51 open("/proc/5269/stat", O_RDONLY) = 10 > 15:48:51 read(10, "5269 (kontact) S 1 5100 5100 0 -1 4202560 58186 7891 290 1 2911 502 10 15 20 0 6 0 9225 464408576 15694 18446744073709551615 4194304 4365900 140733817144688 18446744073709551615 47998530367074 0 0 4098 83113 18446744073709551615 0 0 17 1 0 0 0\n", 1023) = 244 > 15:48:51 open("/proc/5269/statm", O_RDONLY) = 10 > 15:48:54 stat("/proc/5269", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 > 15:48:54 open("/proc/5269/stat", O_RDONLY) = 10 > 15:48:54 read(10, "5269 (kontact) S 1 5100 5100 0 -1 4202560 58186 7891 290 1 2912 500 10 15 20 0 6 0 9225 464408576 15694 18446744073709551615 4194304 4365900 140733817144688 18446744073709551615 47998530367074 0 0 4098 83113 18446744073709551615 0 0 17 1 0 0 0\n", 1023) = 244 > 15:48:54 open("/proc/5269/statm", O_RDONLY) = 10 > > The only change is in 2 consecutive columns: "2911 502" -> "2912 500". > Is processor usage calculated from those? Can someone explain how?
The latter seems to be utime ...decreasing. No wonder if arithmetics will give strange results (probably top is using unsigned delta?)... -- i. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
top displaying 9999% CPU usage
, Frans Pop
, (Wed Oct 3, 8:33 am)
Re: top displaying 9999% CPU usage
, Alexander E. Patrakov
, (Wed Oct 3, 9:03 am)
Re: top displaying 9999% CPU usage
, Frans Pop
, (Wed Oct 3, 10:04 am)
Re: top displaying 9999% CPU usage
, Ilpo Järvinen
, (Wed Oct 3, 10:43 am)
Re: top displaying 9999% CPU usage
, Ilpo Järvinen
, (Wed Oct 3, 10:51 am)
Decreasing stime running confuses top (was: top displaying 9...
, Frans Pop
, (Wed Oct 3, 3:27 pm)
Re: Decreasing stime running confuses top (was: top displayi...
, Willy Tarreau
, (Wed Oct 3, 4:24 pm)
Re: Decreasing stime running confuses top (was: top displayi...
, Frans Pop
, (Wed Oct 3, 7:32 pm)
Re: Decreasing stime running confuses top (was: top displayi...
, Luca Tettamanti
, (Thu Oct 4, 3:19 pm)
Re: Decreasing stime running confuses top
, Chuck Ebbert
, (Thu Oct 4, 3:32 pm)
Re: Decreasing stime running confuses top
, Christian Borntraeger
, (Thu Oct 4, 4:00 pm)
Re: Decreasing stime running confuses top
, Chuck Ebbert
, (Thu Oct 4, 4:21 pm)
[PATCH for testing] Re: Decreasing stime running confuses top
, Christian Borntraeger
, (Thu Oct 4, 5:10 pm)
Re: [PATCH for testing] Re: Decreasing stime running confuse...
, Frans Pop
, (Fri Oct 5, 11:49 am)
Re: [PATCH for testing] Re: Decreasing stime running confuse...
, Christian Borntraeger
, (Mon Oct 8, 12:49 pm)
Re: [PATCH for testing] Re: Decreasing stime running confuse...
, Ingo Molnar
, (Mon Oct 8, 1:00 pm)
Re: [PATCH for testing] Re: Decreasing stime running confuse...
, Chuck Ebbert
, (Thu Oct 4, 6:01 pm)
Re: [PATCH for testing] Re: Decreasing stime running confuse...
, Frans Pop
, (Fri Oct 5, 11:07 am)
Re: [PATCH for testing] Re: Decreasing stime running confuse...
, Luca
, (Fri Oct 5, 7:43 am)
Re: [PATCH for testing] Re: Decreasing stime running confuse...
, Christian Borntraeger
, (Thu Oct 4, 6:31 pm)
Re: top displaying 9999% CPU usage
, Jan Engelhardt
, (Wed Oct 3, 8:52 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Winkler, Tomas
RE: iwlwifi: fix build bug in "iwlwifi: fix LED stall"
Jeff Chua
2.6.27rc1 cannot boot more than 8CPUs
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Andrew Dickinson
tx queue hashing hot-spots and poor performance (multiq, ixgbe)
Hugh Dickins
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
594 guests
online.
Syndicate