<div dir="auto"><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:'arial',sans-serif">Hello Li,<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:'arial',sans-serif"><u></u> <u></u></span></p><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:'arial',sans-serif">It’s still failed for both cases. Please take a look on result for both:<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:'arial',sans-serif"><u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:'arial',sans-serif">==============================<wbr>==============================<wbr>==============================<wbr>===========<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:'arial',sans-serif"><u></u> <u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;text-indent:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">root@mx6q:/opt/ltp/testcases/<wbr>bin# echo 0 > /sys/fs/cgroup/memory/memory.<wbr>use_hierarchy<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">root@mx6q:/opt/ltp/testcases/<wbr>bin# ./memcg_max_usage_in_bytes_<wbr>test.sh<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TINFO: Starting test 1<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TINFO: Running memcg_process --mmap-anon -s 4194304<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TINFO: Warming up pid: 708<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TINFO: Process is still here after warm up: 708<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TPASS: memory.max_usage_in_bytes is 4194304 as expected<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TINFO: Starting test 2<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TINFO: Running memcg_process --mmap-anon -s 4194304<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TINFO: Warming up pid: 728<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TINFO: Process is still here after warm up: 728<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TPASS: memory.memsw.max_usage_in_<wbr>bytes is 4194304 as expected<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TINFO: Starting test 3<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TINFO: Running memcg_process --mmap-anon -s 4194304<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TINFO: Warming up pid: 748<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TINFO: Process is still here after warm up: 748<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TFAIL: memory.max_usage_in_bytes is 4325376, 4194304 expected<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 4 TFAIL: memory.max_usage_in_bytes is 131072, 0 expected<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TINFO: Starting test 4<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TINFO: Running memcg_process --mmap-anon -s 4194304<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TINFO: Warming up pid: 767<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TINFO: Process is still here after warm up: 767<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TPASS: memory.memsw.max_usage_in_<wbr>bytes is 4194304 as expected<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"times new roman",serif"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 6 TPASS: memory.memsw.max_usage_in_<wbr>bytes is 0 as expected<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:'arial',sans-serif">==============================<wbr>==============================<wbr>==============================<wbr>===========<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:'arial',sans-serif"><u></u> <u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">root@mx6q:/opt/ltp/testcases/<wbr>bin# echo 1 > /sys/fs/cgroup/memory/memory.<wbr>use_hierarchy<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">root@mx6q:/opt/ltp/testcases/<wbr>bin# ./memcg_max_usage_in_bytes_<wbr>test.sh<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TINFO: Starting test 1<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TINFO: Running memcg_process --mmap-anon -s 4194304<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TINFO: Warming up pid: 1014<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TINFO: Process is still here after warm up: 1014<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 1 TFAIL: memory.max_usage_in_bytes is 4325376, 4194304 expected<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">/opt/ltp/testcases/bin/memcg_<wbr>lib.sh: line 477: echo: write error: Device or resource busy<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TINFO: restore /dev/memcg/memory.use_<wbr>hierarchy failed<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TINFO: Starting test 2<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TINFO: Running memcg_process --mmap-anon -s 4194304<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TINFO: Warming up pid: 1034<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TINFO: Process is still here after warm up: 1034<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 2 TFAIL: memory.memsw.max_usage_in_<wbr>bytes is 4325376, 4194304 expected<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TINFO: Starting test 3<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TINFO: Running memcg_process --mmap-anon -s 4194304<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TINFO: Warming up pid: 1054<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TINFO: Process is still here after warm up: 1054<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 3 TPASS: memory.max_usage_in_bytes is 4194304 as expected<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 4 TPASS: memory.max_usage_in_bytes is 0 as expected<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TINFO: Starting test 4<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TINFO: Running memcg_process --mmap-anon -s 4194304<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TINFO: Warming up pid: 1075<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TINFO: Process is still here after warm up: 1075<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 5 TPASS: memory.memsw.max_usage_in_<wbr>bytes is 4194304 as expected<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">memcg_max_usage_in_bytes_test 6 TPASS: memory.memsw.max_usage_in_<wbr>bytes is 0 as expected<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif">root@mx6q:/opt/ltp/testcases/<wbr>bin#<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px;margin-left:0.5in"><span style="font-size:10pt;font-family:'arial',sans-serif"><u></u> <u></u></span></p><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:'arial',sans-serif">Please help me to resolve the problem!<u></u><u></u></span></p><p style="font-family:sans-serif;font-size:13.696px"><br></p><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:10pt;font-family:arial,sans-serif">Trân trọng / Best regards, <br><br><b>Nhan Le Minh</b></span></p></div><div class="gmail_extra"><br><div class="gmail_quote">On Nov 24, 2017 6:15 PM, "Li Wang" <<a href="mailto:liwang@redhat.com">liwang@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Nov 23, 2017 at 1:38 AM, Na Nha <<a href="mailto:minhnhan0801@gmail.com">minhnhan0801@gmail.com</a>> wrote:<br>
> Hello Li,<br>
><br>
><br>
><br>
> Actually, I saw the below log:<br>
<br>
That's it. I doubt you hit the same problem as this:<br>
<a href="https://github.com/linux-test-project/ltp/issues/93" rel="noreferrer" target="_blank">https://github.com/linux-test-<wbr>project/ltp/issues/93</a><br>
<br>
><br>
><br>
><br>
> /opt/ltp/testcases/bin/memcg_<wbr>lib.sh: line 514: echo: write error:<br>
> Device or resource busy<br>
><br>
> Or<br>
><br>
> Something like:<br>
> # mount -t cgroup -omemory memcg /dev/memcg/<br>
> # mkdir -p /dev/memcg/ltp-test<br>
> # echo 0 >/dev/memcg/memory.use_<wbr>hierarchy<br>
> -bash: echo: write error: Device or resource busy<br>
><br>
><br>
><br>
> But so strangle, it has just appeared for the first time and it has been<br>
> passed not failed.<br>
<br>
Can you, confirm that whether this test is still failed when<br>
memory.use_hierarchy is 0?<br>
<br>
<br>
Test A:<br>
1, reboot your system<br>
2, ehco 0 >/sys/fs/cgroup/memory/memory.<wbr>use_hierarchy<br>
3, Run the ltp testcase: memcg_usage_in_bytes_test.sh<br>
<br>
<br>
Test B:<br>
1, reboot<br>
2, ehco 1 >/sys/fs/cgroup/memory/memory.<wbr>use_hierarchy<br>
3, Run the ltp testcase: memcg_usage_in_bytes_test.sh<br>
<br>
<br>
Which one(Test A or B?) you can get PASS on your ARM board?<br>
<br>
<br>
><br>
> And the following times, it’s still passed. But sometime it’s failed.<br>
><br>
> As mentioned previously, it is a dangling falling, sometimes the test result<br>
> is pass and sometimes is failed<br>
><br>
><br>
><br>
> I have attached 2 logs file (1 failed, 1 passed log) when I run command : sh<br>
> –x memcg_usage_in_bytes_test.sh for more detail log.<br>
><br>
> Could you please review those and let me know what I should do next?<br>
><br>
><br>
><br>
> Trân trọng / Best regards,<br>
><br>
> Nhan Le Minh<br>
><br>
<br>
Btw, please CC' LTP maillist when response email related to ltp thing. :)<br>
<br>
--<br>
Li Wang<br>
<a href="mailto:liwang@redhat.com">liwang@redhat.com</a><br>
</blockquote></div></div>