Interview Prep/Linux/Rapid-Fire Commands

Show which cgroup and slice a process belongs to and its limits.

IntermediateProductionRapid-Fire Commands
Answer
cat /proc/1234/cgroup                 # 0::/system.slice/api.service
systemctl status 1234                 # unit owning the PID
cat /sys/fs/cgroup/system.slice/api.service/{memory.max,cpu.max,pids.max}
All Linux questions Roadmap: Linux

More on Rapid-Fire Commands