From: "Li Wang" <li.wang@linux.dev>
To: "Wei Gao" <wegao@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v1] mmapstress06: TCONF on systems without swap space
Date: Thu, 30 Apr 2026 08:01:12 +0000 [thread overview]
Message-ID: <8487d43450ec53d7fdb2110cd653231d31b91d43@linux.dev> (raw)
In-Reply-To: <afFrf9OtAUkcOjLT@autotest-wegao.qe.prg2.suse.org>
Hi Wei, Petr,
Wei Gao via ltp wrote:
> Base description/implementation of test case, The original test is "passive," merely creating a
> mapping and relying on external processes to trigger swapping(case has sleep_time parameter).
> Further more, this case is "ghost test" for current kernel, it do mmap but never
> writes to it, so kernel never actually allocated memory,
> Together with current obsolete logic(test targets legcy mfile_swap) i suggest just delete
> it instead of wasting time patching(refactor) it. What do you think? @Petr @wang li?
After looking into the details of mmapstress06, I agree that this
test only simulates progress and still requires another stress
tester to create memory pressure and trigger swapping.
Instead of removing this test, I prefer to refactor it into a
new API and encapsulate the orignial method within Cgroups.
e.g.
1. Check system swap availability
2. Create cgroup with memory.max and memory.swap.max limits
3. Create large anonymous shared mapping (original size)
4. Allocate stress region: size > memory.max in child
5. Ditry every page in stress region
6. Check process VmSwap increase
7. Cleanup
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2026-04-30 8:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 11:59 [LTP] [PATCH v1] mmapstress06: TCONF on systems without swap space Wei Gao via ltp
2026-04-27 12:26 ` Li Wang
2026-04-27 13:57 ` Wei Gao via ltp
2026-04-28 1:39 ` Li Wang
2026-04-27 13:57 ` [LTP] " linuxtestproject.agent
2026-04-28 11:52 ` [LTP] [PATCH v1] " Andrea Cervesato via ltp
2026-04-28 12:58 ` Petr Vorel
2026-04-28 16:34 ` Petr Vorel
2026-04-29 2:22 ` Wei Gao via ltp
2026-04-29 6:10 ` Petr Vorel
2026-04-30 8:01 ` Li Wang [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=8487d43450ec53d7fdb2110cd653231d31b91d43@linux.dev \
--to=li.wang@linux.dev \
--cc=ltp@lists.linux.it \
--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