Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1620328rdb; Mon, 2 Oct 2023 15:55:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHimRk9EZVUuatjzGEpNyAyNMHJ/BC0rzzi6V8pj8Eow4shMfUx0R5drImprfB0iFqXEhI9 X-Received: by 2002:a17:902:d30d:b0:1c3:3b5c:1fbf with SMTP id b13-20020a170902d30d00b001c33b5c1fbfmr12744352plc.10.1696287351275; Mon, 02 Oct 2023 15:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696287351; cv=none; d=google.com; s=arc-20160816; b=bXqNzsPhi/uRq4hFX9ml/IiLmqDNlnHY6vZZIzdy/YGEB/tGYd33R2Uequ2/0sLVG7 FemXAqmJFf7jC/XRkSlMQA/zGwiwYNwleu352Rg5EtRVSi3u9VFn4rdtQZvnfImq5X+F V7SV3LQ87w3Ks7zI32TJLrZFzajAfSL5LcTT/K/1t42sUbCuy9eXRdH97IzqR3I32Fck FQvbnK0riAG64xbtO3HvXZ0xzQAtLMboxCoMdIxuuGC3L8g3oVTFtC4Rw+7CAQoD3aP2 121rzflN0H2Pm4swKhEe5psFGzf35E4FPUMIFD9u/6u6fkHsf143OR003NVTLzVo77vd a4eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RJCeoYI4MdW2Vg1VXnFe6BioTBJsiwn/a/IEZV9MrFI=; fh=I0NyJhtLmsNXUG21ub3POC9XWIs0zD7ItzfGMXrzndA=; b=ES1tawoIZdblhCEcFndRaqHlneOmUhcLKeKxg5qOVBd7o6pflLh5NlKy6NexHrbfzz GvXpLEqP9yfK4jVPNizTzkMCu9AFE7mWG+nviwDK4R/9zi9TClS0s9oaEGZPzL5j9aW4 RloncGSjnI3ZkoOBXHFv3V0yR2/ZdGe8O2uE612G66bff+0jVr4KB1kc2zcgN3bnmdag RoLV/FT2qdqWaiRQN0By5uQHWQ4dtL7+LBLwAH8qFeYARxrpLSNHSyDtcYT/xItIz+03 /Wf/ysnVP/T6JPAfj90qjFpZQgu337R2TECBYgbcliuudDyUTUzXdSmjsPuqh+O5lA43 Mx9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=vmhao5zG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u11-20020a170903124b00b001c7249f5e40si15477392plh.469.2023.10.02.15.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 15:55:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=vmhao5zG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 77D97806C44D; Mon, 2 Oct 2023 08:36:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237779AbjJBPgM (ORCPT + 99 others); Mon, 2 Oct 2023 11:36:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237903AbjJBPgL (ORCPT ); Mon, 2 Oct 2023 11:36:11 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46F4AB3 for ; Mon, 2 Oct 2023 08:36:08 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-7740729ae12so1138206985a.1 for ; Mon, 02 Oct 2023 08:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20230601.gappssmtp.com; s=20230601; t=1696260967; x=1696865767; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RJCeoYI4MdW2Vg1VXnFe6BioTBJsiwn/a/IEZV9MrFI=; b=vmhao5zGzozZ7Ms8y+/iMIXIkW5zs6mPc+QueWp8R8ztfrH68bK7YxmfOZIvW4MsJQ 97JXdAlh+bslIDvRiMqknuIuniFgZ8GX0syTc48ldbz8EzuRQpy1cos4amADigtVIlGr rH7kk4xIE52NJSdESd7AkzVIV8VuEu7MJPMa9zWd6H3RXEAOEXXLxyNsIiyTIuLWMjqQ go2MHlZLKJDTBvFxXapGQqyyzA4RMpozYo0JvKDiqVw/YFsjwHzeM8CUQGpH8Poim2OP +hzBNCaenmGTf1iFdZk17a7n96Eo2N9q2dBkDVQEDsEHW2hgilEsuSmJ5WkfI1CRNLBN di8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696260967; x=1696865767; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RJCeoYI4MdW2Vg1VXnFe6BioTBJsiwn/a/IEZV9MrFI=; b=Nv108Lkq2S+kFW4TbrXA2ZSeCQy07hG+Ndiio5T1EyV1vBXWACXLpGrhxzq3CTrfzB LUGyoG0/DYO4uCF2Ds0Dybx2toksICXLlFS+L/yh1bGRTl9exHj8Im5zsk4cA/ay/7K4 JzPqvE73tttNxfUAZ9Df/fWz+4frxNpQs34NgKvBeAAIYIM4uU+EnkNpBlzeg1K76nYx BOFaXhd7QJ63XInHROkFg04twUFKlg+OWvtDL802wHLcivqUGD/4cloou9U5hcc+Yro4 CEAcVRyBApY5+o5a/FfiB6OZ4OvFkan41wO9Nvmiv/amZGbDoZ73asRCEtVg9szQ5flN DJqg== X-Gm-Message-State: AOJu0YzdkeSDqMY78G4XDmny2wbvU1qgEk6OgpnZ5ZdgeJ3fICImsq6n F9ndH9D+kZLm63bMWXuS6lGZsA== X-Received: by 2002:a05:620a:29c4:b0:775:6a78:5f9a with SMTP id s4-20020a05620a29c400b007756a785f9amr16126546qkp.6.1696260967363; Mon, 02 Oct 2023 08:36:07 -0700 (PDT) Received: from localhost (2603-7000-0c01-2716-3012-16a2-6bc2-2937.res6.spectrum.com. [2603:7000:c01:2716:3012:16a2:6bc2:2937]) by smtp.gmail.com with ESMTPSA id h8-20020ae9ec08000000b0076e672f535asm8992682qkg.57.2023.10.02.08.36.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 08:36:07 -0700 (PDT) Date: Mon, 2 Oct 2023 11:36:06 -0400 From: Johannes Weiner To: Michal Hocko Cc: Mike Kravetz , Nhat Pham , akpm@linux-foundation.org, riel@surriel.com, roman.gushchin@linux.dev, shakeelb@google.com, muchun.song@linux.dev, tj@kernel.org, lizefan.x@bytedance.com, shuah@kernel.org, yosryahmed@google.com, linux-mm@kvack.org, kernel-team@meta.com, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH 0/2] hugetlb memcg accounting Message-ID: <20231002153606.GB5054@cmpxchg.org> References: <20230926194949.2637078-1-nphamcs@gmail.com> <20230927184738.GC365513@cmpxchg.org> <20231001232730.GA11194@monkey> <20231002144250.GA4414@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 02 Oct 2023 08:36:27 -0700 (PDT) On Mon, Oct 02, 2023 at 04:58:21PM +0200, Michal Hocko wrote: > Also there is not OOM as hugetlb pages are costly requests and we do not > invoke the oom killer. Ah good point. That seems like a policy choice we could make. However, since hugetlb users are already set up for and come to expect SIGBUS for physical failure as well as hugetlb_cgroup limits, we should have memcg follow established precedent and leave the OOM killer out. Agree that a sentence in the changelog about this makes sense though.