cgclassify command examples

cgclassify command examples

cgclassify - move running task(s) to given cgroups
#cgclassify -g cpu:student 1234

moves process with pid number 1234 to control group student in cpu hierarchy.

#gclassify 1234

moves process with pid number 1234 to control groups based on /etc/cgrules.conf configuration file.

#cgclassify --sticky -g cpu:/student 1234

moves process with pid number 1234 to control group student in cpu hierarchy. The daemon of service cgred does not change cgroups of pid 1234 and its children (based on /etc/cgrules.conf).

 

Leave a Reply

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