Re: [2.5] Kernel won't release cache unless pushed

Andrew Morton (akpm@digeo.com)
Mon, 7 Apr 2003 13:49:02 -0700


Burton Windle <bwindle@fint.org> wrote:
>
> Hello. In both the 2.5 and 2.4 kernel series, if I do an 'ls -lR' on a
> directory with several gigs of data, the kernel will cache all of the
> metadata (in dentry_cache, I think), which is fine (we don't want ram to
> go to waste).
>
> However, large malloc's then fail, returning ENOMEM, because the kernel
> won't give up the memory.

Does

echo 1 > /proc/sys/vm/overcommit_memory

fix it?

There's something borked in the overcommit crystal ball gazing. It's on
my todo list somewhere.
-
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/