RE: [PATCH/RFC] NOMMU: drop page cache whenever any alloc fails due to low memory

From: Zhang, Sonic
Date: Tue Jul 14 2009 - 23:28:17 EST


The reclaim is not that aggressive.

Sonic

-----Original Message-----
From: Peter Zijlstra [mailto:peterz@xxxxxxxxxxxxx]
Sent: Tuesday, July 14, 2009 10:31 PM
To: Mike Frysinger
Cc: linux-kernel@xxxxxxxxxxxxxxx;
uclinux-dist-devel@xxxxxxxxxxxxxxxxxxxx; Zhang, Sonic; David Howells
Subject: Re: [PATCH/RFC] NOMMU: drop page cache whenever any alloc fails
due to low memory

On Tue, 2009-07-14 at 10:22 -0400, Mike Frysinger wrote:
> From: Sonic Zhang <sonic.zhang@xxxxxxxxxx>
>
> Since no-mmu systems tend to be memory constrained, we want to drop
> all of the page cache whenever memory gets low. The only other option

> is to invoke the oom killer, and clearly that's not ideal.

Uhm,.. normally reclaim will already try to drop pagecache.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/