Skip to content

Commit

Permalink
Add support for rsvd hugetlb cgroup
Browse files Browse the repository at this point in the history
Adds support for the rsvd hugetlb cgroup. Enables reservation time checks on huge paqe memory limits. More info: opencontainers/runtime-spec#1116
  • Loading branch information
omprakaash committed Mar 9, 2024
1 parent 7880e8b commit 9cad866
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand All @@ -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,
}

Expand Down

0 comments on commit 9cad866

Please sign in to comment.