# /etc/cgconfig.conf - control group hierarchies and groups, as read by
# cgconfigparser(8).  Not to be confused with /etc/sysconfig/cgconfig, which
# is where the cgconfig service takes its own settings from.
#
#  Copyright IBM Corporation. 2007
#
#  Authors:	Balbir Singh <balbir@linux.vnet.ibm.com>
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of version 2.1 of the GNU Lesser General Public License
#  as published by the Free Software Foundation.
#
#  This program is distributed in the hope that it would be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
#group daemons/www {
#	perm {
#		task {
#			uid = root;
#			gid = webmaster;
#		}
#		admin {
#			uid = root;
#			gid = root;
#		}
#	}
#	cpu {
#		cpu.shares = 1000;
#	}
#}
#
#group daemons/ftp {
#	perm {
#		task {
#			uid = root;
#			gid = ftpmaster;
#		}
#		admin {
#			uid = root;
#			gid = root;
#		}
#	}
#	cpu {
#		cpu.shares = 500;
#	}
#}
#
#mount {
#	cpu = /mnt/cgroups/cpu;
#	cpuacct = /mnt/cgroups/cpuacct;
#}

# This file is only used for the legacy (cgroup v1) hierarchies, and libcgroup
# 0.42.x speaks nothing else. By default the cgconfig service ignores it and
# sets up the unified (cgroup v2) hierarchy instead - see
# /etc/sysconfig/cgconfig.
#
# A controller belongs to exactly one hierarchy, so uncommenting a "mount"
# block here takes those controllers away from v2 and switches the cgconfig
# service over to cgconfigparser. On a current kernel that costs you the
# controllers that no longer have a v1 implementation, memory among them
# (CONFIG_MEMCG_V1), so only do it if something actually needs v1.
#
#mount {
#	cpu	= /cgroup/cpu;
#	cpuacct	= /cgroup/cpuacct;
#	devices	= /cgroup/devices;
#	freezer	= /cgroup/freezer;
#	net_cls	= /cgroup/net_cls;
#	blkio	= /cgroup/blkio;
#}
