Re: /proc/kcore size incorrect ? (OT)

From: J.A. Magallon
Date: Tue Oct 25 2005 - 11:06:25 EST



On 2005.10.25, at 18:02, Eric Piel wrote:

J.A. Magallon wrote:
:

It looks really silly to have a motd say "wellcome to this box, it has
2 xeons and 1022 Mb of RAM".

Ok, everyone seems to go with his idea on this thread so I'd like to share mine too :-P

If you want to know how much _physical_ memory there is on your computer, then a good way would be too use dmidecode. The parsing might require more work than a "du" but you will never have trouble with rounding...


Yes, I know...

If you remember, the question about 'how to guess this box mem' was
under something like "BTW ...", kinda collateral.

My concerns were about if the size of /proc/kcore should be what it is
now, and why...

--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
wolverine \ It's better when it's free
MacOS X 10.4.2, Darwin Kernel Version 8.2.0


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