Hay
Date
June 30, 2025, 8:07 a.m.
Failure - kselftest-mm - mm_run_vmtests_sh_pagemap_ioctl_sanity_tests_Memory_mapped_file
<8>[  561.875836] <LAVA_SIGNAL_STARTTC mm_run_vmtests_sh_pagemap_ioctl_sanity_tests_Memory_mapped_file>
<8>[  561.883945] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_pagemap_ioctl_sanity_tests_Memory_mapped_file>
mm_run_vmtests_sh_pagemap_ioctl_sanity_tests_Memory_mapped_file fail
Failure - kselftest-mm - mm_run_vmtests_sh_hugetlb_reparenting_test_sh__cgroup-v2
<8>[  552.609020] <LAVA_SIGNAL_STARTTC mm_run_vmtests_sh_hugetlb_reparenting_test_sh__cgroup-v2>
exit=1-------------------------------
running ./virtual_address_range
-------------------------------
TAP version 13
1..1
ok 1 Test
# Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0
[PASS]
<8>[  552.620189] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_hugetlb_reparenting_test_sh__cgroup-v2>
mm_run_vmtests_sh_hugetlb_reparenting_test_sh__cgroup-v2 fail
Failure - kselftest-mm - mm_run_vmtests_sh_thuge-gen
<8>[  552.317796] <LAVA_SIGNAL_STARTTC mm_run_vmtests_sh_thuge-gen>
exit=1-----------------------------------------------
running ./charge_reserved_hugetlb.sh -cgroup-v2
-----------------------------------------------
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=, populate=, method=0, reserve=
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=0
Shared mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
After write:
hugetlb_usage=0
reserved_usage=10485760
0
10485760
Memory charged to hugtlb=0
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=, populate=, method=0, reserve=
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=0
Shared mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
After write:
hugetlb_usage=10485760
reserved_usage=10485760
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=, populate=, method=0, reserve=-n
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=0
Shared mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
After write:
hugetlb_usage=0
reserved_usage=0
0
0
Memory charged to hugtlb=0
Memory charged to reservation=0
PASS
CLEANUP DONE



Test normal case with write.
private=, populate=, method=0, reserve=-n
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=0
Shared mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
After write:
hugetlb_usage=10485760
reserved_usage=10485760
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=-r, populate=, method=0, reserve=
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=0
Private mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=0
Private mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=0
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
0
10485760
Memory charged to hugtlb=0
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=-r, populate=, method=0, reserve=
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=0
Private mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=0
Private mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=-r, populate=, method=0, reserve=-n
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
waiting for DONE signal.
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=0
Private mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=0
Private mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=0
reserved_usage=0
killing write_to_hugetlbfs
Received 2.
0
0
Memory charged to hugtlb=0
Memory charged to reservation=0
PASS
CLEANUP DONE



Test normal case with write.
private=-r, populate=, method=0, reserve=-n
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
waiting for DONE signal.
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=0
Private mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=0
Private mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=-r, populate=, method=1, reserve=
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f556c400000
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f556c400000
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=0
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
0
10485760
Memory charged to hugtlb=0
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=-r, populate=, method=1, reserve=
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f77f3a00000
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f77f3a00000
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=-r, populate=, method=1, reserve=-n
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7fa752a00000
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7fa752a00000
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=0
reserved_usage=0
killing write_to_hugetlbfs
Received 2.
0
0
Memory charged to hugtlb=0
Memory charged to reservation=0
PASS
CLEANUP DONE



Test normal case with write.
private=-r, populate=, method=1, reserve=-n
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f602d000000
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f602d000000
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=, populate=, method=2, reserve=
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 2
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=2
Shared mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x1, shmget key:0
shmaddr: 0x7f5117600000
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 2
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=2
Shared mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x1, shmget key:0
shmaddr: 0x7f5117600000
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=0
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
Deleting the memory
Done deleting the memory
0
10485760
Memory charged to hugtlb=0
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=, populate=, method=2, reserve=
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 2
waiting for DONE signal.
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=2
Shared mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x2, shmget key:0
shmaddr: 0x7fd8d5200000
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 2
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=2
Shared mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x2, shmget key:0
shmaddr: 0x7fd8d5200000
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
Deleting the memory
Done deleting the memory
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=-r, populate=, method=2, reserve=
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 2
waiting for DONE signal.
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=2
Private mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x3, shmget key:0
shmaddr: 0x7f49ee800000
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 2
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Not writing to memory.
Using method=2
Private mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x3, shmget key:0
shmaddr: 0x7f49ee800000
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=0
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
Deleting the memory
Done deleting the memory
0
10485760
Memory charged to hugtlb=0
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=-r, populate=, method=2, reserve=
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 2
waiting for DONE signal.
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=2
Private mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x4, shmget key:0
shmaddr: 0x7fb61c200000
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 2
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Not populating.
Using method=2
Private mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x4, shmget key:0
shmaddr: 0x7fb61c200000
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
Deleting the memory
Done deleting the memory
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=, populate=-o, method=0, reserve=
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=0
Shared mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
After write:
hugetlb_usage=10485760
reserved_usage=10485760
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=, populate=-o, method=0, reserve=
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=0
Shared mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
After write:
hugetlb_usage=10485760
reserved_usage=10485760
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=, populate=-o, method=0, reserve=-n
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=0
Shared mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
After write:
hugetlb_usage=10485760
reserved_usage=10485760
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=, populate=-o, method=0, reserve=-n
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=0
Shared mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
After write:
hugetlb_usage=10485760
reserved_usage=10485760
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=-r, populate=-o, method=0, reserve=
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=0
Private mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=0
Private mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=-r, populate=-o, method=0, reserve=
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=0
Private mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=0
Private mapping.
RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=-r, populate=-o, method=0, reserve=-n
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
waiting for DONE signal.
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=0
Private mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=0
Private mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=-r, populate=-o, method=0, reserve=-n
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=0
Private mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 0
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=0
Private mapping.
NO_RESERVE mapping.
Allocating using HUGETLBFS.
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=-r, populate=-o, method=1, reserve=
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7efe45a00000
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7efe45a00000
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=-r, populate=-o, method=1, reserve=
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7fca6e200000
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7fca6e200000
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
CLEANUP DONE



Test normal case.
private=-r, populate=-o, method=1, reserve=-n
nr hugepages = 10
writing cgroup limit: 20971520
writing reseravation limit: 20971520

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
waiting for DONE signal.
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7efdd9200000
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Not writing to memory.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7efdd9200000
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE



Test normal case with write.
private=-r, populate=-o, method=1, reserve=-n
nr hugepages = 10
writing cgroup limit: 10485760
writing reseravation limit: 10485760

Starting:
hugetlb_usage=0
reserved_usage=0
expect_failure is 0
Putting task in cgroup 'hugetlb_cgroup_test'
waiting for DONE signal.
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f3d68800000
Writing to memory.
DONE
================= write_hugetlb_memory.sh output is:
Putting task in cgroup 'hugetlb_cgroup_test'
Method is 1
Writing to this path: /mnt/huge/test
Writing this size: 10485760
Populating.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f3d68800000
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_usage=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
[PASS]
<8>[  552.530711] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_thuge-gen>
mm_run_vmtests_sh_thuge-gen fail
Failure - kselftest-mm - mm_run_vmtests_sh_mlock-random-test
<8>[  551.061466] <LAVA_SIGNAL_STARTTC mm_run_vmtests_sh_mlock-random-test>
exit=139----------------------
running ./mlock2-tests
----------------------
TAP version 13
1..13
ok 1 test_mlock_lock: Locked
ok 2 test_mlock_lock: Unlocked
ok 3 test_mlock_onfault: VMA marked for lock on fault
ok 4 VMA open lock after fault
ok 5 test_munlockall0: Locked memory area
ok 6 test_munlockall0: No locked memory
ok 7 test_munlockall1: VMA marked for lock on fault
ok 8 test_munlockall1: Unlocked
ok 9 test_munlockall1: Locked
ok 10 test_munlockall1: No locked memory
ok 11 VMA with present pages is not marked lock on fault
ok 12 test_vma_management call_mlock 1
ok 13 test_vma_management call_mlock 0
# Totals: pass:13 fail:0 xfail:0 xpass:0 skip:0 error:0
[PASS]
<8>[  551.074407] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_mlock-random-test>
mm_run_vmtests_sh_mlock-random-test fail
Failure - kselftest-mm - mm_run_vmtests_sh_uffd-unit-tests
<8>[  549.329932] <LAVA_SIGNAL_STARTTC mm_run_vmtests_sh_uffd-unit-tests>
exit=1--------------------------------
running ./uffd-stress anon 20 16
--------------------------------
nr_pages: 5120, nr_pages_per_cpu: 2560
bounces: 15, mode: rnd racing ver poll, userfaults: 284 missing (145+139+) 850 wp (401+449+)
bounces: 14, mode: racing ver poll, userfaults: 278 missing (108+170+) 760 wp (378+382+)
bounces: 13, mode: rnd ver poll, userfaults: 337 missing (176+161+) 906 wp (465+441+)
bounces: 12, mode: ver poll, userfaults: 201 missing (165+36+) 979 wp (430+549+)
bounces: 11, mode: rnd racing poll, userfaults: 316 missing (168+148+) 869 wp (428+441+)
bounces: 10, mode: racing poll, userfaults: 256 missing (100+156+) 739 wp (354+385+)
bounces: 9, mode: rnd poll, userfaults: 402 missing (200+202+) 1050 wp (540+510+)
bounces: 8, mode: poll, userfaults: 155 missing (87+68+) 640 wp (325+315+)
bounces: 7, mode: rnd racing ver read, userfaults: 525 missing (273+252+) 1364 wp (685+679+)
bounces: 6, mode: racing ver read, userfaults: 680 missing (339+341+) 966 wp (411+555+)
bounces: 5, mode: rnd ver read, userfaults: 387 missing (190+197+) 1039 wp (503+536+)
bounces: 4, mode: ver read, userfaults: 243 missing (183+60+) 1183 wp (498+685+)
bounces: 3, mode: rnd racing read, userfaults: 515 missing (245+270+) 1302 wp (673+629+)
bounces: 2, mode: racing read, userfaults: 725 missing (398+327+) 928 wp (418+510+)
bounces: 1, mode: rnd read, userfaults: 381 missing (190+191+) 1060 wp (572+488+)
bounces: 0, mode: read, userfaults: 4 missing (4+0+) 1457 wp (753+704+)
[PASS]
<8>[  549.353985] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_uffd-unit-tests>
mm_run_vmtests_sh_uffd-unit-tests fail
Failure - lava - read-feedback
(no logs available)