Re: /proc/kcore size

From: J.A. Magallon (jamagallon_at_able.es)
Date: 01/12/04

  • Next message: Arjan van de Ven: "Re: smp dead lock of io_request_lock/queue_lock patch"
    Date:	Mon, 12 Jan 2004 10:08:31 +0100
    To: "J.A. Magallon" <jamagallon@able.es>
    
    

    On 01.12, J.A. Magallon wrote:
    > Hi all...
    >
    > To the request of one of my users, I installed the 'hinv' program (1.4pre1) by
    > Larry McVoy.
    >
    > Problem: it detects the memory amount in the box by stat'ing /proc/kcore.
    > Thats not the problem, but that the box has 1Gb of memory, and kcore is just
    > 896Mb big.
    >
    > Kernel is built with 4Gb support:
    >
    > annwn:/proc# free
    > total used free shared buffers cached
    > Mem: 1033172 1017772 15400 0 164792 556416
    > -/+ buffers/cache: 296564 736608
    > Swap: 1951856 8 1951848
    >
    > annwn:/proc# hinv
    > Main memory size: 896 Mbytes
    > ...
    >
    > annwn:/proc# ll /proc/kcore
    > -r-------- 1 root root 939528192 Jan 12 10:02 /proc/kcore
    >
    > Exactly the same as a box that has _really_ 896 Mb:
    >
    > werewolf:/proc# ll kcore
    > -r-------- 1 root root 939528192 Jan 12 10:02 kcore
    >
    > werewolf:/proc# free
    > total used free shared buffers cached
    > Mem: 905012 276008 629004 0 27268 109344
    > -/+ buffers/cache: 139396 765616
    > Swap: 345356 0 345356
    >
    > BUG ?
    >

    Ooops, sorry. annwn is a (patched)2.4.24 and werewolf is 2.6.1-mm2(+hfsplusfs).

    -- 
    J.A. Magallon <jamagallon()able!es>     \                 Software is like sex:
    werewolf!able!es                         \           It's better when it's free
    Mandrake Linux release 10.0 (Cooker) for i586
    Linux 2.6.1-jam2 (gcc 3.3.2 (Mandrake Linux 10.0 3.3.2-4mdk))
    -
    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: Arjan van de Ven: "Re: smp dead lock of io_request_lock/queue_lock patch"

    Relevant Pages

    • Re: 2.4.23aa2 (bugfixes and important VM improvements for the high end)
      ... > triggering the zone-normal shortage in 32G, ... Also bear in mind that as memory gets tight, ... Without shared pagetables, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: log-buf-len dynamic
      ... Wake up, dude. ... disk and memory. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: swsusp update: supports discontingmem/highmem
      ... driver is responsible for the memory should handle any required state ... Can't you back out nicely if you don't have enough memory for the image? ... Nigel Cunningham ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Request: I/O request recording
      ... > next reboot. ... > that everything which you will need in the subsequent boot is already in ... > pretty much a waste of time, gaining only 10% or so, from memory. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: lost memory on a 4GB amd64
      ... JM>> reproduce the crash in the simplest possible way, ... JM> AGP aperature settings in your original post ... AGP and PCI I mentioned only as "the bad guys stealing the memory" ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)