Messages in this thread |  | | Date | Wed, 11 Jul 2001 14:16:38 +0530 | From | "N. Varadarajan" <> | Subject | [Fwd: Re: Total RAM in the system] |
| |
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
Mike Galbraith wrote: > > On Wed, 11 Jul 2001, N. Varadarajan wrote: > > > 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |