* [LTP] memcg_memsw_limit_in_bytes_test mlock failed: Resource temporarily unavailable
@ 2016-05-27 9:36 Dong ZHu
2016-05-30 11:39 ` Cyril Hrubis
0 siblings, 1 reply; 3+ messages in thread
From: Dong ZHu @ 2016-05-27 9:36 UTC (permalink / raw)
To: ltp
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 ?
Thanks !
--
Best Regards,
Dong Zhu
My Site: http://bluezd.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20160527/bd8c874b/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] memcg_memsw_limit_in_bytes_test mlock failed: Resource temporarily unavailable
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
2016-05-31 0:59 ` Dong ZHu
0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2016-05-30 11:39 UTC (permalink / raw)
To: ltp
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] memcg_memsw_limit_in_bytes_test mlock failed: Resource temporarily unavailable
2016-05-30 11:39 ` Cyril Hrubis
@ 2016-05-31 0:59 ` Dong ZHu
0 siblings, 0 replies; 3+ messages in thread
From: Dong ZHu @ 2016-05-31 0:59 UTC (permalink / raw)
To: ltp
>> 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?
Yes.
> 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.
>
I agree with that, I will develop a patch for fixing this issue.
--
Best Regards,
Dong Zhu
My Site: http://bluezd.info
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-31 0:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-05-31 0:59 ` Dong ZHu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox