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: Tue, 28 Apr 2026 09:39:15 +0800 [thread overview]
Message-ID: <afAPw39vAH0IUB5Q@linux.dev> (raw)
In-Reply-To: <ae9rSG-1RT1wIcCc@autotest-wegao.qe.prg2.suse.org>
On Mon, Apr 27, 2026 at 01:57:28PM +0000, Wei Gao via ltp wrote:
>
> > Hi Wei,
> >
> > Wei Gao via ltp wrote:
> >
> > > mmapstress06 is designed to stress the mfile_swap kernel primitive, which
> > > manages shared anonymous memory. On architectures with large pages (like
> > > 64KB on ppc64le), the test's hardcoded request for 32769 pages results
> > > in a ~2GB mapping. So in suse test system configured with 2GB of RAM and
> > > no swap space, the test will fails with following information:
> > >
> > > mmapstress06: errno = 12; large mmap failed
> > > for this test to run, it needs a mmap space of
> > > 32769 pages
> > >
> > > The failure occurs because the 2GB request cannot be fulfilled within
> > > the 2GB RAM limit without swap backing. Since the test specifically
> > > intends to exercise swap-related logic (mfile_swap), it should be skipped
> > > with TCONF when the system lacks swap space.
> >
> > Since we do have MAKE_SWAPFILE_SIZE macros, I guess we could create
> > a dedicated swap-file for the testing on those system?
> Sorry forget mention this failure happen in our Immutable/Transactional
> systems test (default disable swap), i am not sure enable swap force do
> test is make sense or not.
Ok, if that system does not support swap on purpose,
that we can do the skip.
Reviewed-by: Li Wang <li.wang@linux.dev>
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-04-28 1:40 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 [this message]
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
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=afAPw39vAH0IUB5Q@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.