From 7ccc508a67e67a07e98744bb66f415da8f0eae70 Mon Sep 17 00:00:00 2001 From: Om Prakaash Date: Sat, 9 Mar 2024 11:51:16 -0800 Subject: [PATCH] Add support for rsvd hugetlb cgroup Adds support for the rsvd hugetlb cgroup. Enables reservation time checks on huge paqe memory limits. More info: https://github.com/opencontainers/runtime-spec/pull/1116 Signed-off-by: Om Prakaash --- src/runtime/linux.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/linux.rs b/src/runtime/linux.rs index a0413f1ed0..21b4f7e1fa 100644 --- a/src/runtime/linux.rs +++ b/src/runtime/linux.rs @@ -586,6 +586,7 @@ pub struct LinuxBlockIo { build_fn(error = "OciSpecError") )] /// LinuxHugepageLimit structure corresponds to limiting kernel hugepages. +/// Default to reservation limits if supported. Otherwise fallback to page fault limits. pub struct LinuxHugepageLimit { #[serde(default)] #[getset(get = "pub", set = "pub")] @@ -595,7 +596,7 @@ pub struct LinuxHugepageLimit { #[serde(default)] #[getset(get_copy = "pub", set = "pub")] - /// Limit is the limit of "hugepagesize" hugetlb usage. + /// Limit is the limit of "hugepagesize" hugetlb reservations (if supported) or usage. limit: i64, }