lkml.org 
[lkml]   [1999]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 2.3.14 0 shared 0 swap
Date
>  I am a bit puzzled by the output of
> free however. With 96MB of memory I have not been able to drive it into
> swap or have any shared. Is this normal?

The shared mem count is set to zero by si_meminfo() in
arch/i386/mm/init.c which is the function called to fill
in all the values that "free" and /proc/meminfo displays.

The si_meminfo() in the other arch's does fill in the value;
it's only left zero'd out in X86. i guess they'll get
around to fixing that.

ben
<mason@soo.com>

void si_meminfo(struct sysinfo *val)
{
val->totalram = totalram;
val->sharedram = 0;
val->freeram = nr_free_pages << PAGE_SHIFT;
val->bufferram = atomic_read(&buffermem);
return;
}


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

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