Repository navigation
cgroup: write hugetlb reservation limits when supported - #2290
Rajkaran-122 wants to merge 1 commit into
Conversation
|
@Rajkaran-122 This might fix the failure in |
|
@kolyshkin sir I removed It fails with I restored the skip entry afterward. The PR-specific HugeTLB reservation-limit regression test passes. |
Yeah, runc uses encoding/json which is case-insensitive, and the test case is wrong. Fixing in opencontainers/runc#5501. Have you tried running the fixed test case? Also, have you tried running your own test case before the fix? |
|
@kolyshkin sir I tested both cases.
I restored the temporary runc test and skip-list changes afterward, and the crun working tree is clean. |
@Rajkaran-122 ^^^ |
@kolyshkin sir Yes, I tested my regression test before and after the fix. It failed before the fix and passes after, verifying both |
- Simplify ENOENT comment in cgroup-resources.c to one line - Refactor test_hugetlb_reservation_limit to dynamically discover available HugeTLB reservation files instead of hardcoding 1GB - Check for .rsvd.max file presence before running container - Use specific subprocess.CalledProcessError instead of broad Exception - Skip with code 77 when reservation accounting is not available Address reviewer feedback from PR containers#2290 Signed-off-by: Rajkaran Yadav <yadavrajkaran854@gmail.com>
- Simplify ENOENT comment in cgroup-resources.c to one line - Refactor test_hugetlb_reservation_limit to dynamically discover available HugeTLB reservation files instead of hardcoding 1GB - Check for .rsvd.max file presence before running container - Use specific subprocess.CalledProcessError instead of broad Exception - Skip with code 77 when reservation accounting is not available Address reviewer feedback from PR containers#2290 Signed-off-by: Rajkaran Yadav <yadavrajkaran854@gmail.com>
f2428ab to
00f8dbd
Compare
|
@kolyshkin Sir PTAL. |
kolyshkin
left a comment
There was a problem hiding this comment.
please squash your commits
For cgroup v2, write HugeTLB limits to both hugetlb.<size>.max and hugetlb.<size>.rsvd.max when the kernel supports reservation accounting. The reservation file may not exist on all kernels, so we silently ignore ENOENT errors and fall back to usage accounting. Fixes containers#2284 Signed-off-by: Rajkaran Yadav <yadavrajkaran854@gmail.com>
00f8dbd to
85ba6b1
Compare
For cgroup v2, write HugeTLB limits to both hugetlb..max and hugetlb..rsvd.max when the kernel supports reservation accounting. The reservation file may not exist on all kernels, so we silently ignore ENOENT errors and fall back to usage accounting.
Fixes #2284