Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4480298rwd; Tue, 23 May 2023 08:14:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7U4ingcUIYO7sczvKCIMpAXfxV3ait3HEMoVSjdtNuGmc9q5zWTb2BFeRp9YBfYIwubM5E X-Received: by 2002:a17:903:260d:b0:1ae:89a:92 with SMTP id jd13-20020a170903260d00b001ae089a0092mr13279054plb.59.1684854858639; Tue, 23 May 2023 08:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684854858; cv=none; d=google.com; s=arc-20160816; b=CvYsG0PloTGEZ3C8k2JgE1HOQ5dNwlBCNFLxnRgP1bXCrVTIR6ffDvHl9IWrcqpGK8 SWQ/5i5fSmckx1GynOw/oEW2XnUeNnzkOEh8IkT1KU6vvhJYYZO9Z9iA5ziMuy9LtH76 U/IBs5/Zx/pRK+lbJYKaJK3OkwgDaI+t+PsyV9OSuFqOLr3ueDNoemGVvY59EsAGrtrN z17/MTW1XdI83W9ggi7jDz/gYeUtlBT+aCXFPQDFxdrOKl7xNHpWpu3j38tNlbWumV5W 3+7zBfyP4p4zVCnq8B//BYxldRX85eNurZg0fnj36LfcYP0aYrSv4l65qhp6zPaAEMCN qcnA== 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=nGlr9RSvSIRIegvdJA3tDbcOz/gxFk1P8G5vHNFFvdw=; b=BCwZRbTiylXKJMjan12lFjh09YCnTJbnoe6PMZIo/Jlm0l9wOqZBu1e3CX/P0NC4KX HatQQxyCDOb8ihhl7/jV6M27VVF9NI8H6DfwariWlZ0NyV1cxxZ9NR1Ozu3/GW2LFyCh 2p8kNTKvJOMVCPmXbQgcWUQ0xrMyN98cY8VuYrBAHbuXTeiMQrgFm1CqUJbF/uUqGy1+ a2g9b5I6Yt02ktLftWOEGHUMgu6z+f17QREw0iGhgpKX75EL6bRZYr1BknGB+SIc6O/B RUIiM/CWG5j/8dIa1v02JD705ijLEkXpuhYYjGI3dbmw0MiSbLbR36aJ2Y7rYMcT5KqT sqow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Uxk2np0y; 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 ij30-20020a170902ab5e00b001ae55912bd1si6289681plb.327.2023.05.23.08.14.06; Tue, 23 May 2023 08:14:18 -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=Uxk2np0y; 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 S237342AbjEWOlA (ORCPT + 99 others); Tue, 23 May 2023 10:41:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237343AbjEWOk6 (ORCPT ); Tue, 23 May 2023 10:40:58 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CAE7FA; Tue, 23 May 2023 07:40:56 -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-out1.suse.de (Postfix) with ESMTPS id 11270229F9; Tue, 23 May 2023 14:40:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1684852848; 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=nGlr9RSvSIRIegvdJA3tDbcOz/gxFk1P8G5vHNFFvdw=; b=Uxk2np0yuV6dsJAJsvbMA15zF96rjED8fP2akEhLxsmTpt+feyN2T/XT2pX2L8XeAZ4ZNd x/FzKx4vRGic0qaTq8sE2kEc12gKEby+NSQYZAjT9a/i9yg98rtiR1IHPVBAP/QqZKzzcp /LSS2uf6XfVEVLuRagQgPj5k0Vkwt7U= 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 DA1DA13588; Tue, 23 May 2023 14:40:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id tCdyNG/QbGRaawAAMHmgww (envelope-from ); Tue, 23 May 2023 14:40:47 +0000 Date: Tue, 23 May 2023 16:40:46 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Haifeng Xu Cc: mhocko@kernel.org, roman.gushchin@linux.dev, hannes@cmpxchg.org, shakeelb@google.com, akpm@linux-foundation.org, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] selftests: cgroup: fix unexpected failure on test_memcg_low Message-ID: References: <20230522095233.4246-2-haifeng.xu@shopee.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qrfw5lltt6r2lzen" Content-Disposition: inline In-Reply-To: <20230522095233.4246-2-haifeng.xu@shopee.com> 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,URIBL_BLOCKED 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 --qrfw5lltt6r2lzen Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 22, 2023 at 09:52:33AM +0000, Haifeng Xu wrote: > Since commit f079a020ba95 ("selftests: memcg: factor out common parts > of memory.{low,min} tests"), the value used in second alloc_anon has > changed from 148M to 170M. Because memory.low allows reclaiming page > cache in child cgroups, so the memory.current is close to 30M instead > of 50M. Therefore, adjust the expected value of parent cgroup. >=20 > Fixes: f079a020ba95 ("selftests: memcg: factor out common parts of memory= =2E{low,min} tests") > Signed-off-by: Haifeng Xu > --- > tools/testing/selftests/cgroup/test_memcontrol.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Yes, the expected value should be complement of the allocation to the limit when reclaim is allowed. Reviewed-by: Michal Koutn=FD FTR, the test_memcg_low fails after the fix still (6.3.1-2-default) because of nonzero memory.events:low in the unprotected A/B/E group (with memory_recursiveprot). (That's another and long standing issues -- perhaps the reason why this issue was hidden.) Thanks, Michal --qrfw5lltt6r2lzen Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTrXXag4J0QvXXBmkMkDQmsBEOquQUCZGzQbAAKCRAkDQmsBEOq uZ7BAQCh/IzL0Y/nVUwN/zZJm3gzAUIYiiYkjKXr3IdIi/nEEAD8CrjZAUCERkWq My0modfCN7u48OMYoc2a0660bD9tYww= =er1S -----END PGP SIGNATURE----- --qrfw5lltt6r2lzen--