Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4752150imm; Wed, 30 May 2018 11:15:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLz66UBdFX9IVRn/LhN7W1RrfJSgyye3EAIOXU4ASe0EoGqSU6NFptsHZLsxBirgdliWVY8 X-Received: by 2002:a17:902:7082:: with SMTP id z2-v6mr3737303plk.373.1527704120721; Wed, 30 May 2018 11:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527704120; cv=none; d=google.com; s=arc-20160816; b=uH7rExaZxmzUZ4XCakxjDQ6VjXgQwJp3ANqPaiGGqdpUdewtpgMG03R2loPlwQmFs9 XrsRt8XAPb7Ec2Fm2hAvs9SKOxkFu/3FeAgjzejgEn7szULxlcCdOVwwSCbEwdxrymaz UxNJGRB9lJch9KibyfMA/3SKg4XvMYzVW6FvOt+6Xdlcxhb9ZQBzeODxN2UR/DEmU79s GLeNmszcCGwfTj2M41chlVcTIo1ezOHo52AcryuYUVPqupfXP2toNAUmHlc9e+NEI6Ce RIFRQVHaVJ50WSaPpBxAeYFSNFeKu41z1AYV+TTDGo6nlJLFn7jobhTTFRdh4dCwPXQB VdTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bH1fbk66ldNL3s7EMF466MPVK5koMb9gAcbp402ATr0=; b=zL1J/gKBKZOjDnAgleKl7Tr0y18jg1rI5Gc8dE3XsoCfW9OWmM32kdiOqOX3TjrjOt rlY0O0iTagXA9TnXoVB0NGMVJP1v/UR3R5mnMsQBb+ejk1Z0cNIpO+1qUIG0cJKjYc42 oTpd8joZ/Rp2r8wKIpZPbny9Sp8pA02obI3BRdGdzIyA9cN6//ds4URWCJ1UfxwobU8T Ik/hzIRwvDaNvJJTEc03lyxGXhkHIXcciTEIUz4yWOfHk4dHlV0FibLqLwvq9E6rkqzV fPp9hNY6ObGZk5kO2uwgqPn7zLZBf29g9efiNEVtQYKVfTl750+DQlrUmt38C2iWIpu2 SbSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YdkxRkj8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m37-v6si18882857plg.491.2018.05.30.11.15.06; Wed, 30 May 2018 11:15:20 -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=@google.com header.s=20161025 header.b=YdkxRkj8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753651AbeE3SOj (ORCPT + 99 others); Wed, 30 May 2018 14:14:39 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:36713 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752AbeE3SOg (ORCPT ); Wed, 30 May 2018 14:14:36 -0400 Received: by mail-wr0-f194.google.com with SMTP id f16-v6so15131193wrm.3 for ; Wed, 30 May 2018 11:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bH1fbk66ldNL3s7EMF466MPVK5koMb9gAcbp402ATr0=; b=YdkxRkj8+3/+6g3rj7RykwttHriJbLAaX0XgcEh1Y7RkrT0UgZnHmWqew6zG/t4b9o LnTKOAck9NvNhGvHL8w3h+q4qKfVkpiWvPa/DTh2Vc65Rv75W9FpyVdgOElJRoNfUCpz tMfc0CGTBbG8qjVzKe8gMHlzHo3Vmeku1n03+BKmSeFyRT/lCUbHAAeo+eoQ+xCHum1L Y9Fe4lkiXrDD70A1EIUFJlGE/QQhBbzmwUqt/B6hh21+kXiA+J90ar/9ktPL4ESc38e/ SDpRc4+pRlkKyGNS+1zO+SNm2FRnuS5GPnUZpHnHg4VZDH6ILkU6x6PmD1kDTtUqugSj CxZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bH1fbk66ldNL3s7EMF466MPVK5koMb9gAcbp402ATr0=; b=Z5Jcdk5jvoydY8GFYo8a4v2hKhihH7igDfZk5Gjz2fedTZfoiAsAfbywk6PvWftBKZ RW2FSLDGdlE/X1jtx2DiC6dgTbBWVygEmCdvQ5rrispd4SLHt/MpbU3FFHM5rVhnMxeO WZ9g07OAqdg/hpw4JUZlsxF0Yj+8FwqQ2PymWguWzeQnlNZMecOXl+aCdNR/gVkH/ShV gU9LLa6ad8B8p791kVVmQCBnIKzlICmDXI82sb7XppKKG/nkH3PurvqNsRRb+ZOsA2wF e1y5Vi7p/+tWmBTV4p+7l56a+Oegq4z65goYBxJOoQFp5njj0J+E/PhF863lFKELfCDm 9bzA== X-Gm-Message-State: ALKqPwcRGvJdJNR0JDHBSrqbWOMd6TIDQW7IR7NWPxfBRYBFy4QJbFaw rYDgy/VYmRn7ZSFDVgxLY4qcaI7tOjOA5jXXfncQpQ== X-Received: by 2002:adf:c98c:: with SMTP id f12-v6mr3058657wrh.272.1527704075044; Wed, 30 May 2018 11:14:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:1286:0:0:0:0:0 with HTTP; Wed, 30 May 2018 11:14:33 -0700 (PDT) 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 To: Michal Hocko Cc: Vladimir Davydov , Andrew Morton , Greg Thelen , Johannes Weiner , Linux MM , Cgroups , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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