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

Function soft_limit_in_bytes

src/linux/cgroups.cpp:2400–2410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2398
2399
2400Try<Bytes> soft_limit_in_bytes(const string& hierarchy, const string& cgroup)
2401{
2402 Try<string> read = cgroups::read(
2403 hierarchy, cgroup, "memory.soft_limit_in_bytes");
2404
2405 if (read.isError()) {
2406 return Error(read.error());
2407 }
2408
2409 return Bytes::parse(strings::trim(read.get()) + "B");
2410}
2411
2412
2413Try<Nothing> soft_limit_in_bytes(

Callers 5

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

Calls 10

trimFunction · 0.85
readFunction · 0.70
parseFunction · 0.70
writeFunction · 0.70
stringifyFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45
getMethod · 0.45
bytesMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68