[BUG][2.4] /proc/kcore is a random generator ?

From: Willy Tarreau (willy_at_w.ods.org)
Date: 02/26/04

  • Next message: Ross Tyler: "Re: how does one disable processor cache on memory allocated with get_free_pages?"
    Date:	Thu, 26 Feb 2004 17:16:37 +0100
    To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
    
    

    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

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Ross Tyler: "Re: how does one disable processor cache on memory allocated with get_free_pages?"

    Relevant Pages

    • Re: radeonfb == blank screen (Thinkpad r50p - FireGL T2 1600x1200 LCD)
      ... The display works fine in VGA 80x24 ... > on initial boot, but when the radeonfb initialises, I get a blank screen ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Blank Screen in 2.6.0
      ... The good news is that I no longer get just a black screen at boot. ... can switch back to X just fine though. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: The /3GB Switch..
      ... I'll take a closer look at the /userva switch but sometimes it's best to let sleeping dogs lie. ... For 32 bit Windows the 4GB address ... Adding this to the end of your boot.ini boot line ...
      (microsoft.public.windowsxp.basics)
    • Re: The /3GB Switch..
      ... I'll take a closer look at the /userva switch but sometimes it's best to let sleeping dogs lie. ... For 32 bit Windows the 4GB address ... Adding this to the end of your boot.ini boot line ...
      (microsoft.public.windowsxp.basics)
    • Re: The /3GB Switch..
      ... I'll take a closer look at the /userva switch but sometimes it's best to let sleeping dogs lie. ... For 32 bit Windows the 4GB address ... Adding this to the end of your boot.ini boot line ...
      (microsoft.public.windowsxp.basics)