From: Andrew Morton Subject: Re: [PATCH 1/2] mm: vmscan: Avoid direct reclaim scanning at maximum priority Date: Wed, 26 Jun 2013 12:39:25 -0700 Message-ID: <20130626123925.6a15ce3874fa4b0cc8390a0a@linux-foundation.org> References: <1372250364-20640-1-git-send-email-mgorman@suse.de> <1372250364-20640-2-git-send-email-mgorman@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Jiri Slaby , Valdis Kletnieks , Rik van Riel , Zlatko Calusic , Johannes Weiner , dormando , Michal Hocko , Jan Kara , Dave Chinner , Kamezawa Hiroyuki , Linux-FSDevel , Linux-MM , LKML To: Mel Gorman Return-path: In-Reply-To: <1372250364-20640-2-git-send-email-mgorman@suse.de> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On Wed, 26 Jun 2013 13:39:23 +0100 Mel Gorman wrote: > Page reclaim at priority 0 will scan the entire LRU as priority 0 is > considered to be a near OOM condition. Direct reclaim can reach this > priority while still making reclaim progress. This patch avoids > reclaiming at priority 0 unless no reclaim progress was made and > the page allocator would consider firing the OOM killer. The > user-visible impact is that direct reclaim will not easily reach > priority 0 and start swapping prematurely. That's a bandaid. Priority 0 should be a pretty darn rare condition. How often is it occurring, and do you know why? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org