Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5170875rwi; Mon, 17 Oct 2022 16:53:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5kYpb69QkG29fX7c4aA8hoEAIEoLFLTBrccEO0hKdb0HtbGygX9nvUxyNJZphI7oFwMt5H X-Received: by 2002:a17:907:3e0f:b0:791:9529:3674 with SMTP id hp15-20020a1709073e0f00b0079195293674mr138867ejc.503.1666050810075; Mon, 17 Oct 2022 16:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666050810; cv=none; d=google.com; s=arc-20160816; b=w8F9rjidIBgDb5/6u2ki5+HoI2+2Mgqb5h4tZQHsGeUXRemaBNgWIcHtW7ja7a017B 92VgN3qbAHJpAC+9b3UHBUO4diPV8wBokE89avXEL5367TNgjcxKEEIzpgZ5wGK1UqHE FSnhCgVyZeshu8iA7KwqDmSI9A2YpvSY3jRwJNrIOmT5oPUYu6MiJnc35bF2N+UzMjyq e9JOI5JYgxS6SU1BrDzk1NC+SpIc9q5jf73e60ZHqZQRO3nqFRn3UYrKnlKQ1751/Yq0 BjD4YyWJctVUGSNiliswvqcP+l79G918RE0AHTqjfcOqquJD4qvfKS4Sjxc7Oy+0P6FV xqdA== 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=KPXn8oCISsFaCnRNyRjpdaEv1QQo5ZLAKB/NsLXVGBs=; b=VcpjXTxrM1LJcHcT7+EnY4HvYqghH9jlTeUnc9KosFkkVDiTWjtGxbcw6xnBmaXFE6 51/lACZMLyCUP7cHzr5wPhm0gAhLWvu8h6jisLIDFg2O8sg87doH10tgmDOlau2IXg9U GGMGjY+5QnnFWubCDm+kqx73s0ZXQhQA3HwnxgcJOCd5OLn9Kobic9762L/X5FuQo7iq p2uMJ9FYsijjM0DrrxnAGxqYhdBKoTrp02zNY4WFIjvk4Y16dJWgmK6z9h+pfn6tCrpC dTxI3ZIL9YOxzq0tSmwCQkGzWX62tKfRmJ4TL2v+6D//HRtb114f1jQ13Oxd74jq7SBS ncnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=NfKOqe4g; 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 sd19-20020a1709076e1300b00741688254f4si9793122ejc.163.2022.10.17.16.52.55; Mon, 17 Oct 2022 16:53:30 -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=NfKOqe4g; 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 S230323AbiJQWqa (ORCPT + 99 others); Mon, 17 Oct 2022 18:46:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbiJQWq2 (ORCPT ); Mon, 17 Oct 2022 18:46:28 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8597E820; Mon, 17 Oct 2022 15:46:27 -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 231D71F8D1; Mon, 17 Oct 2022 22:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1666046786; 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=KPXn8oCISsFaCnRNyRjpdaEv1QQo5ZLAKB/NsLXVGBs=; b=NfKOqe4gHCl9/Htq5BcTbwrgFymKb4wGV1EoSbTVL1zMWiFBS0wESzuZBCcXi55G/gR0tQ dqkWXoDM2yaNsea3ydA79oc54ZMQO9pSGOy34tkFfc3j8hI+NmtNtlNXbV82hU2h+0y5E3 y7ohEeM0pH8mJna2Hkfzj+XLk/7aVQo= 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 D387413ABE; Mon, 17 Oct 2022 22:46:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 7rDvMUHbTWN0YwAAMHmgww (envelope-from ); Mon, 17 Oct 2022 22:46:25 +0000 Date: Tue, 18 Oct 2022 00:46:24 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Tejun Heo Cc: Waiman Long , 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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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, Oct 11, 2022 at 07:04:32AM -1000, Tejun Heo wrote: > 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. It depends whether the there is a residual protection that the memory.low=0 sibling can use (with memory_recursiveprot). In the discussed LTP test, there should be no residual protection that would justify the apparently misreported memory.low events. I.e. the test is correct, the failure points to a subtle issue with distributing residual protection among siblings. Been there, (haven't) done that: 1) https://bugzilla.suse.com/show_bug.cgi?id=1196298 2) https://lore.kernel.org/r/20220325103118.GC2828@blackbody.suse.cz/ HTH, Michal