[LTP] <Failling_on_memcg_usage_in_bytes_test.sh>

Na Nha minhnhan0801@gmail.com
Wed Dec 13 17:14:04 CET 2017


Hello ,



It’s still failed for both cases. Please take a look on log file for both:

=====================================================================================================



root@mx6q:/opt/ltp/testcases/bin# echo 0 >
/sys/fs/cgroup/memory/memory.use_hierarchy

root@mx6q:/opt/ltp/testcases/bin# ./memcg_max_usage_in_bytes_test.sh

memcg_max_usage_in_bytes_test 1 TINFO: Starting test 1

memcg_max_usage_in_bytes_test 1 TINFO: Running memcg_process
--mmap-anon -s 4194304

memcg_max_usage_in_bytes_test 1 TINFO: Warming up pid: 708

memcg_max_usage_in_bytes_test 1 TINFO: Process is still here after warm up: 708

memcg_max_usage_in_bytes_test 1 TPASS: memory.max_usage_in_bytes is
4194304 as expected

memcg_max_usage_in_bytes_test 2 TINFO: Starting test 2

memcg_max_usage_in_bytes_test 2 TINFO: Running memcg_process
--mmap-anon -s 4194304

memcg_max_usage_in_bytes_test 2 TINFO: Warming up pid: 728

memcg_max_usage_in_bytes_test 2 TINFO: Process is still here after warm up: 728

memcg_max_usage_in_bytes_test 2 TPASS: memory.memsw.max_usage_in_bytes
is 4194304 as expected

memcg_max_usage_in_bytes_test 3 TINFO: Starting test 3

memcg_max_usage_in_bytes_test 3 TINFO: Running memcg_process
--mmap-anon -s 4194304

memcg_max_usage_in_bytes_test 3 TINFO: Warming up pid: 748

memcg_max_usage_in_bytes_test 3 TINFO: Process is still here after warm up: 748

memcg_max_usage_in_bytes_test 3 TFAIL: memory.max_usage_in_bytes is
4325376, 4194304 expected

memcg_max_usage_in_bytes_test 4 TFAIL: memory.max_usage_in_bytes is
131072, 0 expected

memcg_max_usage_in_bytes_test 5 TINFO: Starting test 4

memcg_max_usage_in_bytes_test 5 TINFO: Running memcg_process
--mmap-anon -s 4194304

memcg_max_usage_in_bytes_test 5 TINFO: Warming up pid: 767

memcg_max_usage_in_bytes_test 5 TINFO: Process is still here after warm up: 767

memcg_max_usage_in_bytes_test 5 TPASS: memory.memsw.max_usage_in_bytes
is 4194304 as expected

memcg_max_usage_in_bytes_test 6 TPASS: memory.memsw.max_usage_in_bytes
is 0 as expected

=====================================================================================================



root@mx6q:/opt/ltp/testcases/bin# echo 1 >
/sys/fs/cgroup/memory/memory.use_hierarchy

root@mx6q:/opt/ltp/testcases/bin# ./memcg_max_usage_in_bytes_test.sh

memcg_max_usage_in_bytes_test 1 TINFO: Starting test 1

memcg_max_usage_in_bytes_test 1 TINFO: Running memcg_process
--mmap-anon -s 4194304

memcg_max_usage_in_bytes_test 1 TINFO: Warming up pid: 1014

memcg_max_usage_in_bytes_test 1 TINFO: Process is still here after warm up: 1014

memcg_max_usage_in_bytes_test 1 TFAIL: memory.max_usage_in_bytes is
4325376, 4194304 expected

/opt/ltp/testcases/bin/memcg_lib.sh: line 477: echo: write error:
Device or resource busy

memcg_max_usage_in_bytes_test 2 TINFO: restore
/dev/memcg/memory.use_hierarchy failed

memcg_max_usage_in_bytes_test 2 TINFO: Starting test 2

memcg_max_usage_in_bytes_test 2 TINFO: Running memcg_process
--mmap-anon -s 4194304

memcg_max_usage_in_bytes_test 2 TINFO: Warming up pid: 1034

memcg_max_usage_in_bytes_test 2 TINFO: Process is still here after warm up: 1034

memcg_max_usage_in_bytes_test 2 TFAIL: memory.memsw.max_usage_in_bytes
is 4325376, 4194304 expected

memcg_max_usage_in_bytes_test 3 TINFO: Starting test 3

memcg_max_usage_in_bytes_test 3 TINFO: Running memcg_process
--mmap-anon -s 4194304

memcg_max_usage_in_bytes_test 3 TINFO: Warming up pid: 1054

memcg_max_usage_in_bytes_test 3 TINFO: Process is still here after warm up: 1054

memcg_max_usage_in_bytes_test 3 TPASS: memory.max_usage_in_bytes is
4194304 as expected

memcg_max_usage_in_bytes_test 4 TPASS: memory.max_usage_in_bytes is 0
as expected

memcg_max_usage_in_bytes_test 5 TINFO: Starting test 4

memcg_max_usage_in_bytes_test 5 TINFO: Running memcg_process
--mmap-anon -s 4194304

memcg_max_usage_in_bytes_test 5 TINFO: Warming up pid: 1075

memcg_max_usage_in_bytes_test 5 TINFO: Process is still here after warm up: 1075

memcg_max_usage_in_bytes_test 5 TPASS: memory.memsw.max_usage_in_bytes
is 4194304 as expected

memcg_max_usage_in_bytes_test 6 TPASS: memory.memsw.max_usage_in_bytes
is 0 as expected

root@mx6q:/opt/ltp/testcases/bin#



Please help me to resolve the problem!



Trân trọng / Best regards,

Nhan Le Minh

2017-11-24 18:15 GMT+07:00 Li Wang <liwang@redhat.com>:
> On Thu, Nov 23, 2017 at 1:38 AM, Na Nha <minhnhan0801@gmail.com> wrote:
>> Hello Li,
>>
>>
>>
>> Actually, I saw the below log:
>
> That's it. I doubt you hit the same problem as this:
>   https://github.com/linux-test-project/ltp/issues/93
>
>>
>>
>>
>> /opt/ltp/testcases/bin/memcg_lib.sh: line 514: echo: write error:
>> Device or resource busy
>>
>> Or
>>
>> Something like:
>> # mount -t cgroup -omemory memcg /dev/memcg/
>> # mkdir -p /dev/memcg/ltp-test
>> # echo 0 >/dev/memcg/memory.use_hierarchy
>> -bash: echo: write error: Device or resource busy
>>
>>
>>
>> But so strangle, it has just appeared for the first time and it has been
>> passed not failed.
>
> Can you, confirm that whether this test is still failed when
> memory.use_hierarchy is 0?
>
>
> Test A:
> 1, reboot your system
> 2, ehco 0 >/sys/fs/cgroup/memory/memory.use_hierarchy
> 3, Run the ltp testcase: memcg_usage_in_bytes_test.sh
>
>
> Test B:
> 1, reboot
> 2, ehco 1 >/sys/fs/cgroup/memory/memory.use_hierarchy
> 3, Run the ltp testcase: memcg_usage_in_bytes_test.sh
>
>
> Which one(Test A or B?) you can get PASS on your ARM board?
>
>
>>
>> And the following times, it’s still passed. But sometime it’s failed.
>>
>> As mentioned previously, it is a dangling falling, sometimes the test result
>> is pass and sometimes is failed
>>
>>
>>
>> I have attached 2 logs file (1 failed, 1 passed log) when I run command : sh
>> –x  memcg_usage_in_bytes_test.sh for more detail log.
>>
>> Could you please review those and let me know what I should do next?
>>
>>
>>
>> Trân trọng / Best regards,
>>
>> Nhan Le Minh
>>
>
> Btw, please CC' LTP maillist when response email related to ltp thing. :)
>
> --
> Li Wang
> liwang@redhat.com


More information about the ltp mailing list