From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC6931632E7; Sat, 21 Mar 2026 01:16:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774055766; cv=none; b=iz65zjwGhWp7t3fxuTmpJoN01qRMz7N43Tnz29U6z4cAof4Au0FprJXR66CuLUo+YI59tzwGfKgYjjsj84x7KFrqY0sK2H2WAc6lCVQFgDl837bxKxUFF2oauzqXHktRH43LTdtiz8DvsmbL8caGs5ONFEzMRoriihuAzFtUvg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774055766; c=relaxed/simple; bh=CjNrAlHfSI/kjoViNVqQpDkjW1bNshpQDZf8Glk2/PQ=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=Tn9P29u5LlxZPKx6AZ02PCHPKVfBhspjzv5mUEdzDRPN5z67oDDY+3z6nYzOyM3wgMrfUkcc8meuA0gL3CNuLlRboOgqwkNTxAmv/kzyYk4IWSH88fQ/i96BD/zDtCSkJFEeNh30qU9040LT9h/x/r7/MuetoSOMSNWE/w2AuiA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=zP5Pl6mI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="zP5Pl6mI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A722CC4CEF7; Sat, 21 Mar 2026 01:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1774055766; bh=CjNrAlHfSI/kjoViNVqQpDkjW1bNshpQDZf8Glk2/PQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=zP5Pl6mIQtnUFVdxCSnS62RGX/oVqA081EVfgKz33z6aMaUO3qa7SHUZ9Uw++glBL IvuVsVl55hD486VsU/shY7mEFWYXXGmUJ3dVBCZpwouLr1CDX5HvAsO2cg28Vw9uvG PhGvz77Gobd/bpfu3lkArjYxXuWmB4pkswP1eRDA= Date: Fri, 20 Mar 2026 18:16:05 -0700 From: Andrew Morton To: Waiman Long Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Tejun Heo , Michal =?ISO-8859-1?Q?Koutn=FD?= , Shuah Khan , Mike Rapoport , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Sean Christopherson , James Houghton , Sebastian Chlad , Guopeng Zhang , Li Wang Subject: Re: [PATCH v2 0/7] selftests: memcg: Fix test_memcontrol test failures with large page sizes Message-Id: <20260320181605.206f5453d2bdac49ff6b4742@linux-foundation.org> In-Reply-To: <20260320204241.1613861-1-longman@redhat.com> References: <20260320204241.1613861-1-longman@redhat.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 20 Mar 2026 16:42:34 -0400 Waiman Long wrote: > There are a number of test failures with the running of the > test_memcontrol selftest on a 128-core arm64 system on kernels with > 4k/16k/64k page sizes. This patch series makes some minor changes to > the kernel and the test_memcontrol selftest to address these failures. > > The first kernel patch scales the memcg vmstats flush threshold > with int_sqrt() instead of linearly with the total number of CPUs. The > second kernel patch scale down MEMCG_CHARGE_BATCH with increases in page > size. These 2 patches help to reduce the discrepancies between the > reported usage data with the real ones. > > The next 5 test_memcontrol selftest patches adjust the testing code to > greatly reduce the chance that it will report failure, though some > occasional failures is still possible. The AI review is up: https://sashiko.dev/#/patchset/20260320204241.1613861-1-longman@redhat.com