Your message dated Mon, 18 Jul 2005 08:29:24 +1000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#234439: top: %CPU sum is sometimes more than 100
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Feb 2004 21:55:09 +0000
>From [EMAIL PROTECTED] Mon Feb 23 13:55:09 2004
Return-path: <[EMAIL PROTECTED]>
Received: from internet.centrum.cz [62.84.131.184]
by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
id 1AvO2e-0008Rc-00; Mon, 23 Feb 2004 13:55:09 -0800
Received: (qmail 11550 invoked from network); 23 Feb 2004 21:54:54 -0000
Received: from unknown (HELO quirk.cic) (62.84.140.141)
by internet.centrum.cz with SMTP; 23 Feb 2004 21:54:54 -0000
Received: from michal by quirk.cic with local (Exim 4.30)
id 1AvMwS-0003vC-FU; Mon, 23 Feb 2004 21:44:40 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Michal Cihar <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: top: %CPU sum is sometimes more than 100
X-Mailer: reportbug 2.48
Date: Mon, 23 Feb 2004 21:44:40 +0100
Message-Id: <[EMAIL PROTECTED]>
Sender: Michal Cihar <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_02_22
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no
version=2.60-bugs.debian.org_2004_02_22
X-Spam-Level:
Package: procps
Version: 1:3.1.15-3
Severity: normal
Sum of CPU percentage per process is sometimes more than 100% on single CPU
system:
top - 21:39:15 up 26 min, 3 users, load average: 1.04, 0.97, 0.78
Tasks: 77 total, 3 running, 74 sleeping, 0 stopped, 0 zombie
Cpu(s): 66.7% us, 33.3% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 515136k total, 426224k used, 88912k free, 34360k buffers
Swap: 1951888k total, 0k used, 1951888k free, 223360k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6897 root 25 0 25220 21m 3556 R 57.7 4.2 8:03.21 dpkg
14933 root 16 0 2076 1028 1872 R 57.7 0.2 0:06.11 top
[...]
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.0-nijel2
Locale: LANG=C, LC_CTYPE=cs_CZ
Versions of packages procps depends on:
ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
ii libncurses5 5.3.20030719-5 Shared libraries for terminal hand
-- no debconf information
---------------------------------------
Received: (at 234439-done) by bugs.debian.org; 17 Jul 2005 22:29:27 +0000
>From [EMAIL PROTECTED] Sun Jul 17 15:29:27 2005
Return-path: <[EMAIL PROTECTED]>
Received: from ppp114-209.static.internode.on.net (mail.enc.com.au)
[150.101.114.209]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1DuHdX-00024T-00; Sun, 17 Jul 2005 15:29:27 -0700
Received: from localhost (localhost [127.0.0.1])
by mail.enc.com.au (Postfix) with ESMTP id 49283B9BE4;
Mon, 18 Jul 2005 08:29:24 +1000 (EST)
Received: from mail.enc.com.au ([127.0.0.1])
by localhost (gonzo [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 31145-02; Mon, 18 Jul 2005 08:29:24 +1000 (EST)
Received: by mail.enc.com.au (Postfix, from userid 1000)
id 14F96B9C17; Mon, 18 Jul 2005 08:29:24 +1000 (EST)
Date: Mon, 18 Jul 2005 08:29:24 +1000
To: Ryan Lovett <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: Bug#234439: top: %CPU sum is sometimes more than 100
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.6+20040907i
From: [EMAIL PROTECTED] (Craig Small)
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at enc.com.au
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
On Thu, Jul 14, 2005 at 02:25:49PM -0700, Ryan Lovett wrote:
> I see this as well:
>
> $ /bin/ps haxo pcpu | awk '{ s += $0 } END { print s }'
> 403.5
>
> on a machine with 4 cpus.
The manual page explains this can happen.
%cpu %CPU cpu utilization of the process in "##.#" format.
Currently, it is the CPU time used divided by the time
the process has been running (cputime/realtime ratio),
expressed as a percentage. It will not add up to 100%
unless you are lucky. (alias pcpu).
I believe it is caused by the precision of the numbers found in the
kernel are not good enough for getting it any more accurate. In any
case there's noting procps can do about it.
- Craig
--
Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/ MIEE Debian developer
csmall at : enc.com.au ieee.org debian.org
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]