[LTP] [PATCH 0/2] configurable wake timeout and memcontrol03 fixes
Vasileios Almpanis
vasileios.almpanis@virtuozzo.com
Mon Mar 30 12:20:23 CEST 2026
Parents and children in memcontrol03 coordinate with very tight
timeout budget(10s) which ofter leads to timeout fails in slow configs.
The first patch extends tst_safe_checkpoint_wake() with an explicit
millisecond timeout; 0 keeps the previous 10s default.
It adds TST_CHECKPOINT_WAKE_TIMEOUT / TST_CHECKPOINT_WAKE2_TIMEOUT macros
so tests don't have to change existing TST_CHECKPOINT_WAKE* call sites.
The second patch uses tst_multiply_timeout(10) * 1000 for the checkpoint waits
and wakes in memcontrol03.c, including cleanup, so those budgets track
LTP_TIMEOUT_MUL.
Vasileios Almpanis (2):
lib/checkpoint: add configurable timeout for checkpoint wake
memcg: scale memcontrol03 checkpoint timeouts for slow kernels
include/tst_checkpoint.h | 41 ++++++++++++++++---
include/tst_checkpoint_fn.h | 2 +-
lib/tst_checkpoint.c | 9 +++-
.../kernel/controllers/memcg/memcontrol03.c | 13 +++---
4 files changed, 51 insertions(+), 14 deletions(-)
--
2.43.0
More information about the ltp
mailing list