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

73 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
  • 690
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…
12
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
  • 121
8
votes
1 answer

Is `cgroup-tools` using cgroup v1 or v2

I have Ubuntu 21.10 installed. I have confirmed that I am using cgroup v2 by running mount, which shows cgroup2 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…
doraemon
  • 183
8
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…
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,795
8
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
  • 103,263
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…
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
5
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
  • 151
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
5
votes
4 answers

How to run cgexec without sudo as current user on Ubuntu 22.04 with cgroups v2, failing with "cgroup change of group failed"?

I've tried the procedures from: Cgroups error: cgroup change of group failed How to use cgroup in ubuntu 13.04 https://unix.stackexchange.com/questions/197718/does-managing-cgroups-require-root-access but they don't work on Ubuntu 22.04,…
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
4
votes
0 answers

Cgroup one of the needed subsystems is not mounted

I'm a web application developer. I am learning about container internals and Linux. I was following the article Complete Intro to Containers. When I ran the command cgcreate -g cpu,memory,blkio,devices,freezer:./sandbox inside the container, it…
4
votes
0 answers

I always get an error when running cgconfigparser

Here's my /etc/cgconfig.conf: group VM { memory { memory.limit_in_bytes = "5G"; memory.soft_limit_in_bytes = "4G"; } } Here's my /etc/cgrules.conf #
R313 J283
  • 41
  • 1
1
2 3 4 5