Re: about /proc/meminfo and mmap

From: Tigran Aivazian (tigran@veritas.com)
Date: Sat Oct 21 2000 - 09:35:58 EST


On Sat, 21 Oct 2000 tigran@veritas.com wrote:

> On Sat, 21 Oct 2000, Cefiar wrote:
>
> > At 08:24 PM 20/10/00 -0400, Zhixu Liu wrote:
> > >My PC have 128M RAM, but in /proc/meminfo, it display 122424K, not
> > >128*1024K = 131072K, what does this mean?
> >
> > Sounds like something is stealing your ram.
> >
> > Usual suspects are..
>
> no, things are a lot simpler than that. /proc/meminfo shows the total
> amount of usable memory which obviously can't include the amount reserved
                                ~~~~~~~~~~~~~~~~~~~~~~~

looking at the code this no longer looks obvious -- does anyone know what
is the correct definition of totalram_pages? It would be nice if
totalram_pages stood for "total number of RAM pages" but it doesn't
seem to... It seems to be a sum of "low" and "high" pages. Does it include
kernel text/data/init or not?

> by the kernel text and data. Interestingly, it is not quite the same
> number as the one shown at boot "Memory: bla/bla...". The one at boot is
> nr_free_pages() whilst the one shown in /proc/meminfo is totalram_pages --
> they are different.

Tigran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:18 EST