Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757742Ab1EMJxM (ORCPT ); Fri, 13 May 2011 05:53:12 -0400 Received: from cantor.suse.de ([195.135.220.2]:36251 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751892Ab1EMJxK (ORCPT ); Fri, 13 May 2011 05:53:10 -0400 Date: Fri, 13 May 2011 11:53:08 +0200 From: Michal Hocko To: Johannes Weiner Cc: KAMEZAWA Hiroyuki , Daisuke Nishimura , Balbir Singh , Ying Han , Andrew Morton , Rik van Riel , Minchan Kim , KOSAKI Motohiro , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [rfc patch 3/6] mm: memcg-aware global reclaim Message-ID: <20110513095308.GD25304@tiehlicka.suse.cz> References: <1305212038-15445-1-git-send-email-hannes@cmpxchg.org> <1305212038-15445-4-git-send-email-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1305212038-15445-4-git-send-email-hannes@cmpxchg.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1075 Lines: 27 On Thu 12-05-11 16:53:55, Johannes Weiner wrote: > A page charged to a memcg is linked to a lru list specific to that > memcg. At the same time, traditional global reclaim is obvlivious to > memcgs, and all the pages are also linked to a global per-zone list. > > This patch changes traditional global reclaim to iterate over all > existing memcgs, so that it no longer relies on the global list being > present. At LSF we have discussed that we should keep a list of over-(soft)limit cgroups in a list which would be the first target for reclaiming (in round-robin fashion). If we are note able to reclaim enough from those (the list becomes empty) we should fallback to the all groups reclaim (what you did in this patchset). -- Michal Hocko SUSE Labs SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic -- 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/