Re: [PATCH v7 0/8] selftests/cgroup: improve zswap tests robustness and support large page sizes

Li Wang
2026-04-24T11:15:01Z

On Fri, Apr 24, 2026 at 03:06:05AM -0700, Andrew Morton wrote:
> On Fri, 24 Apr 2026 12:00:51 +0800 Li Wang <li.wang@linux.dev> wrote:
>
> > This patchset aims to fix various spurious failures and improve the overall
> > robustness of the cgroup zswap selftests.
>
> Great, thanks, I'll queue this in mm.git's mm-new branch. Next week
> I'll move it into mm-unstable, where it will receive liunx-next
> exposure.
>
> > The primary motivation is to make the tests compatible with architectures
> > that use non-4K page sizes (such as 64K on ppc64le and arm64). Currently,
> > the tests rely heavily on hardcoded 4K page sizes and fixed memory limits.
>
> Well that's an oops.
>
> > On 64K page size systems, these hardcoded values lead to sub-page granularity
> > accesses, incorrect page count calculations, and insufficient memory pressure
> > to trigger zswap writeback, ultimately causing the tests to fail.
>
> I assume you've been testing on arm64 or ppc?

Yes, before sending, I teseted the patchset on:

x86_64(4k), aarch64(4K, 64K), ppc64le(64K)

--
Regards,
Li Wang