Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751550AbbHEBff (ORCPT ); Tue, 4 Aug 2015 21:35:35 -0400 Received: from mgwkm04.jp.fujitsu.com ([202.219.69.171]:27267 "EHLO mgwkm04.jp.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbbHEBfe (ORCPT ); Tue, 4 Aug 2015 21:35:34 -0400 X-SecurityPolicyCheck: OK by SHieldMailChecker v2.3.2 X-SHieldMailCheckerPolicyVersion: FJ-ISEC-20150223 X-SHieldMailCheckerMailID: ff9e6004b2aa431786ddac677ea12132 Subject: Re: [PATCH 0/3] Make workingset detection logic memcg aware To: Vladimir Davydov , Andrew Morton References: Cc: Johannes Weiner , Michal Hocko , Minchan Kim , Rik van Riel , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org From: Kamezawa Hiroyuki Message-ID: <55C16842.9040505@jp.fujitsu.com> Date: Wed, 5 Aug 2015 10:34:58 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 34 On 2015/08/03 21:04, Vladimir Davydov wrote: > Hi, > > Currently, workingset detection logic is not memcg aware - inactive_age > is maintained per zone. As a result, if memory cgroups are used, > refaulted file pages are activated randomly. This patch set makes > inactive_age per lruvec so that workingset detection will work correctly > for memory cgroup reclaim. > > Thanks, > Reading discussion, I feel storing more data is difficult, too. I wonder, rather than collecting more data, rough calculation can help the situation. for example, (refault_disatance calculated in zone) * memcg_reclaim_ratio < memcg's active list If one of per-zone calc or per-memcg calc returns true, refault should be true. memcg_reclaim_ratio is the percentage of scan in a memcg against in a zone. Thanks, -Kame -- 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/