From: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
To: torvalds@linux-foundation.org, akpm@linux-foundation.org,
Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, pbadari@us.ibm.com,
dhaval@linux.vnet.ibm.com
Subject: Re: Buggy idle time reported in /proc/uptime for SMP systems?
Date: Fri, 19 Oct 2007 00:42:56 +0530 [thread overview]
Message-ID: <20071018191256.GA29046@linux.vnet.ibm.com> (raw)
In-Reply-To: <20071018162513.GA19214@linux.vnet.ibm.com>
On Thu, Oct 18, 2007 at 09:55:13PM +0530, Srivatsa Vaddagiri wrote:
> The idle time reported in /proc/uptime (2nd field) seems to be the idle
> time of only CPU0. Shouldn't it reflect the total idle time on a SMP system?
> Do folks agree that it is a bug that needs to be fixed? If so, will send
> a patch ...
On further reflection, it doesn't sound buggy. Reporting idle time across all
cpus in /proc/uptime will cause idle time > uptime, which will be odd. I
guess if anyone wants strict idle time from all cpus, they can always
look at /proc/stat.
> Fyi, I see patches submitted to fix this way back in 2001
> [http://lkml.org/lkml/2001/3/17/55], but don't think they made in ..
--
Regards,
vatsa
prev parent reply other threads:[~2007-10-18 19:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-18 16:25 Buggy idle time reported in /proc/uptime for SMP systems? Srivatsa Vaddagiri
2007-10-18 19:12 ` Srivatsa Vaddagiri [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071018191256.GA29046@linux.vnet.ibm.com \
--to=vatsa@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=dhaval@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=pbadari@us.ibm.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.