Linux Test Project
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] memcg_memsw_limit_in_bytes_test mlock failed: Resource temporarily unavailable
Date: Mon, 30 May 2016 13:39:23 +0200	[thread overview]
Message-ID: <20160530113923.GA6079@rei> (raw)
In-Reply-To: <CAAUgArDNuD89q3dFLxqwjMi-6opiggZhWo_oEL9qUNUxcxCkrA@mail.gmail.com>

Hi!
> I ran LTP test "memcg_memsw_limit_in_bytes_test" with kernel 3.10.0-327.el7
> always reported the below error:
> 
> memcg_memsw_limit_in_bytes_test 2 TFAIL : ltpapicmd.c:193: process 3769 is
> killed by error /opt/ltp/testcases/bin/memcg_lib.sh: line 210: 3784 Killed
> $TEST_PATH/memcg_process $2 -s $3
> 
> In function mmap_lock2() mlock failed just return 1, not the oom killer
> kill the process.
> And base on the this:
> http://marc.info/?l=linux-mm&m=142122902313315&w=2
> 
> I think mlock failed it is a expect behavior, so why mask the test as
> Failed ?

So the test fails in mlock() and the mlock() supposedly returns with
ENOMEM right? This is indeed valid outcome and the test should report
pass. I guess that we have to return something different from 1 from the
test process if some of the calls has failed with ENOMEM and change the
test library to report that as success as well.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2016-05-30 11:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-27  9:36 [LTP] memcg_memsw_limit_in_bytes_test mlock failed: Resource temporarily unavailable Dong ZHu
2016-05-30 11:39 ` Cyril Hrubis [this message]
2016-05-31  0:59   ` Dong ZHu

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=20160530113923.GA6079@rei \
    --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