From: Nathan March <nathan@gt.net>
To: xen-devel@lists.xensource.com
Subject: Re: Snmp cpuRawIdle showing double
Date: Thu, 07 Apr 2011 11:04:24 -0700 [thread overview]
Message-ID: <4D9DFCA8.3060608@gt.net> (raw)
In-Reply-To: <4D9CA833.2060506@gt.net>
On 4/6/2011 10:51 AM, Nathan March wrote:
> Dug into the net-snmp source code to figure out where it pulls that data
> from, here's a test case:
>
> x=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && sleep 60 &&
> y=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && echo -e
> "X:$x\nY:$y\nIDLE:" $(echo "scale=3; ($y-$x)/6000*100" | bc)
>
> xen1 ~ # x=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && sleep 60
> && y=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && echo -e
> "X:$x\nY:$y\nIDLE:" $(echo "scale=3; ($y-$x)/6000*100" | bc)
> X:15718848
> Y:15730453
> IDLE: 193.400
>
Anyone?
Could I ask some people to try running this script on their non-loaded
dom0 and see what it returns?
x=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && sleep 60 &&
y=$(cat /proc/stat | grep cpu0 | awk '{print $5}') && echo -e
"X:$x\nY:$y\nIDLE:" $(echo "scale=3; ($y-$x)/6000*100" | bc)
The Idle output should close to 100% per cpu in the dom0.
- Nathan
prev parent reply other threads:[~2011-04-07 18:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 21:10 Snmp cpuRawIdle showing double Nathan March
2011-04-06 17:51 ` Nathan March
2011-04-07 18:04 ` Nathan March [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=4D9DFCA8.3060608@gt.net \
--to=nathan@gt.net \
--cc=xen-devel@lists.xensource.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).