Apache Mesos
Functions
cgroups::cpu Namespace Reference

Functions

Result< std::string > cgroup (pid_t pid)
 
Try< Nothingshares (const std::string &hierarchy, const std::string &cgroup, uint64_t shares)
 
Try< uint64_t > shares (const std::string &hierarchy, const std::string &cgroup)
 
Try< Nothingcfs_period_us (const std::string &hierarchy, const std::string &cgroup, const Duration &duration)
 
Try< Durationcfs_quota_us (const std::string &hierarchy, const std::string &cgroup)
 
Try< Nothingcfs_quota_us (const std::string &hierarchy, const std::string &cgroup, const Duration &duration)
 

Function Documentation

Try<Nothing> cgroups::cpu::cfs_period_us ( const std::string &  hierarchy,
const std::string &  cgroup,
const Duration duration 
)
Try<Duration> cgroups::cpu::cfs_quota_us ( const std::string &  hierarchy,
const std::string &  cgroup 
)
Try<Nothing> cgroups::cpu::cfs_quota_us ( const std::string &  hierarchy,
const std::string &  cgroup,
const Duration duration 
)
Result<std::string> cgroups::cpu::cgroup ( pid_t  pid)
Try<Nothing> cgroups::cpu::shares ( const std::string &  hierarchy,
const std::string &  cgroup,
uint64_t  shares 
)
Try<uint64_t> cgroups::cpu::shares ( const std::string &  hierarchy,
const std::string &  cgroup 
)