Received: by 10.192.165.148 with SMTP id m20csp945424imm; Wed, 25 Apr 2018 10:02:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx48K9jxP9vEqegNpJY1f2S3pevf3NCW2l1MOnHDKHAPLnW33ZOAIY5rrp8cM5GjwWD3UcatQ X-Received: by 2002:a17:902:4483:: with SMTP id l3-v6mr30244077pld.282.1524675751883; Wed, 25 Apr 2018 10:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524675751; cv=none; d=google.com; s=arc-20160816; b=DXtHt+NUmVjsRMKN4SRNBnPYj5SY5afQyS3miZ3e2jBSRHYd8F69/ZCsVILHVB/kba 8TXXoRa3RvP8VlnEq5ydPVBCx3w4upSKPTvI27FJeUqL0CVq4taMgfDXOgiJ42GNAZBr VsBgCirss/bh5BLEG7950Gu8ha7ebu5w7kg/QNldWJFwiN8MTOCDNftSdhXj308Se+P6 W2UwO+d7xQvpoYH308SRxnesCXu2wUBRQhdq56XVtkItTHIkU4T2OtTRhXppzQg75Hag xVLtcxh4R75i9VkSUJTvuVXaxTtkm1XrtwQ4bcAx3mJynZucJeZUv9NcezpoPwMMiYBJ gj9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=YG1ecf4U1YdK+Cm3UTyL4yybMQ7LAFTNUDgDNpOnGM4=; b=YZOlVOFhXFlIUB1P4N6RaGd/7aZP6W1bCFW3pfUh/agBj9WLPZc/5mogLUaFFzMbio PetgbdG1lCrDbEwDCrfwLqZNOPtERI7cmwqGdKqZtsK0nhF4Lo4FX/kM1d1nJ5+YwF3T VDrdFJ3eyLoPCdD0edcu4JlbZbVpU1XLZMViZEI95aAhlHg4692vu29xJ7GWO0XNgItv 3CXWt//DYtcwEXFFu1r0kyMdTLJdip7wOyGIArtV5tSDB+vAJnq++/dj+C1ICOHT2wFd s4UoEg0pzYwdNSLeU54zEIrXjdaNlHrXIDu/Rq81QMgDUv+Sy4M9NSy7ASI1PhJDxEh4 ijmw== ARC-Authentication-Results: i=1; mx.google.com; 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 l9si960773pgq.691.2018.04.25.10.02.14; Wed, 25 Apr 2018 10:02:31 -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; 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 S1755455AbeDYRBG (ORCPT + 99 others); Wed, 25 Apr 2018 13:01:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:57711 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754618AbeDYRBF (ORCPT ); Wed, 25 Apr 2018 13:01:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B9462AD7C; Wed, 25 Apr 2018 17:01:03 +0000 (UTC) Subject: Re: [PATCH 1/3] mm: introduce NR_INDIRECTLY_RECLAIMABLE_BYTES To: Matthew Wilcox , vinayak menon Cc: Roman Gushchin , linux-mm@kvack.org, Andrew Morton , Alexander Viro , Michal Hocko , Johannes Weiner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Linux API References: <20180305133743.12746-1-guro@fb.com> <20180305133743.12746-2-guro@fb.com> <08524819-14ef-81d0-fa90-d7af13c6b9d5@suse.cz> <20180411135624.GA24260@castle.DHCP.thefacebook.com> <46dbe2a5-e65f-8b72-f835-0210bc445e52@suse.cz> <20180412145702.GB30714@castle.DHCP.thefacebook.com> <20180425155539.GB8546@bombadil.infradead.org> From: Vlastimil Babka Message-ID: <04bd46b5-b67b-9b0c-edb9-7e92427b9cef@suse.cz> Date: Wed, 25 Apr 2018 18:59:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180425155539.GB8546@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/25/2018 05:55 PM, Matthew Wilcox wrote: > On Fri, Apr 13, 2018 at 05:43:39PM +0530, vinayak menon wrote: >> One such case I have encountered is that of the ION page pool. The page pool >> registers a shrinker. When not in any memory pressure page pool can go high >> and thus cause an mmap to fail when OVERCOMMIT_GUESS is set. I can send >> a patch to account ION page pool pages in NR_INDIRECTLY_RECLAIMABLE_BYTES. > > Why not just account them as NR_SLAB_RECLAIMABLE? I know it's not slab, but > other than that mis-naming, it seems like it'll do the right thing. Hm I think it would be confusing for anyone trying to correlate the number with /proc/slabinfo - the numbers there wouldn't add up.