From: Willy Tarreau <willy@w.ods.org>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: linux-kernel@vger.kernel.org
Subject: [BUG][2.4] /proc/kcore is a random generator ?
Date: Thu, 26 Feb 2004 17:16:37 +0100 [thread overview]
Message-ID: <20040226161637.GA4201@alpha.home.local> (raw)
In-Reply-To: <200402181337.i1IDbsXU010467@hera.kernel.org>
Hi all,
I'm encountering a rather strange behaviour here with 2.4.25 on a P4 HT,
even when I boot it with "nosmp" :
- du /proc/kcore says '525255' (I have 512 MB RAM)
- if I do it again many several times, sometimes it says '0'
- after a moment (or several tests, I don't know), it stabilizes to some
value (either 0 or 525255).
- then, just starting vmstat, or logging into the system is enough to
make it switch to the other value.
At first, I had the feeling that it displayed '0' when I have an even number
of processes, and 525255 when I have an odd number, but it's not even the case.
Once it doesn't move by itself, a few fork/exec are enough to switch the value.
If I boot in HT mode, sometimes I can reliably make it display 0 and 525255
alternatively, just as if the pid parity or CPU number was involved in the
result.
Update: same results with 2.4.26-pre1. du from coreutils 4.5.4 and 5.0.
This is amazing. Did anyone notice this ? A friend just told me that plain
2.4.22 on his notebook does the same !
Regards,
Willy
next prev parent reply other threads:[~2004-02-26 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-18 13:37 linux-2.4.25 released Marcelo Tosatti
2004-02-26 16:16 ` Willy Tarreau [this message]
2004-02-26 16:50 ` [BUG][2.4] /proc/kcore is a random generator ? Richard B. Johnson
2004-02-26 16:53 ` Willy Tarreau
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=20040226161637.GA4201@alpha.home.local \
--to=willy@w.ods.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.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
all inboxes | Powered by JetHome®