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

From: Andrew Morton (akpm@digeo.com)
Date: Mon Apr 07 2003 - 15:49:02 EST


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/



This archive was generated by hypermail 2b29 : Mon Apr 07 2003 - 22:00:32 EST