Re: [PATCH v2 0/7] selftests: memcg: Fix test_memcontrol test failures with large page sizes
From: Andrew Morton
Date: Fri Mar 20 2026 - 21:16:20 EST
On Fri, 20 Mar 2026 16:42:34 -0400 Waiman Long <longman@xxxxxxxxxx> 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@xxxxxxxxxx