[LTP] memcg_memsw_limit_in_bytes_test mlock failed: Resource temporarily unavailable

Cyril Hrubis chrubis@suse.cz
Mon May 30 13:39:23 CEST 2016


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


More information about the ltp mailing list