From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [RFC] [PATCH] syscalls/madvise09: Fix for disabled swap accounting
Date: Fri, 5 May 2017 11:09:05 +0200 [thread overview]
Message-ID: <20170505090905.GA8277@rei.suse.de> (raw)
In-Reply-To: <20170503081832.GA28634@rei.lan>
Hi!
> > > The test had to be fixed for systems with swap accounting disabled.
> > >
> > > First there are no "memsw" prefixed tuning knobs in memcg directories if
> > > swap accounting is disabled.
> > >
> > > Then we had to limit the hungry child since otherwise it will be killed
> > > only after all system swap was filled. Hence we exit the memory hungry
> > > child once the process fills 100MB of swap. That seems to be enough to
> > > put the cgroup into memory pressure while it limits the test runtime to
> > > a few seconds.
> >
> > Looks reasonable to me, only 2 alternatives I can think of is turning
> > off swap for duration of test, or exit with TCONF if swap accounting
> > is disabled.
Pushed with your ack.
--
Cyril Hrubis
chrubis@suse.cz
prev parent reply other threads:[~2017-05-05 9:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-02 13:33 [LTP] [RFC] [PATCH] syscalls/madvise09: Fix for disabled swap accounting Cyril Hrubis
2017-05-03 8:14 ` Jan Stancek
2017-05-03 8:18 ` Cyril Hrubis
2017-05-05 9:09 ` Cyril Hrubis [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=20170505090905.GA8277@rei.suse.de \
--to=chrubis@suse.cz \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox