From nobody Thu Sep 18 21:43:46 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E7ACC4332F for ; Fri, 2 Dec 2022 08:50:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232628AbiLBIue (ORCPT ); Fri, 2 Dec 2022 03:50:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232608AbiLBIua (ORCPT ); Fri, 2 Dec 2022 03:50:30 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63C69B0A28 for ; Fri, 2 Dec 2022 00:50:28 -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 0BC3C1FE16; Fri, 2 Dec 2022 08:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1669971027; 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=LZIm84O2bOoJ4U2lQJhS8k8kVVfk2BSguwHQiEl9M5c=; b=bUk3okfzs0YoxvvN5f+8+xRn5zpW4Gi8OmvjTDMX8cYsCbH0Vu7ctaHt/1juowu6cw8hR5 11ok1o+tPH4vwlJ/kIIWjQScvYCPvPQjQdw8BoPTom8tZJMJ0GlXr0gWN8dICTztWxDfKY tz0fTw31190RQHEkhH9cA3w4QatgETI= 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 E0DC9133DE; Fri, 2 Dec 2022 08:50:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id c4f6M1K8iWMiMgAAGKfGzw (envelope-from ); Fri, 02 Dec 2022 08:50:26 +0000 Date: Fri, 2 Dec 2022 09:50:26 +0100 From: Michal Hocko To: kernel test robot Cc: Shakeel Butt , oe-lkp@lists.linux.dev, lkp@intel.com, Andrew Morton , kernel test robot , Soheil Hassas Yeganeh , Feng Tang , Roman Gushchin , Muchun Song , Eric Dumazet , Johannes Weiner , Michal =?iso-8859-1?Q?Koutn=FD?= , linux-kernel@vger.kernel.org Subject: [PATCH] kselftests: cgroup: update kmem test precision tolerance Message-ID: References: <202212010958.c1053bd3-yujie.liu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202212010958.c1053bd3-yujie.liu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" OK, so this is a full patch to fix this Acked-by: Shakeel Butt Reported-by: kernel test robot Tested-by: Yujie Liu ---=20 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=3D1 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/sel= ftests/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()) =20 =20 static int alloc_dcache(const char *cgroup, void *arg) --=20 2.30.2 --=20 Michal Hocko SUSE Labs