Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3637137imm; Fri, 25 May 2018 09:00:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoeYmywHZIw/u8WRVsaLjBCA6sJlscILA8GDcnpcdijVaFwmIRquZgkL/hlHtZe4SYkYPtL X-Received: by 2002:a17:902:b28c:: with SMTP id u12-v6mr3238287plr.68.1527264051573; Fri, 25 May 2018 09:00:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527264051; cv=none; d=google.com; s=arc-20160816; b=lsGKTX0s+MHyVZnbRUoDN9VYZmA1L8saPkPAt0cLKwEP4fjv//6Xu8ybhO4a8e9rRI +65i70+2gSWmRpU05LvTsyaCx2G+OVEyhAbnO04L7FjsUSckmXyFQ5hyTDNEdKVLqOYU aFSq3vo0MnWNHQN2D85h/gZGPtluOHuVk5kMJs0FaiKxYTqqHDYEj2YI0JnymBwpN8Ou Wc77p1pSw6isooz8ymMn675Ch4tnZcIf425K/+Lvwj5Cl6BH1hRGL0nguSkMbcIMaUNq hyE/6G5hiDZlGTYkQcBwUC+c6ba/a3fCoTRwNWbvoS/jaRopywrdjT6iv/PMoCibeObU GVSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=8xLmFho/9F0mjhSJB7TEN09SJhRNZuonh8UZnET8XyE=; b=fzaDJEXynKH774Q4Zrw9q49E8n+IQUuCKJaCixwqY0Doht78xIeF+HbcJvXVQlFKMk lK0856HhoCjrIK+pQEu4N7MsMp1CzwJRO2gCWvrRyTOoGimFjtGRcCmarClg7gXHCNsJ /wdp/aZdd2jwNQAMSvrbtjPKK8k1vq/hpAZnmuQIcA/PkKDv9mgarDMj10paRQyKZ+lq d1XzjilhK5dgFzfEKlucTfm2psdR7nDIYQPfi9jmvgX7PIQelyjYpGVkHuz87sdbWJLo N6N1Q2liwSsVqXFY1ncBKl83voDBLrgPd39a6obQmYETKxWwl7pOTKoEgGO+KCmT6n16 tJOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=L7ykLAP6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12-v6si9936472pgu.358.2018.05.25.09.00.25; Fri, 25 May 2018 09:00:51 -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=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=L7ykLAP6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966981AbeEYP7p (ORCPT + 99 others); Fri, 25 May 2018 11:59:45 -0400 Received: from a9-114.smtp-out.amazonses.com ([54.240.9.114]:34406 "EHLO a9-114.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966464AbeEYP7n (ORCPT ); Fri, 25 May 2018 11:59:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1527263982; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=7uLo5ggm6ScZpAVb5iIo5Icaaszx5UE01PA0Ab0jczA=; b=L7ykLAP63uIohBD1JeacRlgxu0vOggFT8ajXepA1d9b2FrFj3rmYSLeGqO2iYiJu iKGT8gWpKKLkVrmuaS9tWSvzvsW0wGod1k4Ibs/rKEJAEOXjlVVdTrn3acxxaJ+tnQe DaiCu+5vBY2ymEy8BsW9zTu8HjPoq8PmkAdi4/vg= Date: Fri, 25 May 2018 15:59:42 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Vlastimil Babka cc: linux-mm@kvack.org, Roman Gushchin , Michal Hocko , Johannes Weiner , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Pekka Enberg , David Rientjes , Joonsoo Kim , Mel Gorman , Vijayanand Jitta Subject: Re: [RFC PATCH 4/5] mm: rename and change semantics of nr_indirectly_reclaimable_bytes In-Reply-To: <20180524110011.1940-5-vbabka@suse.cz> Message-ID: <010001639806f32c-c18e739a-feac-4c6d-bce0-61c410579310-000000@email.amazonses.com> References: <20180524110011.1940-1-vbabka@suse.cz> <20180524110011.1940-5-vbabka@suse.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2018.05.25-54.240.9.114 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 May 2018, Vlastimil Babka wrote: > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > index 32699b2dc52a..4343948f33e5 100644 > --- a/include/linux/mmzone.h > +++ b/include/linux/mmzone.h > @@ -180,7 +180,7 @@ enum node_stat_item { > NR_VMSCAN_IMMEDIATE, /* Prioritise for reclaim when writeback ends */ > NR_DIRTIED, /* page dirtyings since bootup */ > NR_WRITTEN, /* page writings since bootup */ > - NR_INDIRECTLY_RECLAIMABLE_BYTES, /* measured in bytes */ > + NR_RECLAIMABLE, /* all reclaimable pages, including slab */ > NR_VM_NODE_STAT_ITEMS We already have NR_SLAB_RECLAIMABLE and NR_RECLAIMABLE now counts what NR_SLAB_RECLAIMABLE counts plus something else. THis means updating two counters in parallel. Could keep the existing counter and just account for those non slab things you mentioned? Avoid counting twice and may provide unique insides into those non slab reclaimable objects. I'd like to see this.