[LTP] [PATCH v2] memcg: functional: 4.16 kernel updates stat counter in a batch of 33 pages

Petr Vorel pvorel@suse.cz
Thu Jun 28 15:41:27 CEST 2018


Hi Yang,


> Due to upstream kernel commit a983b5ebee57209c99f68c8327072f25e0e6e3da
> ("mm: memcontrol: fix excessive complexity in memory.stat reporting"),
> memory.stat is updated in a batch of 33 pages. This results in some test
> cases fail at checking stat counter since they just touch one page.

> Introduce PAGESIZES, which is 33 * PAGESIZE, used by affected test
> cases, keep others still use PAGESIZE. And, this change doesn't break
> pre-4.16 kernel.

> Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
> ---
> v1 --> v2:
> * Rename TST_PAGESIZE to PAGESIZES per Li Wang's suggestion

Pushed, thanks!


Kind regards,
Petr


More information about the ltp mailing list