| 2398 | |
| 2399 | |
| 2400 | Try<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 | |
| 2413 | Try<Nothing> soft_limit_in_bytes( |