# Steps to allocate resource using cgroups and slice in Linux with examples
[…]
## Few pointers on cgroups * cgroup is now integrated with systemd in recent Linux versions since kernel 2.6.24. * Control group place resources in controllers that represent the type of resource i.e you can define groups of available resources to make sure your application like webserver has guaranteed claim on resources
* In order to do so, cgroup works with default controller which are cpu, memory and blkio * These controllers are divided into tree structure where different weight or limits are applied to each branch (1) Each of these branches is a cgroup (2) One or more processes are assigned to a cgroup
* cgroups can be applied from the command line or from systemd (1) Manual creation happens through the cgconfig service and the cgred process (2) In all cases, cgroup settings are written to /sys/fs/cgroups
[…]