[LTP] [RFC] [PATCH] syscalls/madvise09: Fix for disabled swap accounting
Cyril Hrubis
chrubis@suse.cz
Fri May 5 11:09:05 CEST 2017
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
More information about the ltp
mailing list