Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp600927iob; Wed, 18 May 2022 08:56:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw99jt9XP/Ut/vN1dRP3kDXChs97TVwhBOquBsHeDkrsxf4UhqkOffYhad7ARNZmJTTyqBU X-Received: by 2002:a05:6a00:21c7:b0:4fd:f89f:ec17 with SMTP id t7-20020a056a0021c700b004fdf89fec17mr276009pfj.72.1652889364417; Wed, 18 May 2022 08:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652889364; cv=none; d=google.com; s=arc-20160816; b=VVE1gDFgAcBKqorP57vr1FVvAoSTGv8gRKtv3z/H3iZpGFGHowmMuQOYybzmQIopzb BcAhdMc743wmM/PeQAlI/uOuGOsRajExnNzJ8Pge9cm1WISypKYwBtdZz7A13TrArvcc jVjDHkZ5X0aJEPO370VYgsHMVCk8WCvkg3PvNFEsomqKpaoAxXkUpSA90vdtIt3tmjJW WlmdLJPsowh15Ynr0/SE8CyKy+d5+5DhAX1Bn8GBZW8g07zroaqM12iW6MvKpbPPZPuI MFQUzHl8+uUI8qCy3y3ON3OcguIrs64RvhZmh625mP1iF3e8kAZFh5FFiEF5Gnl8xRRi fLQw== 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=fT6DJGA2cOSTPqSQ5kMo5BIA56bUH+3rlEL1RMSElmw=; b=XfABvhwtj5EPSmadwF8srV5REQjVprVb7vecX+YVAYbNXoItxdBlh351FOgKbyonQv aohLNzZ2yA27xmZscSSwDEOfzaCF31I6MSMJfqUlrPJvWeMvzIf35VpZ/C/4UFFKQAQf s2R5Nb/ylY3PGlxThAxz0jyrNT6ODtdFqc0u6fbzppWJynySXJKQJFGedvDhC2FXyUyI TtcrxtzFec/0IoSxwO9l66gpEIfCrwGeLDLfTFX2JPKssK/RfaRlmHMbqNF5UTRKf6TW iYevgupy26nUAu7iyKtpLP9RHUVBDyBxAeWE7I5/cLVbQ78mEW22bwxazxNxPWheVlig CaKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="aWoZP/8K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c19-20020a656753000000b003db88f58c66si2555732pgu.569.2022.05.18.08.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 08:56:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="aWoZP/8K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F3DC1B7742; Wed, 18 May 2022 08:55:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239688AbiERPy7 (ORCPT + 99 others); Wed, 18 May 2022 11:54:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239703AbiERPyu (ORCPT ); Wed, 18 May 2022 11:54:50 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E00401CE62F; Wed, 18 May 2022 08:54:47 -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 65F181F8D9; Wed, 18 May 2022 15:54:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1652889286; 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=fT6DJGA2cOSTPqSQ5kMo5BIA56bUH+3rlEL1RMSElmw=; b=aWoZP/8KOjx9GL8rIoYGs6MZgz48DGxy4SoNyCoki2pVbuV9gffBgLWkZpR5smgYoFlh0h hD3/PDiDEcNjj4m7KDuM6QwX/pIbSn0SH8uV6l7rVl8wbLYKF1Hl/E+/6/2W1k561Cwvqv fWdHnKJVpUyT5CPfddB82CRcJiWz+nA= 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 2CB6413A6D; Wed, 18 May 2022 15:54:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id aZMWCsYWhWL9WAAAMHmgww (envelope-from ); Wed, 18 May 2022 15:54:46 +0000 Date: Wed, 18 May 2022 17:54:44 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Roman Gushchin Cc: void@manifault.com, akpm@linux-foundation.org, cgroups@vger.kernel.org, hannes@cmpxchg.org, kernel-team@fb.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mhocko@kernel.org, shakeelb@google.com, tj@kernel.org, Richard Palethorpe Subject: Re: [PATCH 2/4] selftests: memcg: Expect no low events in unprotected sibling Message-ID: <20220518155444.GB22503@blackbody.suse.cz> References: <20220512174452.tr34tuh4k5jm6qjs@dev0025.ash9.facebook.com> <20220513171811.730-1-mkoutny@suse.com> <20220513171811.730-3-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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Hi. On Fri, May 13, 2022 at 11:54:16AM -0700, Roman Gushchin wrote: > Hm, what are our plans here? Are we going to fix it soon-ish, or there > is still no agreement on how to proceed? Here are some of my ideas in random order so far and comments: 0) mask memory.events:low -> not a real fix 1) don't do SWAP_CLUSTER_MAX roundup -> won't solve sudden lift of protection 2) instead of SWAP_CLUSTER_MAX over-reclaim, do same under-reclaim -> same problem as 1) 3) update children_low_usage transactionally (after reclaim round is done) - ??? 4) don't recursively distribute residual protection in the same reclaim round - ??? 5) iterate siblings from highest to lowest protection - not a solution 6) assign only >SWAP_CLUSTER_MAX of residuum - need more info I'm discouraged by possible complexity of 3) or 4), while 6) is what I'd like to look more into. HTH, Michal