Re: Memory detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 13 Nov 2003, Michael Blandford wrote:

>Can anyone suggest a reliable method of detecting the amount of memory
>is in an ia32 machine during the install when it is running the -BOOT
>kernel?
>
>I am trying to carve up disks based on ram, number of disks, etc and the
>only tricky part is the ram.

If you mean simply total RAM, then /proc/meminfo has all the info and
more.

If you mean the sizes of individual sticks of RAM, dmidecode (version 2)
can tell you, but you'll need to fetch it into a %pre environment.

If, and I haven't checked, /proc/meminfo is unavailable from some
reason, dmesg output has it too:
Memory: 253292k/262080k available (1175k kernel code, 6356k reserved,
986k data, 116k init, 0k highmem)

Cheers,
Phil




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux