Questions tagged [cgroup]

A *cgroup* associates a set of tasks with a set of parameters for one or more subsystems.

Control Groups provide a mechanism for aggregating/partitioning sets of tasks, and all their future children, into hierarchical groups with specialized behavior.

Source:Kernel.org

69 questions
19
votes
1 answer

How to use cgroup in ubuntu 13.04

I'm trying to learn how cgroup works on Ubuntu and seems that cgroup doesn't work in Ubuntu 13.04. I am using the answer to this question How to set cpu limit for given process permanently. Cpulimit and nice don't work These are what I've…
ipeacocks
  • 660
  • 1
  • 9
  • 19
15
votes
2 answers

Install cgconfig in Ubuntu 16.04

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.conf file with the…
Zelphir Kaltstahl
  • 362
  • 2
  • 3
  • 14
10
votes
1 answer

Cgroups error: cgroup change of group failed

I'm trying to test cgroup and, after I set it, I stumbled upon that error. That's what I did: creation of the group grp creation of the user test within the grp group I ran the command: sudo cgcreate -t test:grp -a sleax -g memory,cpu:grp echo…
sl34x
  • 101
  • 1
  • 4
8
votes
4 answers

after Ubuntu 21.10 upgrade: "cannot attach cgroup program" operation not permitted

Right after upgrading a Ubuntu 21.04 to 21.10, I got this issue: Chromium/Firefox won't start. The error(seen in terminal) is: $ firefox cannot attach cgroup program: Operation not permitted
user105939
  • 1,399
  • 5
  • 17
  • 25
7
votes
1 answer

Looking for a consistent way to configure cgroups on Ubuntu 14.04 Desktop

I am looking for a consistent way to configure cgroups on a Ubuntu 14.04 Desktop system with limited resources. What I would like to do: create a few groups with limited memory and cpu assigned for specific tasks auto-enable these groups on reboot…
Sam Van den Eynde
  • 286
  • 1
  • 3
  • 13
6
votes
1 answer

is `cgroup-tools` using cgroup v1 or v2

I have ubuntu 21.10 installed. I confirmed that I am using cgroup v2 by running mount, which shows cgrup2 on /sys/fs/cgroup type cgroup2. When I want to use cgcreate from cgroup-tools to create a new group for cpu: sudo cgcreate -g cpu:newgroup #…
doraemon
  • 163
  • 1
  • 6
6
votes
2 answers

How to fix "docker: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown." on `docker run`?

I have Ubuntu 16.04.6 LTS installed. Previously I have installed Docker from its repository as docker.io package. Yesterday I have installed LXC with LXD and I suppose that they have some problem with coexistence with Docker. LXC works normally: $…
N0rbert
  • 97,162
  • 34
  • 239
  • 423
5
votes
0 answers

Nested unprivilaged lxc containers from upstart that its owner can stop

In a host running Ubuntu 14.04.5 LTS I have an user named ci that can create an start unprivilaged lxc containers also running Ubuntu 14.04.5 LTS. The user has the subid range 200000-231071. The configuration file of such a container is: #…
Ivan Ogai
  • 201
  • 1
  • 6
5
votes
1 answer

why is cgconfig.conf not being read on reboot on 14.04?

I recenty upgraded a release from 12.04 to 14.04, and found out that my cgconfig.conf file is not being read anymore on startup. The file appears to be correct, in the sense that I can explicitly load it with sudo cgconfigparser -l…
riffraff
  • 103
  • 1
  • 8
5
votes
1 answer

What is the purpose of cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 swapaccount=1

I am trying to setup a kubernetes cluster on a raspberry pi cluster using Ubuntu 20.04.3. In many online guides available, one of the steps is mentioned as follows: Edit the /boot/firmware/cmdline.txt and add cgroup_enable=cpuset…
4
votes
1 answer

cgconfig.conf file is missing

I installed cgroup on my ubuntu (13.9.0) using this command: apt-get install cgroup-bin However, cgconfig.conf file has not been created in /etc and not anywhere else. Did I miss anything?
NaSh
  • 141
  • 4
4
votes
0 answers

Where's cgconfig in Trusty?

I'm trying to create a cgroup where I can limit the resources used by Google Chrome after I hit a memory leak that froze my notebook. I followed the instructions here, here and here, but I've found what seems to be a rather grotesque bug in Ubuntu…
ivanmp
  • 141
  • 3
3
votes
1 answer

how to limit apache memory via cgroups

I'd like to limit the total memory used by user www-data in Ubuntu Server 14.04 LTS. I've read that I can do this via cgroups. This is what I've done so far: # install apt-get install cgroup-bin # create group for user www-data cgcreate -a…
cherouvim
  • 215
  • 1
  • 13
3
votes
0 answers

GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" crashes plasma 5

Following the instructions found here I modified my /etc/default/grub with this line: GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" on a kubuntu 14.04 and a kubuntu 15.04 machines. The reason was trying to limit RAM usage of a dockerized…
brunetto
  • 31
  • 3
3
votes
1 answer

Ubuntu cgroup architecture: cgroup-lite vs cgroup-bin and default config for lxc, libvirt-bin?

It seems that (at least in Ubuntu 12.04 Precise), the cgroup-lite package is used to provide some cgroup capabilities for packages like libvirt-bin and lxc. It sets up a number of cgroups in /sys/fs/cgroup for example. I was reading the very nice…
nealmcb
  • 3,598
  • 3
  • 40
  • 61
1
2 3 4 5