Skip to content

Commit

Permalink
Merge pull request #162 from omprakaash/main
Browse files Browse the repository at this point in the history
Add comment on LinuxHugepageLimit
  • Loading branch information
utam0k authored Mar 10, 2024
2 parents 7880e8b + 7ccc508 commit 593def8
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 593def8

Please sign in to comment.