Linux command
cgclassify 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
cgclassify -g [cpu:student] [1234]
Example
cgclassify [1234]
Example
cgclassify --sticky -g [cpu:/student] [1234]
说明
cgclassify moves running processes to control groups (cgroups). This allows changing resource limits and accounting for already-running processes without restarting them. When used without the -g option, processes are classified according to rules in /etc/cgrules.conf.
参数
- -g _controllers:path_
- Move process to specified cgroup hierarchy
- --sticky
- Prevent cgred daemon from reclassifying the process
- --cancel-sticky
- Allow cgred to manage the process again
FAQ
What is the cgclassify command used for?
cgclassify moves running processes to control groups (cgroups). This allows changing resource limits and accounting for already-running processes without restarting them. When used without the -g option, processes are classified according to rules in /etc/cgrules.conf.
How do I run a basic cgclassify example?
Run `cgclassify -g [cpu:student] [1234]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -g _controllers:path_ do in cgclassify?
Move process to specified cgroup hierarchy