<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1490748216282_7813"><span>Hi Cyril,</span></div><div id="yui_3_16_0_1_1490748216282_7812"><span><br></span></div><div id="yui_3_16_0_1_1490748216282_7793" dir="ltr">memcg_usage_in_bytes_test.sh is not changed for long time, so I think I almost used the latest version of LTP</div><div id="yui_3_16_0_1_1490748216282_7793" dir="ltr"><br></div><div id="yui_3_16_0_1_1490748216282_7793" dir="ltr">I resend the log, some EOL issue when I send it with my phone. Sorry for inconvenience.</div><div id="yui_3_16_0_1_1490748216282_7793" dir="ltr"><br></div><div style="margin:0in;font-family:Calibri;font-size:11.0pt" dir="ltr" id="yui_3_16_0_1_1490748216282_7891">Test:
memcg_usage_in_bytes Testparm:
memcg_usage_in_bytes_test.sh<br id="yui_3_16_0_1_1490748216282_7892">
memcg_usage_in_bytes_test 1 TINFO: Starting test
1<br id="yui_3_16_0_1_1490748216282_7893">
memcg_usage_in_bytes_test 1 TINFO: Running memcg_process --mmap-anon -s
4194304<br id="yui_3_16_0_1_1490748216282_7894">
memcg_usage_in_bytes_test 1 TINFO: Warming up pid:
886<br id="yui_3_16_0_1_1490748216282_7895">
memcg_usage_in_bytes_test 1 TINFO: Process is still here after warm up:
886<br id="yui_3_16_0_1_1490748216282_7896">
memcg_usage_in_bytes_test 1 TPASS: memory.usage_in_bytes is 4194304 as
expected<br id="yui_3_16_0_1_1490748216282_7897">
/opt/ltp/testcases/bin/memcg_lib.sh: line 477: echo: write error: Device or
resource busy<br id="yui_3_16_0_1_1490748216282_7898">
memcg_usage_in_bytes_test 2 TINFO: restore 
/dev/memcg/memory.use_hierarchy failed<br id="yui_3_16_0_1_1490748216282_7899">
memcg_usage_in_bytes_test 2 TINFO: Starting test
2<br id="yui_3_16_0_1_1490748216282_7900">
memcg_usage_in_bytes_test 2 TINFO: Running memcg_process --mmap-anon -s
4194304<br id="yui_3_16_0_1_1490748216282_7901">
memcg_usage_in_bytes_test 2 TINFO: Warming up pid:
906<br id="yui_3_16_0_1_1490748216282_7902">
memcg_usage_in_bytes_test 2 TINFO: Process is still here after warm up:
906<br id="yui_3_16_0_1_1490748216282_7903">
memcg_usage_in_bytes_test 2 TFAIL: memory.memsw.usage_in_bytes is 4325376, 4194304
expected<br id="yui_3_16_0_1_1490748216282_7904">
Result: 1</div><div class="qtdSeparateBR" id="yui_3_16_0_1_1490748216282_7792"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1490748216282_7792">Best regards,</div><div class="qtdSeparateBR" id="yui_3_16_0_1_1490748216282_7792"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1490748216282_7792">Hoang<br><br></div><div class="yahoo_quoted" id="yui_3_16_0_1_1490748216282_7760" style="display: block;">  <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1490748216282_7759"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_1_1490748216282_7758"> <div dir="ltr" id="yui_3_16_0_1_1490748216282_7791"> <font size="2" face="Arial" id="yui_3_16_0_1_1490748216282_7790"> <hr size="1" id="yui_3_16_0_1_1490748216282_7846"> <b><span style="font-weight:bold;">From:</span></b> Cyril Hrubis <chrubis@suse.cz><br> <b><span style="font-weight: bold;">To:</span></b> Hoang Nguyen <the_hoang0709@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> LTP List <ltp@lists.linux.it><br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 28 March 2017, 20:44<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LTP]  memcg_usage_in_bytes sometimes failed<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1490748216282_7757"><br><div class="yqt0332252370" id="yqtfd54848">Hi!<br clear="none">> I rarely meet this issue on embedded system, armv7l kernel 3.14, but not sure what's going wrong. It can pass on some boards, but fail sometimes on others with same config.<br clear="none">> Is there any aditional preparation to make this case always pass? Have anyone experienced on this ?<br clear="none">> Test: memcg_usage_in_bytes Testparm: memcg_usage_in_bytes_test.shmemcg_usage_in_bytes_test 1 TINFO: Starting test 1memcg_usage_in_bytes_test 1 TINFO: Running memcg_process --mmap-anon -s 4194304memcg_usage_in_bytes_test 1 TINFO: Warming up pid: 886memcg_usage_in_bytes_test 1 TINFO: Process is still here after warm up: 886memcg_usage_in_bytes_test 1 TPASS: memory.usage_in_bytes is 4194304 as expected/opt/ltp/testcases/bin/memcg_lib.sh: line 477: echo: write error: Device or resource busymemcg_usage_in_bytes_test 2 TINFO: restore ??/dev/memcg/memory.use_hierarchy failedmemcg_usage_in_bytes_test 2 TINFO: Starting test 2memcg_usage_in_bytes_test 2 TINFO: Running memcg_process --mmap-anon -s 4194304memcg_usage_in_bytes_test 2 TINFO: Warming up pid: 906memcg_usage_in_bytes_test 2 TINFO: Process is still here after warm up: 906memcg_usage_in_bytes_test 2 TFAIL: memory.memsw.usage_in_bytes is 4325376, 4194304 expectedResult: 1</div><br clear="none"><br clear="none">First of all, which LTP version are you using?<br clear="none"><br clear="none">Also please resend the log so that the text is not on a single line.<br clear="none">It's nearly impossible to read it as it is.<br clear="none"><br clear="none">-- <br clear="none">Cyril Hrubis<br clear="none"><a shape="rect" ymailto="mailto:chrubis@suse.cz" href="mailto:chrubis@suse.cz">chrubis@suse.cz</a><div class="yqt0332252370" id="yqtfd52123"><br clear="none"></div><br><br></div> </div> </div>  </div></div></body></html>