Hay
Date
July 2, 2025, 11:10 a.m.

Environment
qemu-x86_64
x86

<8>[  395.698424] <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
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.
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'
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.
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 0x7feb72c00000
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 0x7feb72c00000
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 0x7f7314400000
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 0x7f7314400000
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 0x7fdc50800000
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 0x7fdc50800000
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'
Method is 1
waiting for DONE signal.
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 0x7f5e31c00000
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 0x7f5e31c00000
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: 0x7feb82a00000
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: 0x7feb82a00000
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: 0x7fe184000000
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: 0x7fe184000000
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'
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
Private mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x3, shmget key:0
shmaddr: 0x7f739ac00000
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: 0x7f739ac00000
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'
waiting for DONE signal.
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: 0x7f531f400000
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: 0x7f531f400000
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'
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.
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
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
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'
Method is 1
waiting for DONE signal.
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 0x7f4cff200000
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 0x7f4cff200000
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'
Method is 1
waiting for DONE signal.
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 0x7fc80f600000
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 0x7fc80f600000
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
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.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f7224200000
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 0x7f7224200000
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 0x7f4ddd600000
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 0x7f4ddd600000
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>[  395.874696] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_thuge-gen>
mm_run_vmtests_sh_thuge-gen fail

<8>[  482.080633] <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
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.
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
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.
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 0x7fdaf6000000
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 0x7fdaf6000000
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 0x7f651fc00000
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 0x7f651fc00000
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'
Method is 1
waiting for DONE signal.
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 0x7fc261200000
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 0x7fc261200000
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 0x7f3f30e00000
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 0x7f3f30e00000
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'
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
Shared mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x1, shmget key:0
shmaddr: 0x7f07b2e00000
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: 0x7f07b2e00000
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'
waiting for DONE signal.
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: 0x7f1829400000
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: 0x7f1829400000
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'
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
Private mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x3, shmget key:0
shmaddr: 0x7fd226800000
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: 0x7fd226800000
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: 0x7f7e89400000
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: 0x7f7e89400000
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'
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.
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'
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.
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'
Method is 0
waiting for DONE signal.
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 0x7fb953000000
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 0x7fb953000000
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 0x7f64f4a00000
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 0x7f64f4a00000
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
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.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7fb385400000
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 0x7fb385400000
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 0x7f0ad2800000
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 0x7f0ad2800000
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>[  482.278835] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_thuge-gen>
mm_run_vmtests_sh_thuge-gen fail

<8>[  524.803644] <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'
Method is 0
waiting for DONE signal.
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'
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.
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
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.
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'
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.
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'
Method is 1
waiting for DONE signal.
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 0x7fda73a00000
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 0x7fda73a00000
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'
Method is 1
waiting for DONE signal.
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 0x7fcfc7800000
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 0x7fcfc7800000
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 0x7f4c88400000
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 0x7f4c88400000
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'
Method is 1
waiting for DONE signal.
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 0x7fea4ec00000
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 0x7fea4ec00000
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'
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
Shared mapping.
RESERVE mapping.
Allocating using SHM.
shmid: 0x1, shmget key:0
shmaddr: 0x7f1549800000
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: 0x7f1549800000
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'
waiting for DONE signal.
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: 0x7f325d000000
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: 0x7f325d000000
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: 0x7fc87aa00000
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: 0x7fc87aa00000
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'
waiting for DONE signal.
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: 0x7f956e600000
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: 0x7f956e600000
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'
Method is 0
waiting for DONE signal.
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'
Method is 1
waiting for DONE signal.
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 0x7f915a400000
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 0x7f915a400000
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 0x7f1a58400000
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 0x7f1a58400000
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
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.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f1fba000000
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 0x7f1fba000000
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'
Method is 1
waiting for DONE signal.
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 0x7fb401800000
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 0x7fb401800000
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>[  524.985245] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_thuge-gen>
mm_run_vmtests_sh_thuge-gen fail

<8>[  407.738167] <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
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.
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 0x7f1202800000
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 0x7f1202800000
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 0x7f1575600000
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 0x7f1575600000
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 0x7f9890600000
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 0x7f9890600000
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'
Method is 1
waiting for DONE signal.
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 0x7f96c0400000
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 0x7f96c0400000
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: 0x7f9958c00000
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: 0x7f9958c00000
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'
waiting for DONE signal.
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: 0x7f6b62200000
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: 0x7f6b62200000
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
waiting for DONE signal.
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: 0x7f517d400000
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: 0x7f517d400000
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: 0x7f1834a00000
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: 0x7f1834a00000
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'
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.
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'
Method is 0
waiting for DONE signal.
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 0x7f0bcf800000
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 0x7f0bcf800000
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 0x7f7b5a200000
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 0x7f7b5a200000
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 0x7f6605c00000
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 0x7f6605c00000
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
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.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f03c6c00000
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 0x7f03c6c00000
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>[  407.925009] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_thuge-gen>
mm_run_vmtests_sh_thuge-gen fail

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
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.
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
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.
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
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.
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
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
Not populating.
Not writing to memory.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f8ae0a00000
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 0x7f8ae0a00000
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
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
Not populating.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7fa168e00000
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 0x7fa168e00000
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
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
Not populating.
Not writing to memory.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f4a62200000
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 0x7f4a62200000
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
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
Not populating.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f086a600000
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 0x7f086a600000
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
waiting for DONE signal.
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: 0x7f03f9000000
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: 0x7f03f9000000
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
waiting for DONE signal.
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: 0x7f1a39800000
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: 0x7f1a39800000
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
waiting for DONE signal.
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: 0x7fb6fbc00000
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: 0x7fb6fbc00000
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
waiting for DONE signal.
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: 0x7eff55a00000
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: 0x7eff55a00000
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
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
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
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
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
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
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
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
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
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.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7fda73a00000
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 0x7fda73a00000
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
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.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f9ab8000000
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 0x7f9ab8000000
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 0x7ff998600000
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 0x7ff998600000
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[  256.805746] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_thuge-gen>
mm_run_vmtests_sh_thuge-gen fail

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
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.
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
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.
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
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.
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
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
Not populating.
Not writing to memory.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f1f2e000000
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 0x7f1f2e000000
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
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
Not populating.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f4879000000
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 0x7f4879000000
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
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
Not populating.
Not writing to memory.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f32ee800000
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 0x7f32ee800000
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
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
Not populating.
Using method=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f811c600000
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 0x7f811c600000
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
waiting for DONE signal.
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: 0x7f5288c00000
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: 0x7f5288c00000
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
waiting for DONE signal.
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: 0x7f0b75000000
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: 0x7f0b75000000
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
waiting for DONE signal.
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: 0x7f22b2800000
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: 0x7f22b2800000
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
waiting for DONE signal.
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: 0x7f39a8200000
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: 0x7f39a8200000
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
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
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
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
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
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
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
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
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
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.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7fb3b1200000
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 0x7fb3b1200000
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
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.
Using method=1
Private mapping.
RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f8b89e00000
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 0x7f8b89e00000
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 0x7fd9d8c00000
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 0x7fd9d8c00000
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[  254.662094] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_thuge-gen>
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: [  254.687699] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=mm_run_vmtests_sh_thuge-gen RESULT=fail>
10485760
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.
Using method[  254.717919] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=mm_run_vmtests_sh_charge_reserved_hugetlb_sh__cgroup-v2 RESULT=pass>
=1
Private mapping.
NO_RESERVE mapping.
Alloc[  254.733048] <LAVA_SIGNAL_STARTTC mm_run_vmtests_sh_hugetlb_reparenting_test_sh__cgroup-v2>
ating using MAP_HUGETLB.
Return[  254.743868] <LAVA_SIGNAL_ENDTC mm_run_vmtests_sh_hugetlb_reparenting_test_sh__cgroup-v2>
ed address is 0x7f8927c00000
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 m[  254.774780] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=mm_run_vmtests_sh_hugetlb_reparenting_test_sh__cgroup-v2 RESULT=fail>
ethod=1
Private mapping.
NO_RESERVE mapping.
Allocating using MAP_HUGETLB.
Returned address is 0x7f8927c00000
Writing to memory.
DONE
================= end output.
write_result is 0
After write:
hugetlb_usage=10485760
reserved_us[  254.806378] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=mm_run_vmtests_sh_virtual_address_range_Test RESULT=pass>
age=10485760
killing write_to_hugetlbfs
Received 2.
10485760
10485760
Memory charged to hugtlb=10485760
Memory charged to reservation=10485760
PASS
CLEANUP DONE
[PASS]
exit=1-------------------------------
running ./virtual_address_range
-------------------------------
TAP version 13
1..1\r[  254.841461] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=mm_run_vmtests_sh_virtual_address_range RESULT=pass>
ok 1 Test
mm_run_vmtests_sh_thuge-gen fail