Re: [LTP] [PATCH] perf_event_open03: Track SUnreclaim growth instead of MemAvailable
Cyril Hrubis <[email protected]> Tue, 21 Jul 2026 15:40:03 +0200
| Newsgroups | it.linux.lists.ltp |
|---|---|
| Message-ID | <[email protected]> |
Hi!
> - if ((sample > 5) || (diff_total > 100 * 1024))
> - tst_res(TFAIL, "Likely kernel memory leak detected, total decrease: %ld kB", diff_total);
> - else
> + if ((sample > 5) || (diff_total > 100 * 1024)) {
> + tst_res(TFAIL,
> + "Likely kernel memory leak detected, SUnreclaim increased by %ld kB total",
> + diff_total);
> + tst_res(TINFO,
> + "Unreclaimable slab can also grow due to memory activity from "
> + "any other unrelated process. If this test fails, re-run it on "
> + "an otherwise idle system and/or confirm with kmemleak "
> + "(CONFIG_DEBUG_KMEMLEAK) before treating it as a real regression.");
I wouldn't be that verbose here. Maybe something as:
"Unreclaimable slab can grow due to unrelated
reasons as well. You can rerun the test with
CONFIG_DEBUG_KMEMLEAK to make sure the leak is
real.
Other than that:
Reviewed-by: Cyril Hrubis <[email protected]>
--
Cyril Hrubis
[email protected]
--
Mailing list info: https://lists.linux.it/listinfo/ltp