Main Menu

Search

Tuesday, April 30, 2024

LINUX: How To Check CGroups Version?

LINUX: How To Check CGroups Version?
 
Below command can be used.
 
mount | grep cgroup
 
If you see output like this with type as cgroup, that means it is using cgroups version 1. If you see type as cgroup2 it means cgroups version 2 is being used.

 
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,pids)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,hugetlb)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,freezer)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,rdma)

 

No comments:

Post a Comment