Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2934186imm; Thu, 24 May 2018 19:22:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZporcPqqkotO7pJ3NUzpJSt8CrEQ758iKlJgXDHRBo2fB2mOmfC7hrYlvyZq1qs3ysXCr8r X-Received: by 2002:a63:798f:: with SMTP id u137-v6mr441555pgc.202.1527214921138; Thu, 24 May 2018 19:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527214921; cv=none; d=google.com; s=arc-20160816; b=Qyvjjpnnu7VF8K5iM3+y/G6T0hZhEWfz3Xq2B+cVJOmnZ4msmWZiqScPdQ5eEM7qxm 33p+3nUCD6YrUlDL12gNsyZZ79hjxCq+EgNtxrw7xZtcru8xI58xbt/hBlSH3kfLf5Bb EDymUoJa3lXb3fuBa/yVvwncfknUBXz4IZ1zBAxl9bvViotnI+OBFGn/tT1BERxlIndO H87qyMncjrU6WBAImFVhHnHtoHh37dVyEgj+XR8X007oU5Qs16TUi6KZKNCyy7rStKw/ MERi7+LfNZ7enBAdCV4C75sOnhNiQMmz5SppgyVOcBrg3xgugQzjFW5uM8kY5D7uMx49 85fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=tlglL7kpdoy/gVmmRc5fUattkjLXj/lrzcU8zDQLXto=; b=jdRzx+gG/Z+whDEQ5kcwWWLipoOBl30Gfj6lfEwnPEEkts+zDE39aww35iwTAjlrAC PBrGiMLxnJCh1KBaYpfrwZOZ35+Zj/42uwALOlSoJu9Ydjzroqmzd2mQY3O5GFm0GGyh 4gxpxTOsSUXzh6zEozltlTZZmagSCxzDy4RI5W1gEfYS/0h+dlSlpd0LQdke8XDihojp GrfQdGJUCFSfcdQL/bsTBW894LFnIfBBTSmTXkD9Fqvv80uAwEBuCCDuxHUdRN1S9A4D Kv+0VqCVkfi24MPz1DAGWcV2STore16OP8sm8wHH2ldUpdxU+fkcFa9a780TNLNctivV l9mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=LRFATiHg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186-v6si22419836pfg.141.2018.05.24.19.21.46; Thu, 24 May 2018 19:22:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=LRFATiHg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S970924AbeEXPac (ORCPT + 99 others); Thu, 24 May 2018 11:30:32 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:51978 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966698AbeEXPa3 (ORCPT ); Thu, 24 May 2018 11:30:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tlglL7kpdoy/gVmmRc5fUattkjLXj/lrzcU8zDQLXto=; b=LRFATiHgaxXtxycekJDpKwyh5U mKGLME9y2UfPmNn4ng4jFwE57WbmC1be1/agwTdA2Chv1ltj0bI3mMMf23OUe37h+eqeXhtGX1UQR CacHjcTKgZPKq0bN1ScgK+KBrF+0y7c2LrgcX+6XGPfRQm/UAguh0j0hUmpAEmKEFkbU=; Date: Thu, 24 May 2018 11:32:25 -0400 From: Johannes Weiner To: Vlastimil Babka Cc: linux-mm@kvack.org, Roman Gushchin , Michal Hocko , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Mel Gorman , Vijayanand Jitta Subject: Re: [RFC PATCH 0/5] kmalloc-reclaimable caches Message-ID: <20180524153225.GA7329@cmpxchg.org> References: <20180524110011.1940-1-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180524110011.1940-1-vbabka@suse.cz> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 01:00:06PM +0200, Vlastimil Babka wrote: > - the vmstat/meminfo counter name is rather general and might suggest it also > includes reclaimable page caches, which it doesn't > > Suggestions welcome for all three points. For the last one, we might also keep > the counter separate from nr_slab_reclaimable, not superset. I did a superset > as IIRC somebody suggested that in the older threads or at LSF. Yeah, the "reclaimable" name is too generic. How about KReclaimable? The counter being a superset sounds good to me. We use this info for both load balancing and manual debugging. For load balancing code it's nice not having to worry about finding all the counters that hold reclaimable memory depending on kernel version; it's always simply user cache + user anon + kernel reclaimable. And for debugging, we can always add more specific subset counters later on if we need them.