[Pkg-xfce-devel] Bug#664208: Info received (xfce4-cpugraph-plugin: System load graph shows 100% load on unloaded cores, but cores are actually idle)
- Subject: [Pkg-xfce-devel] Bug#664208: Info received (xfce4-cpugraph-plugin: System load graph shows 100% load on unloaded cores, but cores are actually idle)
- From: stefan at erben.com (Stefan Erben)
- Date: Fri, 16 Mar 2012 19:40:32 +0100
- Message-id: <[🔎] 20120316184032.GA2734@erben.com>
- In-reply-to: <handler.664208.B.133191677111127.ackinfo@bugs.debian.org>
- References: <[🔎] 20120316165242.17820.50332.reportbug@jade.gems.erben.com> <handler.664208.B.133191677111127.ackinfo@bugs.debian.org>
Dear Maintainer,
the calculation n my first message is completely bogus because I got the
parenthesis wrong. Sorry.
while true; do grep "^cpu " /proc/stat; sleep 0.5;done\
|awk '{
used=$2+$3+$4+$7+$8
total=used+$5+$6
printf "used=%ld total=%ld load=%ld\n", used, total,
256*(used-prevused)/(total-prevtotal)
prevused=used
prevtotal=total
}'
This gives values of around 5 for the idle machine. So, that's not it.
cu, Stefan
--
Stefan Erben | "A paperless office has about as much | Pyramid Design
Aachen, Germany | chance as a paperless bathroom." (??) | ------------------
stefan at erben.com | -> PGP-key available <- | Software Development
Reply to: