mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-19 07:47:40 +03:00
cgcreate: add page (#6768)
This commit is contained in:
parent
69267420f7
commit
30e7368b30
17
pages/linux/cgcreate.md
Normal file
17
pages/linux/cgcreate.md
Normal file
@ -0,0 +1,17 @@
|
||||
# cgcreate
|
||||
|
||||
> Create cgroups, used to limit, measure, and control resources used by processes.
|
||||
> `cgroups` types can be `memory`, `cpu`, `net_cls`, etc.
|
||||
> More information: <https://manned.org/cgcreate>.
|
||||
|
||||
- Create a new group:
|
||||
|
||||
`cgcreate -g {{group_type}}:{{group_name}}`
|
||||
|
||||
- Create a new group with multiple cgroup types:
|
||||
|
||||
`cgcreate -g {{group_type1}},{{group_type2}}:{{group_name}}`
|
||||
|
||||
- Create a subgroup:
|
||||
|
||||
`mkdir /sys/fs/cgroup/{{group_type}}/{{group_name}}/{{subgroup_name}}`
|
Loading…
Reference in New Issue
Block a user