MCPcopy Create free account
hub / github.com/apache/mesos / cfs_period_us

Function cfs_period_us

src/linux/cgroups.cpp:2226–2236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2224
2225
2226Try<Nothing> cfs_period_us(
2227 const string& hierarchy,
2228 const string& cgroup,
2229 const Duration& duration)
2230{
2231 return cgroups::write(
2232 hierarchy,
2233 cgroup,
2234 "cpu.cfs_period_us",
2235 stringify(static_cast<uint64_t>(duration.us())));
2236}
2237
2238
2239Try<Duration> cfs_quota_us(

Callers 2

__updateMethod · 0.85
updateMethod · 0.85

Calls 3

usMethod · 0.80
writeFunction · 0.70
stringifyFunction · 0.70

Tested by

no test coverage detected