From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] thp02: simplify test to lower memory requirements
Date: Tue, 22 Oct 2019 08:39:59 -0400 (EDT) [thread overview]
Message-ID: <2016228785.8155247.1571747999778.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20191022113704.GA13757@rei>
----- Original Message -----
> Hi!
> > Test is using 4 hugepages per allocation, and makes 4*3 allocations
> > in total. This is problem for aarch64, where default huge page size
> > is 512M. Systems are running into unexpected OOMs, because there
> > is no check for available memory.
> >
> > Simplify test by:
> > - dropping 3rd allocation, it's used only for pattern comparison
> > - run test function in new child process, so we don't need to worry
> > about cleaning up after mremap() and it lowers overall memory
> > requirements
> > - add a simple check if there's enough memory to setup()
> > - drop .needs_root, there's no need for it
>
> Looks good, acked.
Pushed.
prev parent reply other threads:[~2019-10-22 12:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-18 15:30 [LTP] [PATCH] thp02: simplify test to lower memory requirements Jan Stancek
2019-10-21 7:04 ` Li Wang
2019-10-22 11:37 ` Cyril Hrubis
2019-10-22 12:39 ` Jan Stancek [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=2016228785.8155247.1571747999778.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp@lists.linux.it \
/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.