Re: 2.3.14 0 shared 0 swap

really mason@soo.com (mason@soo.com")
Fri, 20 Aug 1999 08:01:05 -0400 (EDT)


> 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/