From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757492AbYF2IVn (ORCPT ); Sun, 29 Jun 2008 04:21:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751629AbYF2IVb (ORCPT ); Sun, 29 Jun 2008 04:21:31 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:33574 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751339AbYF2IV3 (ORCPT ); Sun, 29 Jun 2008 04:21:29 -0400 Date: Sun, 29 Jun 2008 17:19:31 +0900 From: KOSAKI Motohiro To: Hugh Dickins Subject: Re: [PATCH] splitlru: memcg swapbacked pages active Cc: kosaki.motohiro@jp.fujitsu.com, Andrew Morton , Rik van Riel , Lee Schermerhorn , KAMEZAWA Hiroyuki , Balbir Singh , linux-kernel@vger.kernel.org In-Reply-To: References: Message-Id: <20080629171251.37CA.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.42 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > add_to_page_cache_lru puts PageSwapBacked pages on the active_anon lru, > so shouldn't mem_cgroup_charge_common mirror that by setting FLAG_ACTIVE? > > Signed-off-by: Hugh Dickins I don't think so. in global lru, active vs inactive anon ratio is controlled by inactive_anon_is_low(). but memcg doesn't have any sililar things. thus, this patch increase active anon. and too many active page cause decrease reclaim throuput. yes, We should implement SEQ replacement reclaim (like global reclaim) for memcg. I'm working on this.