Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp254028imm; Wed, 30 May 2018 23:02:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKAauIWn0k35qXSgOFmp6jdliWo3ib9tf5dkU7SmkWAjv/+53XJftBeEoLR5X4oYSnof2tB X-Received: by 2002:a62:6c3:: with SMTP id 186-v6mr5514041pfg.151.1527746561172; Wed, 30 May 2018 23:02:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527746561; cv=none; d=google.com; s=arc-20160816; b=iPwNM6e0w+LgP9UsCXYtF1wCcW38J4APwWqeTNsUKTrhKkhlw3PmdWd/ZKFsEMXD/h A4fM+8lCCrNfyTmFugEIix3l/tMCN1lfSWmnzgiD8YFRphyfA+mnnWiV4FIbn0zOc6nc bSnnUyh96JUHgz4takVmUyEMM4WcF/hcT//0FtCrob5bvWPls46nRGh+KSaHCeRkfLEY Bo2rpdaVNC6VZJ+caRQPxE32JbxIw+vJ48cC7iPBzNOo8z1TIdnmfUYtHjNygRL+WwAk NaOYEz/xcSNbHTCGDkltM2M+57blcKT0OkuTAHJXCOl2HIHVonOwHI66en29NAmBmyF7 FZOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=DMfMZJjO4b5UMB8MlVj899MPNkeAiZPUjYuUJ9keC0E=; b=ghJITYHtxNlQ/3mS2oJprJT4dsqbPwDkAeKKd8M59KvPkv7qNpIHswArEeOBZGaMOs 2FOKLasMcsalZOqFWXHHPpgUlzFNdb7/U5ehmeU5KeTDTu+HiMQUW5BxgBxfZriCsIs0 z7RGqhHJt74B0pXhbygUgoqd97cpboc4OGsOFABRNR/dgtm7A97Yporw6BD/lhCYYVtn BRGz+NJG321AntNYVDGiILQio0SbpjDcYi68USPPVNNqa5wh4lfZmSPMFymzMn5GMhPc bb1XKMXGnAocI0cr9V+7CHGYiSfMBi7m8RDNTkaKghjrug2cX19bAAWaNnco2KO8sbqG S0YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tU0/i3s/; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si24365242plt.284.2018.05.30.23.02.26; Wed, 30 May 2018 23:02:41 -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=fail header.i=@gmail.com header.s=20161025 header.b=tU0/i3s/; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753943AbeEaGBl (ORCPT + 99 others); Thu, 31 May 2018 02:01:41 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:41115 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbeEaGBj (ORCPT ); Thu, 31 May 2018 02:01:39 -0400 Received: by mail-pf0-f194.google.com with SMTP id v63-v6so10216810pfk.8; Wed, 30 May 2018 23:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DMfMZJjO4b5UMB8MlVj899MPNkeAiZPUjYuUJ9keC0E=; b=tU0/i3s/dusFT+dzc0DZZTeO/E075aW6W8V6ZDXEPlHLQ9Kcbe3V5Lsy1HDrcrgdQW BX6FpQ4qpcnE3cpJf4iuw/1vKHRSTkzOeFm9MGBOfe/7TqnWSsJKFswPMZbPk2uhEc7o wcmoqcvsWVPTz6N+l/OilNrll80BUxEtM1zhbQiOgEZPg+McE2MOFM16GMjjN4dtuZnS bx0VZ2dsOAHq0Gz1SfDUWkHETFEfx358KG1xsiiImxerUIRpDpbNtFCqNwNxvnpXgpnr CBkgdmz+2+pboMw3tJuj+QLSLdXzk8MK7vJ3cDDW84s7pEJ/gBo49rJYsFdnfcKGmreB SOrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=DMfMZJjO4b5UMB8MlVj899MPNkeAiZPUjYuUJ9keC0E=; b=t+aswXSX18Q9ByuD+WC2pa/LZz+XwRvU7ygOtWzBXbije4tVEFWxkCnoCr52dNE1df u7PxHJUMfqleLkde+lNuIY/xJZ51nATgqwUX2g5/SxGfupDLxR1/i1/01fhbziSiRYPC sWG7r0vB/2bZIsgRi2iy8So/mk6HQCpRa8kkeyRSkJdj4rSXwbcbAeHLGMJ5V2g3Nr+0 vsoY50cRA0A4ChdJyxl+fZn4nK+z05OV4SWijrZfavoJSOmRMTVqVGegJAEJKhnDimfp AHiiHUx7aobt5eNRgFZFSM4pq6LVEcWC0KUC4hrodK8kPlLm9CqIkdLTnJM4Me8j2Nnw FNJQ== X-Gm-Message-State: ALKqPwfF0Ooy6sY6jYIH9qgQR7egwWgwjirZeqG3R3UIG0L80bfa30aq Z9t9UHyOdvztohFvn2FNxAU= X-Received: by 2002:a65:5546:: with SMTP id t6-v6mr4453548pgr.363.1527746499186; Wed, 30 May 2018 23:01:39 -0700 (PDT) Received: from rodete-desktop-imager.corp.google.com ([2401:fa00:d:10:9465:817a:e0d1:934d]) by smtp.gmail.com with ESMTPSA id q68-v6sm63911734pfb.182.2018.05.30.23.01.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 23:01:37 -0700 (PDT) Date: Thu, 31 May 2018 15:01:33 +0900 From: Minchan Kim To: Shakeel Butt Cc: Michal Hocko , Vladimir Davydov , Andrew Morton , Greg Thelen , Johannes Weiner , Linux MM , Cgroups , LKML Subject: Re: [PATCH] memcg: force charge kmem counter too Message-ID: <20180531060133.GA31477@rodete-desktop-imager.corp.google.com> References: <20180525185501.82098-1-shakeelb@google.com> <20180526185144.xvh7ejlyelzvqwdb@esperanza> <20180528091110.GG1517@dhcp22.suse.cz> <20180529083153.GR27180@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 30, 2018 at 11:14:33AM -0700, Shakeel Butt wrote: > 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. I agree. Even, I didn't know kmem is strongly discouraged until now. Then, why is it enabled by default on cgroup v1? Let's turn if off with comment "It's broken so do not use/fix. Instead, please move to cgroup v2".