Skip to contentSkip to conversation

[Fwd: Re: Total RAM in the system]

Fwd: Re: Total RAM in the system N. Varadarajan 1 participant 1 message Jul 11, 2001

lore
Share & tools
lore
#0 lore raw

hi Mike,
i tried that already on a 2.2.18 kernel and
num_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 inspected
num_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
module

Yes.. num_physpages is an exported symbol.

-Mike