17 #ifndef __CGROUPS_ISOLATOR_SUBSYSTEMS_MEMORY_HPP__ 18 #define __CGROUPS_ISOLATOR_SUBSYSTEMS_MEMORY_HPP__ 53 std::string
name()
const override 59 const ContainerID& containerId,
61 const mesos::slave::ContainerConfig& containerConfig)
override;
64 const ContainerID& containerId,
65 const std::string& cgroup,
69 const ContainerID& containerId,
70 const std::string& cgroup)
override;
73 const ContainerID& containerId,
74 const std::string& cgroup)
override;
77 const ContainerID& containerId,
78 const std::string& cgroup,
80 const google::protobuf::Map<
81 std::string, Value::Scalar>& resourceLimits = {})
override;
84 const ContainerID& containerId,
85 const std::string& cgroup)
override;
88 const ContainerID& containerId,
89 const std::string& cgroup)
override;
105 bool hardLimitUpdated;
117 const ContainerID& containerId,
118 ResourceStatistics result,
119 const std::vector<cgroups::memory::pressure::Level>& levels,
125 const ContainerID& containerId,
126 const std::string& cgroup);
131 const ContainerID& containerId,
132 const std::string& cgroup,
137 const ContainerID& containerId,
138 const std::string& cgroup);
148 #endif // __CGROUPS_ISOLATOR_SUBSYSTEMS_MEMORY_HPP__ static Try< process::Owned< SubsystemProcess > > create(const Flags &flags, const std::string &hierarchy)
const std::string CGROUP_SUBSYSTEM_MEMORY_NAME
Definition: constants.hpp:48
Definition: resources.hpp:83
std::string name() const override
Definition: memory.hpp:53
Definition: hashmap.hpp:38
DWORD pid_t
Definition: windows.hpp:181
process::Future< Nothing > cleanup(const ContainerID &containerId, const std::string &cgroup) override
Represent cgroups memory subsystem.
Definition: memory.hpp:44
process::Future< ResourceStatistics > usage(const ContainerID &containerId, const std::string &cgroup) override
Result< std::string > cgroup(pid_t pid)
Definition: subsystem.hpp:190
process::Future< Nothing > prepare(const ContainerID &containerId, const std::string &cgroup, const mesos::slave::ContainerConfig &containerConfig) override
process::Future< mesos::slave::ContainerLimitation > watch(const ContainerID &containerId, const std::string &cgroup) override
process::Future< Nothing > recover(const ContainerID &containerId, const std::string &cgroup) override
Definition: attributes.hpp:24
const std::string hierarchy
The hierarchy path of cgroups subsystem.
Definition: subsystem.hpp:245
~MemorySubsystemProcess() override=default
process::Future< Nothing > update(const ContainerID &containerId, const std::string &cgroup, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={}) override
Level
Definition: cgroups.hpp:864
process::Future< Nothing > isolate(const ContainerID &containerId, const std::string &cgroup, pid_t pid) override