Skip to content

Commit

Permalink
Merge pull request #101 from Furisto/cpu-burst
Browse files Browse the repository at this point in the history
Add CFS bandwidth burst
  • Loading branch information
utam0k authored Apr 3, 2022
2 parents 8dd5d09 + ab8f372 commit 89376af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runtime/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,12 @@ pub struct LinuxCpu {
/// CPU hardcap limit (in usecs). Allowed cpu time in a given period.
quota: Option<i64>,

#[serde(skip_serializing_if = "Option::is_none")]
#[getset(get_copy = "pub", set = "pub")]
/// Maximum amount of accumulated time in microseconds for which tasks
/// in a cgroup can run additionally for burst during one period
burst: Option<u64>,

#[serde(skip_serializing_if = "Option::is_none")]
#[getset(get_copy = "pub", set = "pub")]
/// CPU period to be used for hardcapping (in usecs).
Expand Down

0 comments on commit 89376af

Please sign in to comment.