cgcreate command examples

cgcreate command examples

cgcreate – create new cgroup(s)

cgroups are Linux containers. They are used to create resource jails. The resources like CPU, memory, disk, GPU etc., can be isolated for specific processes, user etc.,

This will create additional security, the fair share of resources and guaranteed resources.

#cgcreate -g *:student -g devices:teacher

create control group student in all mounted hierarchies and create control group teacher in the hierarchy containing controller devices.


Leave a Reply

Your email address will not be published. Required fields are marked *