[Fwd: Re: Total RAM in the system]
hi Mike,
i tried that already on a 2.2.18 kernel andnum_physpages is not
exported. num_physpages does not contain the
actual RAM present
in the system.
i booted up my linux with command line parameter mem=32M,
but my machine actually had 128M RAM. and from KDB i inspectednum_physpages which showed me only 32M
thanx
Quoted 11 lines · Mike Galbraith
Quoted 4 lines · N. Varadarajan
Hi,
Is there a way to know the amount of physical RAM
present in the system from a loadable kernel
moduleYes..
num_physpagesis an exported symbol.-Mike