lkml.org 
[lkml]   [2000]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: about /proc/meminfo and mmap
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/

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