From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx154.postini.com [74.125.245.154]) by kanga.kvack.org (Postfix) with SMTP id 7B2F26B004D for ; Mon, 23 Jan 2012 06:53:47 -0500 (EST) Received: by wicr5 with SMTP id r5so2610066wic.14 for ; Mon, 23 Jan 2012 03:53:45 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20120123112022.GB1707@cmpxchg.org> References: <20120123112022.GB1707@cmpxchg.org> Date: Mon, 23 Jan 2012 19:53:45 +0800 Message-ID: Subject: Re: [PATCH] mm: vmscan: ensure reclaiming pages on the lru lists of zone From: Hillf Danton Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: Johannes Weiner Cc: linux-mm@kvack.org, Michal Hocko , KAMEZAWA Hiroyuki , Ying Han , Hugh Dickins , Andrew Morton , LKML On Mon, Jan 23, 2012 at 7:20 PM, Johannes Weiner wrote= : > On Mon, Jan 23, 2012 at 12:47:34AM +0800, Hillf Danton wrote: >> Hi all >> >> For easy review, it is re-prepared based on 3.3-rc1. >> >> Thanks >> Hillf >> >> =3D=3D=3Dcut please=3D=3D=3D >> From: Hillf Danton >> Subject: [PATCH] mm: vmscan: ensure reclaiming pages on the lru lists of= zone >> >> While iterating over memory cgroup hierarchy, pages are reclaimed from e= ach >> mem cgroup, and reclaim terminates after a full round-trip. It is possib= le >> that no pages on the lru lists of given zone are reclaimed, as terminati= on >> is checked after the reclaiming function. >> >> Mem cgroup iteration is rearranged a bit to make sure that pages are rec= laimed >> from both mem cgroups and zone. > > It's not only possible, it's guaranteed: with the memory controller > enabled, the global per-zone lru lists are empty. > > Pages used to be linked on the global per-zone AND the memcg per-zone > lru lists. =C2=A0Nowadays, they only sit on the memcg per-zone lists, whi= ch > is why global reclaim does a hierarchy walk. > Thanks for getting me up to date 8-) Hillf -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org