From: "J.A. Magallon" <jamagallon@able.es>
To: "J.A. Magallon" <jamagallon@able.es>
Cc: Lista Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: /proc/kcore size
Date: Mon, 12 Jan 2004 10:08:31 +0100 [thread overview]
Message-ID: <20040112090831.GC2588@werewolf.able.es> (raw)
In-Reply-To: <20040112090404.GA2588@werewolf.able.es> (from jamagallon@able.es on Mon, Jan 12, 2004 at 10:04:04 +0100)
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))
next prev parent reply other threads:[~2004-01-12 9:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-12 9:04 /proc/kcore size J.A. Magallon
2004-01-12 9:08 ` J.A. Magallon [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-01-12 18:00 Luck, Tony
2004-01-12 18:52 ` Jesse Barnes
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=20040112090831.GC2588@werewolf.able.es \
--to=jamagallon@able.es \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.