LINUX: Command To Check CGroups Memory
Below commands can be used.
systemd-cgtop -m
Above command will show the cgroups top output sorted by memory, showing top object using most memory in cgroups.
Below is sample output
Path Tasks %CPU Memory Input/s Output/s
/ 76 8.1 4.1G - -
/system.slice - 0.9 2.1G - -
/kubepods.slice - 5.3 1.0G - -
/kubepods.slice/kubepods-burstable.slice - 5.3 1021.3M - -
/user.slice 9 1.6 995.0M - -
/system.slice/systemd-journald.service 1 0.2 740.9M - -
/kubepods.slice/kubepod...le-pod9dd518e2b89323b8ab0a05d130fa435d.slice - 1.4 389.9M - -
Below is other command.
systemd-cgls memory
Above command will show objects in cgroups memory.
Below is sample output
memory:
├─1 /usr/lib/systemd/systemd --switched-root --system --deserialize 21
├─oca.slice
│ ├─oracle-cloud-agent.service
│ │ ├─10632 /usr/libexec/oracle-cloud-agent/agent
│ │ ├─10671 /usr/libexec/oracle-cloud-agent/plugins/gomon/gomon
│ │ ├─10679 /usr/libexec/oracle-cloud-agent/plugins/oci-wlp/oci-wlp
│ │ └─10738 /usr/libexec/oracle-cloud-agent/plugins/unifiedmonitoring/unifiedmonitoring
│ └─oracle-cloud-agent-updater.service
│ └─10686 /usr/libexec/oracle-cloud-agent/updater/updater
├─user.slice
│ ├─ 7356 sudo systemd-cgls memory
│ ├─ 7358 systemd-cgls memory
│ ├─ 7359 systemd-cgls memory
│ ├─10696 /usr/bin/sudo -n /usr/libexec/oracle-cloud-agent/plugins/osms/osms-agent
│ ├─10698 /usr/libexec/oracle-cloud-agent/plugins/osms/osms-agent
No comments:
Post a Comment