Re: /proc/kcore size incorrect ?
From: Stefan Smietanowski
Date: Mon Oct 24 2005 - 09:10:35 EST
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.
> I expected /proc/kcore to give the size of your installed memory, with
> the reserved BIOS areas just not accesible, but it looks like it already
> has them discounted, so gives 1022 Mb.
>
> It looks really silly to have a motd say "wellcome to this box, it has
> 2 xeons and 1022 Mb of RAM".
Then round it on 32MiB boundary? 128MiB boundary?
I did something else that "needed" the size of the memory installed
and that's how I did.
( I have an install script which I run at the end of an installation
of a system that does a lot of stuff the distro doesn't and one
of the things it does is simply to take the size of the memory
rounded up, multiply by 2 and then create a swapfile in a specified
location. )
// Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
iD8DBQFDXO1+Brn2kJu9P78RAp6aAJ9VXDLkwGHkewZtyIsajlcMugsuUwCdHKB6
da0LD9u6SHA4iL/OfHr6dD8=
=3DXl
-----END PGP SIGNATURE-----
-
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/