I want to create some control groups using cgroup.
So far I have done the following:
- I installed some packages: - sudo apt-get install cgroup-bin cgroup-lite cgroup-tools cgroupfs-mount libcgroup1
- Then I created the - /etc/cgconfig.conffile with the following content:- mount { cpuset = /cgroup/cpuset; cpu = /cgroup/cpu; cpuacct = /cgroup/cpuacct; memory = /cgroup/memory; devices = /cgroup/devices; freezer = /cgroup/freezer; net_cls = /cgroup/net_cls; ns = /cgroup/ns; blkio = /cgroup/blkio; } group limitcpu{ cpu { cpu.shares = 400; } } group limitmem{ memory { memory.limit_in_bytes = 512m; } } group limitio{ blkio { blkio.throttle.read_bps_device = "252:0 2097152"; } } group browsers{ cpu { cpu.shares = 200; } memory { memory.limit_in_bytes = 128m; } }- according to the guide here, assuming, that the config file resides at the same location and uses the same syntax on Ubuntu, as it uses on CentOS. 
- Then according to that guide I need to start the - cgconfig service. I tried with:- sudo service cgconfig restart- But, oh no! A file is missing!: - Failed to restart cgconfig.service: Unit cgconfig.service not found.
- After some wondering and searching around, I tried: - ● cgconfig.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
So it seems I am simply not having any cgconfig service on my system!
I searched for it using:
sudo aptitude search cgconfig
However, no cgconfig is to be found.
How can I install cgconfig on my Ubuntu 16.04?
 
     
     
    