Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5540863rwb; Mon, 5 Dec 2022 00:02:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Ajd3CO9dIRFnUtwmYXSUBfHGGxytP6AzdZG2iTLKvB78d6sR4hdQeXi7LrY2EwRUi2v8x X-Received: by 2002:a17:907:6744:b0:7c0:8d04:d1f1 with SMTP id qm4-20020a170907674400b007c08d04d1f1mr22487413ejc.208.1670227359144; Mon, 05 Dec 2022 00:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670227359; cv=none; d=google.com; s=arc-20160816; b=xS3RaKGVf/geL90HaHIONE0A26kvn+/9swxWn+4SnJmfbFuQUO1yAXOOUjiXPH0pz3 PHWL5zgMANKvS2CMrP7GLl0/PP0DYVYqQn/MgkgY04wbECbnInWLhi7b5C3P9vrvL+fZ SMS7zki0ggGKoPL6yO99RZMWkbgk4vJ/A8v4MHAN+TqLN+GYCmhL8L+cZhO0WkdM9SqT AsrArXdUuR9/9uppxnEdHFTD0i4F6yrf/mZtbGRWz9N5IGHA7zViQrJpyITiqWTL98V2 Y35LR2MTkIuBJkUSiu+Qf1VxmISA4eFK/5zMpZHOLMwlKcKohEmtQL4eenm6dlBgaH9V 09JQ== 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=NePOxt+MDk0hEjxXAZdBpH+ZB5USLXCDgbBxeYkWlMQ=; b=qoWVes803p4aeuNlGingEj6+WdRFHKA3tvkKsZODNgMwxtXFuVinrY6LV9zuwJPgCM FKn56D66EbqgKzvXDAoFh357xXIx3o+g6WQetFWDeo8KNAJwrCq9WZm3eXEdAcxk///m LgqXku6xAjPbJOnU7o1gOedu3iAcZCI1Up/Nx1A4OZ9zrkLGjCMpZ1TS19PUzll9K2t2 cmU22dFNKMQkyqQdc7ixKDNQ99YH+zyf0lmxz1rOTjNbAxM9W9Szf3WQ+rolmdNERheJ 0otZ7CEfl+mooHjm8D20k1RrRE/W4wA8RBcCjy0+hQFZSFqRyXyIxA8k76mz5y1uQpTT BpKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=d8exc43R; 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 xh8-20020a170906da8800b007b9944592c5si11109102ejb.935.2022.12.05.00.02.19; Mon, 05 Dec 2022 00:02:39 -0800 (PST) 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=d8exc43R; 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 S231671AbiLEHdP (ORCPT + 82 others); Mon, 5 Dec 2022 02:33:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231453AbiLEHdN (ORCPT ); Mon, 5 Dec 2022 02:33:13 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB9E12620 for ; Sun, 4 Dec 2022 23:33:12 -0800 (PST) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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 D04451FE38; Mon, 5 Dec 2022 07:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1670225590; 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=NePOxt+MDk0hEjxXAZdBpH+ZB5USLXCDgbBxeYkWlMQ=; b=d8exc43Rdw6AmvWnBLKZYaVMFfDlgM5VvL+qxoMjtFkJSLbjIwHRAODIz6FUz7zuky9Q3O ZSYKPN1J2l5Kh87wNhXwq/EXfdCDeJkmnkdCSn/jFJUIxsewvLxRmk98AYgGIrcUnKDzgh ba7N4hzvKSUmyqSUBlwJyDflQGzDY28= Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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 imap1.suse-dmz.suse.de (Postfix) with ESMTPS id B01211348F; Mon, 5 Dec 2022 07:33:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 1Z78J7aejWNCJQAAGKfGzw (envelope-from ); Mon, 05 Dec 2022 07:33:10 +0000 Date: Mon, 5 Dec 2022 08:33:09 +0100 From: Michal Hocko To: Roman Gushchin Cc: kernel test robot , Shakeel Butt , oe-lkp@lists.linux.dev, lkp@intel.com, Andrew Morton , kernel test robot , Soheil Hassas Yeganeh , Feng Tang , Muchun Song , Eric Dumazet , Johannes Weiner , Michal =?iso-8859-1?Q?Koutn=FD?= , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kselftests: cgroup: update kmem test precision tolerance Message-ID: References: <202212010958.c1053bd3-yujie.liu@intel.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 Fri 02-12-22 09:16:17, Roman Gushchin wrote: > On Fri, Dec 02, 2022 at 09:50:26AM +0100, Michal Hocko wrote: > > OK, so this is a full patch to fix this > > --- > > From 7f338ed952ba4a100822004bc8399bf720b42899 Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Fri, 2 Dec 2022 09:45:29 +0100 > > Subject: [PATCH] kselftests: cgroup: update kmem test precision tolerance > > > > 1813e51eece0 ("memcg: increase MEMCG_CHARGE_BATCH to 64") has changed > > the batch size while this test case has been left behind. This has led > > to a test failure reported by test bot: > > not ok 2 selftests: cgroup: test_kmem # exit=1 > > > > Update the tolerance for the pcp charges to reflect the > > MEMCG_CHARGE_BATCH change to fix this. > > > > Reported-by: kernel test robot > > Link: https://lore.kernel.org/oe-lkp/202212010958.c1053bd3-yujie.liu@intel.com > > Signed-off-by: Michal Hocko > > --- > > tools/testing/selftests/cgroup/test_kmem.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/tools/testing/selftests/cgroup/test_kmem.c b/tools/testing/selftests/cgroup/test_kmem.c > > index 22b31ebb3513..1d073e28254b 100644 > > --- a/tools/testing/selftests/cgroup/test_kmem.c > > +++ b/tools/testing/selftests/cgroup/test_kmem.c > > @@ -24,7 +24,7 @@ > > * the maximum discrepancy between charge and vmstat entries is number > > * of cpus multiplied by 32 pages. > > */ > > -#define MAX_VMSTAT_ERROR (4096 * 32 * get_nprocs()) > > +#define MAX_VMSTAT_ERROR (4096 * 64 * get_nprocs()) > > Hi Michal! > > You need to update comments above too (it says 32 pages in a couple of places). > I actually sent the similar patch to Andrew yesterday, but hit reply and missed > adding people to cc. > > Please, feel free to send your v2 with comments fixed and my acked-by, > or we can go with my version. It seems Andrew has already done all the fixups. Thanks both to you and Andrew! -- Michal Hocko SUSE Labs