lkml.org 
[lkml]   [2001]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 12:56    [W:0.311 / U:0.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site