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

Function shares

src/linux/cgroups.cpp:2194–2204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2192
2193
2194Try<Nothing> shares(
2195 const string& hierarchy,
2196 const string& cgroup,
2197 uint64_t shares)
2198{
2199 return cgroups::write(
2200 hierarchy,
2201 cgroup,
2202 "cpu.shares",
2203 stringify(shares));
2204}
2205
2206
2207Try<uint64_t> shares(

Callers 4

TEST_FFunction · 0.85
TEST_FFunction · 0.85
__updateMethod · 0.85
updateMethod · 0.85

Calls 7

writeFunction · 0.70
stringifyFunction · 0.70
readFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45
getMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68