Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932867AbbLRPjo (ORCPT ); Fri, 18 Dec 2015 10:39:44 -0500 Received: from relay.parallels.com ([195.214.232.42]:55556 "EHLO relay.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932151AbbLRPjl (ORCPT ); Fri, 18 Dec 2015 10:39:41 -0500 Date: Fri, 18 Dec 2015 18:39:24 +0300 From: Vladimir Davydov To: Kamezawa Hiroyuki CC: Andrew Morton , Johannes Weiner , Michal Hocko , , , Subject: Re: [PATCH v2 7/7] Documentation: cgroup: add memory.swap.{current,max} description Message-ID: <20151218153924.GT28521@esperanza> References: <567374AB.3010101@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <567374AB.3010101@jp.fujitsu.com> X-ClientProxiedBy: US-EXCH.sw.swsoft.com (10.255.249.47) To MSK-EXCH1.sw.swsoft.com (10.67.48.55) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 651 Lines: 16 On Fri, Dec 18, 2015 at 11:51:23AM +0900, Kamezawa Hiroyuki wrote: ... > Could you give here a hint how to calculate amount of swapcache, > counted both in memory.current and swap.current ? Currently it's impossible, but once memory.stat has settled in the unified hierarchy, it might be worth adding a stat counter for such pages (equivalent to SwapCached in the global /proc/meminfo). Thanks, Vladimir -- 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/