Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2580225rwi; Tue, 11 Oct 2022 10:27:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6k+Qe3A3uIDHZJXawLPzOGk0j5gnStepegXskWAv5cnzvpz7X9GlVPmSWB0zeIY2SET4oK X-Received: by 2002:aa7:c956:0:b0:43b:206d:c283 with SMTP id h22-20020aa7c956000000b0043b206dc283mr23530851edt.381.1665509266246; Tue, 11 Oct 2022 10:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665509266; cv=none; d=google.com; s=arc-20160816; b=zT231Hy4fsTEX/SXY5HCtttQA0vmy2PRxMKkzTjVk4lPpJVJAnGa0IqxpJOll0hZim 9CaHDjE/mf9SqELJyGKk6yEA5rSE2PZj7yeWrhJvXFz2VVWByhB2XoE7l42X7f1mrRu/ XRulDLC+lg0dwFAzT1T63yroFUlvaXEJn8yIdxZwLuX7zGrvdKKWJo3OC/JvTgr5L87/ ZnS5jZqDHN6PEg0XSvWM7sWpgfsIynpdKRko5ssTEHSmP4h1RffjGn4tx4kLt3pmlgl+ SAIA0JWk7pvmRiYHinMVrnZ9uHILyxh2Vrb56hBcwhxe5SnnTxzu1UmSrWL5ebO4N0Ra omHg== 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:sender:dkim-signature; bh=zqdmtqa8RE2RmAZ8iS4FrD0zV6hOcJCc7nr3ARbwfwo=; b=qLhBhQh5jZP+HrDSfBGujRr7Zxp3xKfE3rjNO+R8Mo8u/p/7/KZbtLv3TDQj3loHdp m4TRPkIcyrFfdkr3D29MpUtPiXIi8ixYWtOLf9PFpLD5sX9VI9FdC7lR7gCllGpv/oLL UPCy1KT4SRRKc3mMKY+w8rHsjSgZnBUZsDZZ7bUC/vU/XJBdddyTJbxAPE1OENS2rq01 SVINJGZcYkyZOKvJHD6/U9HoTV1kfffoFd0/bIhc2qyHrpH/HdHDWe5KHIBXR/tXKFoO /8Nl2wNd/GBCp3u1f4Jnjb+NFpc9oTrC68BQKSe0zXyQUkfTPvcffLA32beNIi444Gmd x+eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aobhvW0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a17090630cd00b007417c6edb0asi12301967ejb.402.2022.10.11.10.27.19; Tue, 11 Oct 2022 10:27:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aobhvW0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230016AbiJKREl (ORCPT + 99 others); Tue, 11 Oct 2022 13:04:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbiJKREj (ORCPT ); Tue, 11 Oct 2022 13:04:39 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C06A1E5; Tue, 11 Oct 2022 10:04:35 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so16635892pjq.3; Tue, 11 Oct 2022 10:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=zqdmtqa8RE2RmAZ8iS4FrD0zV6hOcJCc7nr3ARbwfwo=; b=aobhvW0vOctc/TvPZkx2hfVLoinJiY0qIbvrUd1kge95Xuh9Z9WlI9w0VDygXONgEx SUHOQHTOXNeisew1HS/vWSWZA+IgCMmsEyc746xUu1JJM1zCI6OZyo7TnWVyWPqRr4ob uwOik+kHtFEScp6ufvKxNT6l1i5WWyjekaVk6wH03OuvEKHh7Ywm93IdoY23xT9Hiv9x shYjb1VDVYlnBZZOCjk9zqid65aA+upc7jlbeEXs0KbtmYudcuvpijrFv3/keO+W2NDB /dr6f9dIxCUVXZ+KYUqFai8jHP7V3q21jp3JHSleaWUqKqtagiDjH+27yTxq8oMCUZyR ucJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zqdmtqa8RE2RmAZ8iS4FrD0zV6hOcJCc7nr3ARbwfwo=; b=U81SFLG6ywh5Hf1OwJbPVZYWp7dUTxr0CzQXFPWA/0kCqcSMzpSKk3D2la4j3H/JZH xMTHeSAuuW1RwlGju2btxFO+S3BOnhu4AdYNFLMPzegoEgEAzDpU8JVrbRowi1Zx3InE iIalqjpeUP66Va3s4YDkeGR9iuu6Y/0CqVM4nHS6wfKsgiiLr0Rg7S9nCWuzVJ3peD1i svavUK3sklHXGaGypE6IwHEShSID7OKuhF3d3Ho5WGGDXdhdTpaDfHRQJXGf9n+A73/x DXsnpsRxDLF7+Sb7p10BdLHJqJNbRRj66O55uQWx50+OZmbo7g1iB2FJnVYljh9oRY8w a3KQ== X-Gm-Message-State: ACrzQf2d12WKnp/QmMhjc3JIX7ceSDBCIWI7zT0R6LWEXlGKQJ0aFuiD zy1toI3EPbgXHBDRqzTs0GE= X-Received: by 2002:a17:903:11cd:b0:170:cde8:18b7 with SMTP id q13-20020a17090311cd00b00170cde818b7mr25261286plh.165.1665507874322; Tue, 11 Oct 2022 10:04:34 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id x10-20020aa7940a000000b005636326fdbfsm4406789pfo.78.2022.10.11.10.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 10:04:33 -0700 (PDT) Sender: Tejun Heo Date: Tue, 11 Oct 2022 07:04:32 -1000 From: Tejun Heo To: Waiman Long Cc: Michal Hocko , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Chris Down Subject: Re: [PATCH] mm/memcontrol: Don't increase effective low/min if no protection needed Message-ID: References: <20221011143015.1152968-1-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 11, 2022 at 01:00:22PM -0400, Waiman Long wrote: > You are right about that. An alternative way to address this issue is to > disable memory low event when memory.low isn't set. An user who want to > track memory.low event has to set it to a non-zero value. Would that be > acceptable? Wouldn't it make sense to fix the test? With recursive_prot on, the cgroup actually is under low protection and it seems like the correct behavior is to report the low events accordingly. Thanks. -- tejun