Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1928623pxb; Fri, 25 Mar 2022 08:07:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqVEHb77XgMybhLw1rAN+k1N3lk7/7opsrFthfyyYdqhD9u6yWoFmqremEGtb9HtzYsB39 X-Received: by 2002:a05:6638:4781:b0:31a:6f26:e8a7 with SMTP id cq1-20020a056638478100b0031a6f26e8a7mr5900815jab.33.1648220833631; Fri, 25 Mar 2022 08:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648220833; cv=none; d=google.com; s=arc-20160816; b=FeXJBp7WmNclsE32x0myQdLlVBeOI6SjOPgfyvwSP9eAwjuus4m586FCjBei8WZfpP mJ74sHx4LWjKhxvwPbx9bAsOmsSZ0EZSZ+Eo4RJLCzG1ioIhN57Oalc8hw1Zq/JdZ5kW 2/6UjYN6ngE08ehwwgwHSYJuJ0A5KFBb6OLiduj/7ssA5zTT0ilJ6k/iUJDHDq1AjZFn wCRqHUCQt5jtcXRZPTghxiz84Ij3ae4aRESdTVlqiKJU1ozWZ90gsMGIDpHxpkdZ0Ouh 89U/7Sdol0XlLSedpQTH2/82wQvUKFBqFIDC1r0sSpjMEOkQUpweIhox8drUmmUeRBLn e7uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7gpGpR3wa2+cKOuymKs7lOAFj3Lr0LMnbgKaKE1lmS0=; b=eZl14VU8i7I9EBV5wUQsEy7UxTWLaZm+RXwZ1EaSy3n+qzXMW1MxPqau4ac8BFexee 1V30HdAQIIiywKfNg+PMv+4tuTItaaWwbtNR0q/tug2xgq7V4ZDpcE4wIzydbQzSVgnF 2yG9t8rg4v2CK76UeoSI6aYKjumhGMiKeQRFmISB9Fs2NXOWJjjPrdHk+g++RXkKAgHs iR/I3g0lE0UFg75t21GepvfjZKNqmzBV+1So8XTppAlGpuJmM38Y9LqxbWjePc0OVc3o qBliFg4C0b7GIzxe0nABe2VNZQDSxNdbq5N7eL4LNd25tFjM6/rbdvCoF4M616OzsG1m +ByA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=BGawxnk4; 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 e140-20020a6bb592000000b0064958084539si2072365iof.86.2022.03.25.08.07.00; Fri, 25 Mar 2022 08:07:13 -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=BGawxnk4; 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 S1349352AbiCXJxe (ORCPT + 99 others); Thu, 24 Mar 2022 05:53:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241065AbiCXJxd (ORCPT ); Thu, 24 Mar 2022 05:53:33 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A00F75549E; Thu, 24 Mar 2022 02:52:00 -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 4DD1E1F38D; Thu, 24 Mar 2022 09:51:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1648115519; 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=7gpGpR3wa2+cKOuymKs7lOAFj3Lr0LMnbgKaKE1lmS0=; b=BGawxnk4ZkQIE7RH/c/DMxnbfBkVfcFqPuS610Wd3K1lipapLcY5WY8j8HJStzYE0qHan9 vrS4rkjy97O26ObUlec4H4FLbLds3Pdx2zDW0dSGgyhnAZScTDYtdQ/kEqDrcs3RcUTORB ad8lq6Av0xdWgp0oZGGgHRSkCsgq2j8= 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 DC35813A78; Thu, 24 Mar 2022 09:51:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8GeWND4/PGLKQQAAMHmgww (envelope-from ); Thu, 24 Mar 2022 09:51:58 +0000 Date: Thu, 24 Mar 2022 10:51:57 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Roman Gushchin Cc: cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Richard Palethorpe , Andrew Morton , Shakeel Butt , Michal Hocko , Vlastimil Babka , "Matthew Wilcox (Oracle)" , Muchun Song , Johannes Weiner , Yang Shi , Suren Baghdasaryan , Tejun Heo , Chris Down Subject: Re: [RFC PATCH] mm: memcg: Do not count memory.low reclaim if it does not happen Message-ID: <20220324095157.GA16685@blackbody.suse.cz> References: <20220322182248.29121-1-mkoutny@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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,T_SCC_BODY_TEXT_LINE 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 Wed, Mar 23, 2022 at 02:44:24PM -0700, Roman Gushchin wrote: > Does it mean that in the following configuration: > `parent .low=50M > ` s1 .low=0M .current=50M > ` s2 .low=0M .current=50M > there will be no memory.events::low at all? (assuming the recursive thing is on) True, no memory.events:low among siblings. Number of memory.events:low in the parent depends on how much has to be reclaimed (>50M means carving into parent's protection, hence it'll be counted). This is a quantitative change in the events reporting (point 1 of RFCness), my understanding is that the potential events due to recursive surplus protection carry no new information regarding configured memory.low. Michal