From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by kanga.kvack.org (Postfix) with ESMTP id DD6AB6B0003 for ; Wed, 30 May 2018 14:14:36 -0400 (EDT) Received: by mail-wr0-f198.google.com with SMTP id l17-v6so10132869wrm.3 for ; Wed, 30 May 2018 11:14:36 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id i3-v6sor7873881wrn.31.2018.05.30.11.14.35 for (Google Transport Security); Wed, 30 May 2018 11:14:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180529083153.GR27180@dhcp22.suse.cz> References: <20180525185501.82098-1-shakeelb@google.com> <20180526185144.xvh7ejlyelzvqwdb@esperanza> <20180528091110.GG1517@dhcp22.suse.cz> <20180529083153.GR27180@dhcp22.suse.cz> From: Shakeel Butt Date: Wed, 30 May 2018 11:14:33 -0700 Message-ID: Subject: Re: [PATCH] memcg: force charge kmem counter too Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko Cc: Vladimir Davydov , Andrew Morton , Greg Thelen , Johannes Weiner , Linux MM , Cgroups , LKML On Tue, May 29, 2018 at 1:31 AM, Michal Hocko wrote: > On Mon 28-05-18 10:23:07, Shakeel Butt wrote: >> On Mon, May 28, 2018 at 2:11 AM, Michal Hocko wrote: >> Though is there a precedence where the broken feature is not fixed >> because an alternative is available? > > Well, I can see how breaking GFP_NOFAIL semantic is problematic, on the > other hand we keep saying that kmem accounting in v1 is hard usable and > strongly discourage people from using it. Sure we can add the code which > handles _this_ particular case but that wouldn't make the whole thing > more usable I strongly suspect. Maybe I am wrong and you can provide > some specific examples. Is GFP_NOFAIL that common to matter? > > In any case we should balance between the code maintainability here. > Adding more cruft into the allocator path is not free. > We do not use kmem limits internally and this is something I found through code inspection. If this patch is increasing the cost of code maintainability I am fine with dropping it but at least there should a comment saying that kmem limits are broken and no need fix. Shakeel