From: "Michal Koutný via ltp" <ltp@lists.linux.it>
To: Wei Gao <wegao@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v1 2/2] memcontrol03, memcontrol04: Set protection on parent cgroups to prevent kswapd over-reclaim
Date: Mon, 12 Oct 2026 16:13:51 +0200 [thread overview]
Message-ID: <20261012-postbox-cultural-bdfeea18f89f@there> (raw)
In-Reply-To: <asb7iTU4FBh4b0UT@autotest-wegao.qe.prg2.suse.org>
[-- Attachment #1.1: Type: text/plain, Size: 988 bytes --]
On Thu, Oct 08, 2026 at 02:10:17AM +0000, Wei Gao <wegao@suse.com> wrote:
> Protecting this solely from the external runner is tricky since LTP builds
> a 3-level cgroup hierarchy:
> - /sys/fs/cgroup/ltp (Level 1)
> - tst_cg (/sys/fs/cgroup/ltp/ltp-testxxxx, Level 2 — trunk_A's parent)
> - trunk_cg[A] (Level 3 — trunk_B's parent)
> Every level in this chain needs memory.low = 50M. Even if an external runner
> sets it at /sys/fs/cgroup/ltp, tst_cg or trunk_A will break the protection chain.
I see. (Note that this needn't be the same 50M as inside the test. The
value at this level would denote some protection sufficient for test's
stability.)
> Another option is make sure enough memory to the test environment so kswapd
> doesn't get triggered at all. I guess we can do this to avoid issue?
That sounds even better (or limit amount of tests running in parallel
wrt available amounts), memory.low on the high level is best-effort in
the end.
Michal
[-- Attachment #2: Type: text/plain, Size: 60 bytes --]
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2026-10-12 14:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-04 14:33 [LTP] [PATCH v1 0/2] memcontrol03, memcontrol04: Set protection on parent cgroups to prevent kswapd over-reclaim Wei Gao via ltp
2026-10-04 14:33 ` [LTP] [PATCH v1 1/2] memcontrol: Add helpers to set and restore parent memory knobs Wei Gao via ltp
2026-10-04 15:47 ` [LTP] " linuxtestproject.agent
2026-10-04 14:33 ` [LTP] [PATCH v1 2/2] memcontrol03, memcontrol04: Set protection on parent cgroups to prevent kswapd over-reclaim Wei Gao via ltp
2026-10-05 15:37 ` Michal Koutný via ltp
2026-10-08 2:10 ` Wei Gao via ltp
2026-10-12 14:13 ` Michal Koutný via ltp [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261012-postbox-cultural-bdfeea18f89f@there \
--to=ltp@lists.linux.it \
--cc=mkoutny@suse.com \
--cc=wegao@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox