public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/2] configurable wake timeout and memcontrol03 fixes
@ 2026-03-30 10:20 Vasileios Almpanis via ltp
  2026-03-30 10:20 ` [LTP] [PATCH 1/2] lib/checkpoint: add configurable timeout for checkpoint wake Vasileios Almpanis via ltp
  2026-03-30 10:20 ` [LTP] [PATCH 2/2] memcg: scale memcontrol03 checkpoint timeouts for slow kernels Vasileios Almpanis via ltp
  0 siblings, 2 replies; 9+ messages in thread
From: Vasileios Almpanis via ltp @ 2026-03-30 10:20 UTC (permalink / raw)
  To: ltp

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-08  8:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-30 10:20 [LTP] [PATCH 0/2] configurable wake timeout and memcontrol03 fixes Vasileios Almpanis via ltp
2026-03-30 10:20 ` [LTP] [PATCH 1/2] lib/checkpoint: add configurable timeout for checkpoint wake Vasileios Almpanis via ltp
2026-04-02  9:57   ` [LTP] [PATCH v2 1/1] lib: scale checkpoint wait/wake timeouts with tst_multiply_timeout() Vasileios Almpanis via ltp
2026-04-02 12:52     ` Cyril Hrubis
2026-04-02 20:11       ` Petr Vorel
2026-04-08  8:44         ` Li Wang via ltp
2026-03-30 10:20 ` [LTP] [PATCH 2/2] memcg: scale memcontrol03 checkpoint timeouts for slow kernels Vasileios Almpanis via ltp
2026-04-01 10:37   ` Cyril Hrubis
2026-04-01 10:44     ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox