Received: by 10.192.165.148 with SMTP id m20csp969955imm; Wed, 25 Apr 2018 10:25:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx499Il0xWBL6zUo9f0sqn0KxsNdv9GfjQ5nTIKVFXyqx2NgSwwX74AHoiquWG0KlmTOZFngu X-Received: by 10.101.66.6 with SMTP id c6mr24316416pgq.133.1524677117689; Wed, 25 Apr 2018 10:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524677117; cv=none; d=google.com; s=arc-20160816; b=DaaxzeAFsvvlFywfc63hwdUn59BJDQc4YGNE92cfMdjCNYndC+WYnIEsRsfn6CE0ak Y7HzhTHewUo354m1cJi1TVZkGp/5n7UWZk++WzbfQY2GUTIWu4xqSodavRQ8+1kBV1vN Vfb5+q5GAoVq5GQg1GWCPNtIcb31lSaAKfxDgzL9FTpMn0Cbn/xH6VR7cQtp3B60DnAb UnmU5hlr5nDIbvqKstMjkO0jq3UUWma2akYhpEAR6ZcxIMB7jaRXORn+oZI+JrbdtC5r uaNpARAS2zmhBtdyZZAAGvQiJ6vpPWBY5hhTtcDcA/h+cOasLhltbBmZovtlXL+HVZMl N5oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature:arc-authentication-results; bh=H38iki7v+zYsYyswIOKImS8fuw7za+oEI7Pp1IKXrDA=; b=gNygytY1yePsjqzep4bvdemiB7J7j0ZRgpP2kS8tzX3988OmYsQZMMlBEZZjobKIa0 hAE4zJlAHmyYF5h3OED1XkL/IP8D7ynN5dds/gG1u8vYx73aOE/Ac6YHndJiCv8nCXQp HomQb197GniQph4BnSrpVnDjJvppd4NfJFOBu2IQdZVT8np8kj0ntH9iQvTBu7E2eG78 o9yHjF3k1ORSbp7ePvj2MwMcqecmImDlywzYtQq1mv7IsFHbhnUxhktSuy5XcgDR+shY tDls9fbkbUgUHVSILAJy3bx6muGdhWAgoFSnLiVzVfmdoLcENwLgHVgE0v+Beb39S23/ yJDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=h8Pq/Kx2; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=igCBE+Zl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si18230244plb.90.2018.04.25.10.25.03; Wed, 25 Apr 2018 10:25:17 -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=@fb.com header.s=facebook header.b=h8Pq/Kx2; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=igCBE+Zl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755878AbeDYRXs (ORCPT + 99 others); Wed, 25 Apr 2018 13:23:48 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:57726 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754618AbeDYRXo (ORCPT ); Wed, 25 Apr 2018 13:23:44 -0400 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3PHLDil002763; Wed, 25 Apr 2018 10:23:28 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=facebook; bh=H38iki7v+zYsYyswIOKImS8fuw7za+oEI7Pp1IKXrDA=; b=h8Pq/Kx27r7wwOQJ0euj12RKWTAYFWs1czKX1PvuCJife3qVbGSBGttHO9/mgBuh695f /hdDi5GvvDebKLWbWYHMhKDi+6gblRTyjIzNO3GB2JaFbaSyMEOUwKnZY0hqOeUPKorK q+lZy6vIZSNrJqv+/qZ0fSFn8uANKC1QXRo= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2hjughggnx-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 25 Apr 2018 10:23:27 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.19) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 25 Apr 2018 10:23:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=H38iki7v+zYsYyswIOKImS8fuw7za+oEI7Pp1IKXrDA=; b=igCBE+Zl+j9Nj5AOSYBsGBaml5dJXqQ0IOS5W0/cL1mZBiBAYBrMToaQgC7wP2ljUp1BLEg0VWgs0n5hYS5HaXT2mc/6UzsDPzu6NJpUAOR7+c1prXiLSh1pU2ZVQsgIqzzXOPaplphnGq0E2BXhhCU6wGljDObZVXZz2c4eYRI= Received: from castle (2620:10d:c092:180::1:6b) by SN2PR15MB1087.namprd15.prod.outlook.com (2603:10b6:804:22::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Wed, 25 Apr 2018 17:23:19 +0000 Date: Wed, 25 Apr 2018 18:23:04 +0100 From: Roman Gushchin To: Vlastimil Babka CC: Vijayanand Jitta , vinayak menon , , Andrew Morton , Alexander Viro , Michal Hocko , Johannes Weiner , , , , Linux API Subject: Re: [PATCH 1/3] mm: introduce NR_INDIRECTLY_RECLAIMABLE_BYTES Message-ID: <20180425172258.GA8052@castle> References: <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> <69b4dcd8-1925-e0e8-d9b4-776f3405b769@codeaurora.org> <20180425125211.GB3410@castle> <20180425164845.GA7223@castle> <7fc2986e-b867-eb32-9124-d10ef6c1a3a3@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <7fc2986e-b867-eb32-9124-d10ef6c1a3a3@suse.cz> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [2620:10d:c092:180::1:6b] X-ClientProxiedBy: VI1PR0502CA0022.eurprd05.prod.outlook.com (2603:10a6:803:1::35) To SN2PR15MB1087.namprd15.prod.outlook.com (2603:10b6:804:22::9) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020);SRVR:SN2PR15MB1087; X-Microsoft-Exchange-Diagnostics: 1;SN2PR15MB1087;3:7W64Bl1DpM+7KCosyflseEZDxpCU5Co8MMinea20aLUE8gmJARN54e/E0ytex2FKYJFaxGQUX5UsYcLAiEf6u1X/GPeqKS0jvQxOOs46bJLSf6mkXuC08sTU+lFQT8b62MIf8wBiLpMqeHbUeSzAv9kfhMrC7DwvC6vr9cLtq77uxcjGyP4qfoB3+qs5KJrWLgcpPA5kd9ZKpc+sVI0szePacgGvnsQUlHtuc1EDlvipJUdJ4sQUbii4zVqUcpIg;25:eDByUWdzKI+BSLz4LFh3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JadSQbBs38evECmF1/xJCLkpEyCgigYmQtxoost9dcgp+P1AhiRHaRegjV0t3W4ja8;4:wBPf+Tt2qMDjct6mpAn5S2S54bMdIYHdLhPwPCRtYsmhizLDjJwL1pRxuB2yEvkLmyQ6z66YHsfoRIUax2iewiRxPx31WrZ1XPlPgLFjDwH+Ezan4U0nQSpPQDbM43+Xbn6CmzN8yv+Z2m8NC/IcKgAa569XagKxgrHrD0D2KBPDOTilgzmVeFTAfVLgOrfUaHg52kQELjAfb+z0V+SpCysJ0gYI9zuyqbeZduEEqvLepeGRXG+hQsEUPnetNrLmN1Js7W3pafN9wHQ0lNts4g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231232)(11241501184)(944501410)(52105095)(3002001)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:SN2PR15MB1087;BCL:0;PCL:0;RULEID:;SRVR:SN2PR15MB1087; X-Forefront-PRVS: 06530126A4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(346002)(376002)(39380400002)(396003)(366004)(39860400002)(199004)(189003)(69234005)(93886005)(59450400001)(4326008)(16526019)(446003)(52396003)(5660300001)(86362001)(6116002)(105586002)(53546011)(9686003)(25786009)(50466002)(68736007)(7416002)(11346002)(386003)(305945005)(316002)(6916009)(16586007)(33656002)(97736004)(39060400002)(52116002)(33716001)(58126008)(6246003)(76176011)(55016002)(7736002)(54906003)(6496006)(23726003)(47776003)(2906002)(33896004)(486006)(476003)(53936002)(478600001)(8676002)(229853002)(46003)(106356001)(81156014)(186003)(81166006)(8936002)(1076002)(6666003)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:SN2PR15MB1087;H:castle;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR15MB1087;23:slZ79gWm1rLuu8eFHqrqElZpC+3y+cnR67Yq+C6sM?= =?us-ascii?Q?D8LQCSMJvVehIuYOpywqYgGgNORvVWBxXXYuC9DGk+JOrd3KMqDCtt/rjBgP?= =?us-ascii?Q?vSH/887us2ucbgLo2zhjTPvJAJvtIINZX5hSejxqLE/EAqbg2g1lKzTqXTQS?= =?us-ascii?Q?CvAZZ9LAD3KfgQbU/wshDfgNgMNkPlhvNLZVEyA5Rq3rWYMrb9zQzFmu/BZJ?= =?us-ascii?Q?wx51TTALZqaQOMdbFSFrkWxnDmGSbVvPCDJ944bb9/CHt3IP2xM1Md2QLjhF?= =?us-ascii?Q?MWkRAy8KhynZIzrVnCdUBobQ6ASNW9Yatl77b8GwznIHkjirBTFzHeGfG71/?= =?us-ascii?Q?uENHosmdeXiK3/lTmhhxNWTNb+3Akj6W4GrFUct+XzytRWRE884lShGqE+Pk?= =?us-ascii?Q?r2Ri8laXkd7vjkdJ5j6R+1q4FEfKJANNuioxElcyvrLEfmqaNsQ4cHu7U6Fj?= =?us-ascii?Q?bFaxBC8VMCNO11lndNi7fBziR5xnJTf6rWumD2vzGeLK7JZsWUEKkYHy13AW?= =?us-ascii?Q?T3haWEFZbbMe2aDB1nGFVmzi1fnO9QpfZ0xtqrnLkil3stDM0AMH3pweuQeI?= =?us-ascii?Q?30HQqVmCm3zIVRud5ZspoTnG9dFDvYUhgl4MQqYeLAC99paQqO2VNIKz+1xU?= =?us-ascii?Q?cDCs+B2Q1Yb7yGjd54GKIOB20gmusOHt3Yovg3Cwjz9Ni46fm3IA1Kq+5Rkn?= =?us-ascii?Q?4cQj+W4BDixfMrZctEw3xYWnRLpA4xafiyUB8+0NR+IxvQzCYPf32tb9sL30?= =?us-ascii?Q?ksKzcXghbW4ai4g7j3k7Q297ISIRN5Zo6W6+jGlG3ObrQ622thH2IM8UR1TO?= =?us-ascii?Q?vZi0fDunZuUfrvaSgWEiVkUP9SuzW4voO+ha/MdzlkK5ErTWn7yyG1kmBm5H?= =?us-ascii?Q?i3cTbcAur1Ij3BwtfroviXAKjRVnHgwZpdy71uwJy+iaDHek7CTnNG9DpbkJ?= =?us-ascii?Q?7OODWl6sXe/9d8blapTROszhAXUye28oGXErwIKii3Y4M5xrOEWAwtymnxyn?= =?us-ascii?Q?jIWKmU+I7G1P0vyJ15zZO1th9vy2t8XCXeEvLK4UTGgpQwYecD3yRe0q1Izf?= =?us-ascii?Q?UI+2kYQfs7wthLzr2XUxvTMDVQgSzH86z8LhkvoyE6FVMI4xMKzirde7UbmT?= =?us-ascii?Q?QQR8hgogIYvlPZa1fJm5R8nfzUAEvtNB3OpFRHiMcgljdM3+rFHh8VdtTQDJ?= =?us-ascii?Q?j0nFuQMQJjQs5cOCRxjeyz8WVuMpH+yWNfTz9jLO3QXWaHMtNhciepwTE0nx?= =?us-ascii?Q?+imAa5Et1mU8Lqg/uLJsiQXBGYyx6UcVrkuLmBD+ye/1DOKVfgCIkiiI5u4F?= =?us-ascii?Q?1d+Yf4kHbH5zPn8oK0Hb5E2w/G/RT/uhC3r86A4kpE3GF93aqQZWa7capHez?= =?us-ascii?Q?NG4GohK2yxj6n485oSJ7QNbmYEPFyW24ODyTAIj3emghq+hp98fSOLg2VXsh?= =?us-ascii?Q?amJlyN1jg=3D=3D?= X-Microsoft-Antispam-Message-Info: yWf1BvosCLFTN7QAJsAr7X5LW8JnuDyTsclJuGSn46e9uHqGLj4a0PeBQV8rKXc8ya6f1oraC3gozSHieFGAmBnw6oK4VDGE4YIHIq07r+KuQwk7fdRBop8IS+94TntOc6oNQoN1NBm7EvpQwQbPRRS9DBb3lHSTpV9Xt5MWO8ufwru+zET9SMDArlPFYuUK X-Microsoft-Exchange-Diagnostics: 1;SN2PR15MB1087;6:HYK3KDlc761P6MmKhnog+R+6K4HJDC8u7r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NVxS2TffdaTkgxPS0W6GwgWKySf2YY/BHQ2CWis6XvxfMxrt+/HU3TY4dj9Q/VtLES14NgqJMJmWcjZ4lwIQ9Z7mFsMDsAH4Kd8h+JKxxdDeGizL9ouGoJzHQleU6nOqOgkzQfM0fxQU6o1t2w/2WQ= X-MS-Office365-Filtering-Correlation-Id: 6d817950-f118-4caf-1d95-08d5aad13ed6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 17:23:19.4086 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d817950-f118-4caf-1d95-08d5aad13ed6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR15MB1087 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-25_05:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 07:02:42PM +0200, Vlastimil Babka wrote: > On 04/25/2018 06:48 PM, Roman Gushchin wrote: > > On Wed, Apr 25, 2018 at 05:47:26PM +0200, Vlastimil Babka wrote: > >> On 04/25/2018 02:52 PM, Roman Gushchin wrote: > >>> On Wed, Apr 25, 2018 at 09:19:29AM +0530, Vijayanand Jitta wrote: > >>>>>>>> Idk, I don't like the idea of adding a counter outside of the vm counters > >>>>>>>> infrastructure, and I definitely wouldn't touch the exposed > >>>>>>>> nr_slab_reclaimable and nr_slab_unreclaimable fields. > >>>>>>> > >>>>>>> We would be just making the reported values more precise wrt reality. > >>>>>> > >>>>>> It depends on if we believe that only slab memory can be reclaimable > >>>>>> or not. If yes, this is true, otherwise not. > >>>>>> > >>>>>> My guess is that some drivers (e.g. networking) might have buffers, > >>>>>> which are reclaimable under mempressure, and are allocated using > >>>>>> the page allocator. But I have to look closer... > >>>>>> > >>>>> > >>>>> 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. > >> > >> FYI, we have discussed this at LSF/MM and agreed to try the kmalloc > >> reclaimable caches idea. The existing counter could then remain for page > >> allocator users such as ION. It's a bit weird to have it in bytes and > >> not pages then, IMHO. What if we hid it from /proc/vmstat now so it > >> doesn't become ABI, and later convert it to page granularity and expose > >> it under a name such as "nr_other_reclaimable" ? > > > > I've nothing against hiding it from /proc/vmstat, as long as we keep > > the counter in place and the main issue resolved. > > Sure. > > > Maybe it's better to add nr_reclaimable = nr_slab_reclaimable + nr_other_reclaimable, > > which will have a simpler meaning that nr_other_reclaimable (what is other?). > > "other" can be changed, sure. nr_reclaimable is possible if we change > slab to adjust that counter as well - vmstat code doesn't support > arbitrary calculations when printing. Sure, but even just hiding a value isn't that easy now. So we have to touch the vmstat printing code anyway. Thanks!