System Grab Bag

View all TLDR pages from Linux (or from all pages)

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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.