Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2712445rwi; Tue, 11 Oct 2022 12:17:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7mDuahuIkcTLAaJ9Bdc8Z8+Tuj0sGGOp+vYNW3d8WuCBp6fdVdiiyPhq9bZ04V6yAXxCSk X-Received: by 2002:a17:907:9602:b0:780:8c9f:f99a with SMTP id gb2-20020a170907960200b007808c9ff99amr20390470ejc.465.1665515865622; Tue, 11 Oct 2022 12:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665515865; cv=none; d=google.com; s=arc-20160816; b=tgHTeDLz/3iy9XMpUq4KS7QHKHNqn7ay/9H9w3JmYbJUczl3Vc8YfSpAoNy2ffkMhX Gl5zk2FDBrqbeWLJYwNgVSzWgDEHnj2qKu5CnwZ/YtooZLl+HEXUgQ5v7wbGWK4HgBWR 4+R3d1N8YakQTdJO2+3kZoros6sA4Ihi9XeVjEn6vJDxaXGzkHviI6rcyA2G1hil76Wn YXjiXlZDmeH84Ovbu6mT/dMBHhUgWJ2vU9xS7gyR0nnEHU9PCDh75T7SgYxfQBN3/CwN D5fq8LkiRMrhbJI5lFqCCZkR7W+qi8HnkL+ujC0us8PZ0/bveNwYMT6a3SUiNx2lvLa7 u7Mw== 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=w1Wip/kR/nLx7NLOcIVQ++U0LbZfFaHpu0ZiHUekL6M=; b=niafHrKmp9TB124eU0NZPu1Csp8n3EOlMIsDpfd4QfH2C1LVUGw7xFqf62pKnapJQi zOVZiNB/G9ekJkRWvOOmRon6h1KbAZ3O0bbc5nK2RoEzuAq0SAXgLgPXAcpSZXPHcrbt Kj7JY/oZgf/vBgUWn+YyBimXzOtWW/gxP0TgCarPg8vOFXiEZ7h8KAIFhlZlpa9aVvCN 9SUqpus1RGJs6d+eS3noT2b+bNnTXjWDrOA3femBFPtZ9Q+cUei+aUQi4SEjVyQiZ0QM 12FnVSoObaGuz0X3p7P/M12h8Gu4/Qah6QfXjQEuT4OgbOSpjCAAa5n1cEiL1k8EmfCM 9Dxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=r0pi3DBS; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a50d718000000b004592847889fsi12731341edi.158.2022.10.11.12.17.19; Tue, 11 Oct 2022 12:17:45 -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=@suse.com header.s=susede1 header.b=r0pi3DBS; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbiJKTCK (ORCPT + 99 others); Tue, 11 Oct 2022 15:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbiJKTB2 (ORCPT ); Tue, 11 Oct 2022 15:01:28 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 447DE8A1DE; Tue, 11 Oct 2022 12:01:23 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 828581F37C; Tue, 11 Oct 2022 19:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1665514881; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=w1Wip/kR/nLx7NLOcIVQ++U0LbZfFaHpu0ZiHUekL6M=; b=r0pi3DBSDiAet5rHRn6FCp5z5UxtoxqnvqLG4J56c9yiBSUM+770wvzqJwNB5kNiRUa1IZ shbQchCLgt2qSnnrrkvPeyFYQoKrHIwkovCmtVRT2LFUY6Zyvf0AC2axO2N9Sf/+3Dimv2 LBdTVAi9D5F06aQWnvV/8tU8HTcuo6M= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5220E139ED; Tue, 11 Oct 2022 19:01:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 9NrHEYG9RWN2PwAAMHmgww (envelope-from ); Tue, 11 Oct 2022 19:01:21 +0000 Date: Tue, 11 Oct 2022 21:01:20 +0200 From: Michal Hocko To: Tejun Heo Cc: Waiman Long , 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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 11-10-22 07:04:32, Tejun Heo wrote: > 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. Agreed, the semantic makes sense and it seems to be just the test that is not aware of it. -- Michal Hocko SUSE Labs