If you run this test again on the same node, it will pass:
<<<test_start>>>
tag=memcg_move_charge_at_immigrate stime=1563449267
cmdline="memcg_move_charge_at_immigrate_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
memcg_move_charge_at_immigrate_test 1 TINFO: Starting test 1
/opt/ltp/testcases/bin/memcg_move_charge_at_immigrate_test.sh: 522: echo: echo: I/O error
memcg_move_charge_at_immigrate_test 1 TINFO: set /dev/memcg/memory.use_hierarchy to 0 failed
memcg_move_charge_at_immigrate_test 1 TINFO: Running memcg_process --mmap-anon -s 135168
memcg_move_charge_at_immigrate_test 1 TINFO: Warming up pid: 3263
memcg_move_charge_at_immigrate_test 1 TINFO: Process is still here after warm up: 3263
memcg_move_charge_at_immigrate_test 1 TPASS: rss is 0 as expected
memcg_move_charge_at_immigrate_test 2 TPASS: cache is 0 as expected
memcg_move_charge_at_immigrate_test 3 TPASS: rss is 135168 as expected
memcg_move_charge_at_immigrate_test 4 TPASS: cache is 0 as expected
memcg_move_charge_at_immigrate_test 5 TINFO: Starting test 2
/opt/ltp/testcases/bin/memcg_move_charge_at_immigrate_test.sh: 522: echo: echo: I/O error
memcg_move_charge_at_immigrate_test 5 TINFO: set /dev/memcg/memory.use_hierarchy to 0 failed
memcg_move_charge_at_immigrate_test 5 TINFO: Running memcg_process --mmap-anon --shm --mmap-file -s 135168
memcg_move_charge_at_immigrate_test 5 TINFO: Warming up pid: 3293
memcg_move_charge_at_immigrate_test 5 TINFO: Process is still here after warm up: 3293
memcg_move_charge_at_immigrate_test 5 TPASS: rss is 135168 as expected
memcg_move_charge_at_immigrate_test 6 TPASS: cache is 0 as expected
memcg_move_charge_at_immigrate_test 7 TPASS: rss is 0 as expected
memcg_move_charge_at_immigrate_test 8 TPASS: cache is 270336 as expected
memcg_move_charge_at_immigrate_test 9 TINFO: Starting test 3
/opt/ltp/testcases/bin/memcg_move_charge_at_immigrate_test.sh: 522: echo: echo: I/O error
memcg_move_charge_at_immigrate_test 9 TINFO: set /dev/memcg/memory.use_hierarchy to 0 failed
memcg_move_charge_at_immigrate_test 9 TINFO: Running memcg_process --mmap-anon --shm --mmap-file -s 135168
memcg_move_charge_at_immigrate_test 9 TINFO: Warming up pid: 3323
memcg_move_charge_at_immigrate_test 9 TINFO: Process is still here after warm up: 3323
memcg_move_charge_at_immigrate_test 9 TPASS: rss is 0 as expected
memcg_move_charge_at_immigrate_test 10 TPASS: cache is 270336 as expected
memcg_move_charge_at_immigrate_test 11 TPASS: rss is 135168 as expected
memcg_move_charge_at_immigrate_test 12 TPASS: cache is 0 as expected
memcg_move_charge_at_immigrate_test 13 TINFO: Starting test 4
/opt/ltp/testcases/bin/memcg_move_charge_at_immigrate_test.sh: 522: echo: echo: I/O error
memcg_move_charge_at_immigrate_test 13 TINFO: set /dev/memcg/memory.use_hierarchy to 0 failed
memcg_move_charge_at_immigrate_test 13 TINFO: Running memcg_process --mmap-anon --shm -s 135168
memcg_move_charge_at_immigrate_test 13 TINFO: Warming up pid: 3353
memcg_move_charge_at_immigrate_test 13 TINFO: Process is still here after warm up: 3353
memcg_move_charge_at_immigrate_test 13 TPASS: rss is 135168 as expected
memcg_move_charge_at_immigrate_test 14 TPASS: cache is 135168 as expected
memcg_move_charge_at_immigrate_test 15 TPASS: rss is 0 as expected
memcg_move_charge_at_immigrate_test 16 TPASS: cache is 0 as expected
<<<execution_status>>>
initiation_status="ok"
duration=4 termination_type=exited termination_id=0 corefile=no
cutime=13 cstime=3
<<<test_end>>>
If you run this test again on the same node, it will pass: move_charge_ at_immigrate stime=1563449267 "memcg_ move_charge_ at_immigrate_ test.sh" charge_ at_immigrate_ test 1 TINFO: Starting test 1 testcases/ bin/memcg_ move_charge_ at_immigrate_ test.sh: 522: echo: echo: I/O error charge_ at_immigrate_ test 1 TINFO: set /dev/memcg/ memory. use_hierarchy to 0 failed charge_ at_immigrate_ test 1 TINFO: Running memcg_process --mmap-anon -s 135168 charge_ at_immigrate_ test 1 TINFO: Warming up pid: 3263 charge_ at_immigrate_ test 1 TINFO: Process is still here after warm up: 3263 charge_ at_immigrate_ test 1 TPASS: rss is 0 as expected charge_ at_immigrate_ test 2 TPASS: cache is 0 as expected charge_ at_immigrate_ test 3 TPASS: rss is 135168 as expected charge_ at_immigrate_ test 4 TPASS: cache is 0 as expected charge_ at_immigrate_ test 5 TINFO: Starting test 2 testcases/ bin/memcg_ move_charge_ at_immigrate_ test.sh: 522: echo: echo: I/O error charge_ at_immigrate_ test 5 TINFO: set /dev/memcg/ memory. use_hierarchy to 0 failed charge_ at_immigrate_ test 5 TINFO: Running memcg_process --mmap-anon --shm --mmap-file -s 135168 charge_ at_immigrate_ test 5 TINFO: Warming up pid: 3293 charge_ at_immigrate_ test 5 TINFO: Process is still here after warm up: 3293 charge_ at_immigrate_ test 5 TPASS: rss is 135168 as expected charge_ at_immigrate_ test 6 TPASS: cache is 0 as expected charge_ at_immigrate_ test 7 TPASS: rss is 0 as expected charge_ at_immigrate_ test 8 TPASS: cache is 270336 as expected charge_ at_immigrate_ test 9 TINFO: Starting test 3 testcases/ bin/memcg_ move_charge_ at_immigrate_ test.sh: 522: echo: echo: I/O error charge_ at_immigrate_ test 9 TINFO: set /dev/memcg/ memory. use_hierarchy to 0 failed charge_ at_immigrate_ test 9 TINFO: Running memcg_process --mmap-anon --shm --mmap-file -s 135168 charge_ at_immigrate_ test 9 TINFO: Warming up pid: 3323 charge_ at_immigrate_ test 9 TINFO: Process is still here after warm up: 3323 charge_ at_immigrate_ test 9 TPASS: rss is 0 as expected charge_ at_immigrate_ test 10 TPASS: cache is 270336 as expected charge_ at_immigrate_ test 11 TPASS: rss is 135168 as expected charge_ at_immigrate_ test 12 TPASS: cache is 0 as expected charge_ at_immigrate_ test 13 TINFO: Starting test 4 testcases/ bin/memcg_ move_charge_ at_immigrate_ test.sh: 522: echo: echo: I/O error charge_ at_immigrate_ test 13 TINFO: set /dev/memcg/ memory. use_hierarchy to 0 failed charge_ at_immigrate_ test 13 TINFO: Running memcg_process --mmap-anon --shm -s 135168 charge_ at_immigrate_ test 13 TINFO: Warming up pid: 3353 charge_ at_immigrate_ test 13 TINFO: Process is still here after warm up: 3353 charge_ at_immigrate_ test 13 TPASS: rss is 135168 as expected charge_ at_immigrate_ test 14 TPASS: cache is 135168 as expected charge_ at_immigrate_ test 15 TPASS: rss is 0 as expected charge_ at_immigrate_ test 16 TPASS: cache is 0 as expected status> >> status= "ok" type=exited termination_id=0 corefile=no
<<<test_start>>>
tag=memcg_
cmdline=
contacts=""
analysis=exit
<<<test_output>>>
memcg_move_
/opt/ltp/
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
/opt/ltp/
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
/opt/ltp/
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
/opt/ltp/
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
memcg_move_
<<<execution_
initiation_
duration=4 termination_
cutime=13 cstime=3
<<<test_end>>>