From: Llfrg@aol.com
To: linux-c-programming@vger.kernel.org
Subject: Problem with the /proc filesystem
Date: Wed, 17 Mar 2004 13:02:58 -0500 [thread overview]
Message-ID: <4D794923.2864FFD1.0000FADF@aol.com> (raw)
Hello,
I am reading the first line of /proc/stat once per second. Sometimes a bug seems to occur, which is the value of the cpu idle time become lower than the cpu idle time collected one second earlier. Does anyone know what may be happening? Below is the output of my program. Idle means the last cpu idle time read from /proc/stat and old_id is the previous cpu idle time read.
Thanks
###Program output:
Idle: 210097666 old_id: 210097666
user: 100 nice: 0 system: 3 idle: 0 total: 103
Idle: 210097666 old_id: 210097666
user: 101 nice: 0 system: 2 idle: 0 total: 103
Idle: 210097666 old_id: 210097666
user: 78 nice: 0 system: 25 idle: 0 total: 103
Idle: 210097667 old_id: 210097666
user: 97 nice: 0 system: 6 idle: 1 total: 104
Idle: 210097666 old_id: 210097667
user: 102 nice: 0 system: 2 idle: 4294967295 total: 103
BUUUUG
Idle: 210097666 old_id: 210097666
user: 101 nice: 0 system: 2 idle: 0 total: 103
Idle: 210097667 old_id: 210097666
user: 101 nice: 0 system: 2 idle: 1 total: 104
Idle: 210097666 old_id: 210097667
user: 101 nice: 0 system: 3 idle: 4294967295 total: 103
BUUUUG
next reply other threads:[~2004-03-17 18:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-17 18:02 Llfrg [this message]
2004-03-17 18:57 ` Problem with the /proc filesystem Florian Zimmermann
-- strict thread matches above, loose matches on Subject: below --
2004-03-17 19:16 Llfrg
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=4D794923.2864FFD1.0000FADF@aol.com \
--to=llfrg@aol.com \
--cc=linux-c-programming@vger.kernel.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 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).