[LTP] [PATCH 1/2] swapon01: Test on all filesystems
Cyril Hrubis
chrubis@suse.cz
Fri Jan 19 15:53:26 CET 2024
Hi!
> > > For the previous iteration of this patch Li wasn't sure if this adds
> > > enough value since there isn't ton of filesystem specific code involved
> > > unless we actually start writing to the swapfile.
>
> I wonder how to force. We could setup
>
> sysctl vm.swappiness=100
>
> But how to consume enough RAM to be actually written?
One way is put the process into a cgroup with fairly small RAM limit and
then allocate and fault memory, getting this right is not that easy
though.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list