[LTP] [RFC PATCH] mm: rewrite mtest01 with new API

Li Wang liwang@redhat.com
Fri Mar 1 09:26:43 CET 2019

On Fri, Mar 1, 2019 at 4:03 PM Jan Stancek <jstancek@redhat.com> wrote:

Maybe give it few days, so other people can respond, if they like/don't like
> going in this direction.


Btw, I'm not going to use shared memory here since that probably make
things more complicated.
I guess just do remaining time check in the parent while loop is enough for
the two OOM situations
which I was mentioned in last mail.

==== mem_test() ======

if (pid == 0)

/* waits in the loop for all children finish allocating*/
while(pid_count < pid_cntr) {
if (tst_timeout_remaining() < 15)


if (dowrite) {
                pre_free - post_free check...
} else {

       kill children here..

Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20190301/6952d779/attachment-0001.html>

More information about the ltp mailing list