< prev index next >

src/hotspot/os/linux/cgroupSubsystem_linux.hpp

Print this page
@  rev 56576 : 8230305: Cgroups v2: Container awareness
|  Summary: Implement Cgroups v2 container awareness in hotspot
|  Reviewed-by: bobv
o  rev 56575 : 8230848: OSContainer: Refactor container detection code
|  Summary: Move cgroups v1 implementation details out of osContainer_linux.cpp
~  Reviewed-by: bobv

*** 179,188 **** --- 179,191 ---- return (return_type) OSCONTAINER_ERROR; \ \ log_trace(os, container)(logstring, variable); \ } + // Four controllers: cpu, cpuset, cpuacct, memory + #define CG_INFO_LENGTH 4 + class CgroupSubsystem: CHeapObj<mtInternal> { friend class CgroupSubsystemFactory; public: int active_processor_count(int physical_proc_count);
*** 202,207 **** --- 205,224 ---- class CgroupSubsystemFactory: AllStatic { public: static CgroupSubsystem* create(); }; + // Class representing info in /proc/self/cgroup. + // See man 7 cgroups + class CgroupInfo : public StackObj { + friend class CgroupSubsystemFactory; + + private: + char* _name; + int _hierarchy_id; + bool _enabled; + char* _cgroup_path; + + }; + + #endif // CGROUP_SUBSYSTEM_LINUX_HPP
< prev index next >