[PLUG] RAM size

Sandy Herring sandy at herring.org
Thu Oct 24 02:15:42 UTC 2002


On Thu, 24 Oct 2002, BMDimaculangan wrote: 
> hi,
> 
> is there a way or a command in linux to see the RAM size without rebooting
> it....

Dan, Don, Rich and Ryan's suggestions are fine as long as you haven't
crossed a memory threshold...

CONFIG_NOHIGHMEM is not set
CONFIG_HIGHMEM4G=y
CONFIG_HIGHMEM64G is not set

...by adding or removing memory - and not recompiling the kernel. i.e., if
you had 2G of memory and added another 3G without recompiling the kernel,
/proc isn't going to report more than 4G. There is a BIOS interrupt which
will accurately tell you how much physical memory you have installed,
regardless of how the kernel was config'd. If you want to make yourself ill,
take a look at setup.S (on RH7.3, it's in /usr/src/.../arch/i386/boot). If
you're really clever, take a look at how Anaconda discovers your true
physical memory :-)

Sandy
-- 
Sandy Herring, RHCE                        o              sandy at herring.org
Peck of Pickled Pisces               __  o               http://herring.org/
UNIX or Web authoring questions?  |\/ o\  o  http://herring.org/finger.html
->http://herring.org/techie.html  |/\__/     http://herring.org/pub-key.asc
*sh, Perl, C, VBA, PICK Assembler, Data/Basic, PROC & profanity spoken here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20021023/b1e64914/attachment.asc>


More information about the PLUG mailing list