Questions tagged [cgroup]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
32 views

rootstrap: command not found

I'm trying create a system-root to do some tests using jail and I'm trying install rootstrap whitout success. $ rootstrap rootstrap: command not found When try install: $ sudo apt-get install -y ...
0
votes
0answers
39 views

How to install cgroup v2 on Ubuntu 16.04?

I've checked on my machine, and it seems that I have the original version of cgroup. However, I need the second version. How do I install it?
0
votes
0answers
25 views

How to troubleshoot cgroups device access control in Ubuntu 18.04?

In short: I would like to figure out what prevents me to access /dev/dri/card0 from GUI session. The long story: I would like to pass GPU to lxd container, but it fails with error Error: Common ...
1
vote
1answer
230 views

Error messages during boot

I recently applied some software updates to my 18.04 LTS install, and I now see the following during restart: $ cat /var/log/boot.log Scanning for Btrfs filesystems UBUNTU: clean, 700970/30883840 ...
1
vote
0answers
93 views

Limiting Memory of Snap Packages

Some snaps (cough Slack) will given the opportunity eat up an almost unlimited amount of memory. In the pre-slack post systemd world I could create a namespace, limit it's memory/cpu etc... and force ...
2
votes
0answers
7k views

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 ...
3
votes
0answers
33 views

Cgroup - CPU share doesn't go down

I tried to run a process dd if=/dev/zero of=/dev/null bs=20M Then I got the PID using top. Afterwards, I created a foo directory under /sys/fs/cgroup/cpu/ and edited the following 1) Added 128 to ...
1
vote
0answers
49 views

Limiting Handbrake Using a Cgroup?

I'm following a tutorial for cgroups, but they don't seem to be effective in limiting handbrake (A video conversion tool)'s performance. I can't really multi task while it is running. I've installed ...
2
votes
1answer
708 views

What is the best cgmanager alternative for Ubuntu 18.04 LTS?

I was using package cgmanager to automatically manage processes into memory cgroups in Ubuntu 16.04 LTS environment. However, I did a fresh install of Ubuntu 18.04 and package cgmanager is no longer ...
1
vote
1answer
2k views

How can I configure CGroups and limit Chrome memory usage on Ubuntu 18.04

I am going through https://gist.github.com/juanje/9861623. I am trying to limit my Chromes memory usage on my Ubuntu 18.04. It appears my system don't have any of the mentioned commands/files here. ...
1
vote
0answers
81 views

Why systemd wont support IOWriteIOPSMax?

I just installed Ubuntu 16.04.5 LTS and upgraded the kernel to 4.15.0-38-generic using the package linux-image-generic-hwe-16.04. The problem is that when I try to start a service unit that uses the ...
0
votes
0answers
358 views

cgroup manager daemon

Ubuntu 18.04.1. Cgroups is not installed. System jobs admin shows checked: Cgroup manager daemon (cgmanager) Cgroup manager daemon (cgproxy) I can not uncheck these items. How can I remove them? to ...
3
votes
2answers
2k views

cgmanager fails on ubuntu 18 update

I've just updated my Ubuntu 16 to 18.04.1 LTS, upon restart it fails to boot (completely unresponsive). I've tried booting in safe mode and works but I see there is an error on the cgmanager, ...
-1
votes
1answer
137 views

cgroups error 50016

creating a question from the forums so i can answer it here and leave for others as it took me ages to debug this one hi, i would like to test the following: the process bzip2 for user testuser goes ...
1
vote
0answers
430 views

systemd vs cgroups for resource isolation by user program?

Environment: kubuntu desktop 17.10.1 Immediate goal: run chrome in such a way as to limit its maximum memory consumption. Current workaround: I put the following in /usr/local/bin/cchrome: #!/bin/...
1
vote
1answer
630 views

Docker child processes do not inherit niceness of daemon

I often run a lot of docker containers, which sometimes cause my system to freeze momentarily. To prevent this, I made a service that automatically sets the niceness of docker-containerd a bit higher. ...
0
votes
0answers
909 views

Trouble with cgconfig.conf and cgconfigparser

I get the following error message when I try to run cgconfigparser. :syntax error number 1 at Error: failed to parse file /etc/cgconfig.conf cgconfigparser; error loading /etc/cgconfig.conf: Have ...
13
votes
2answers
22k views

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 ...
4
votes
0answers
471 views

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 ...
2
votes
1answer
339 views

Upgrade to 16.10: PAM-CGFS errors

Since upgrading my Ubuntu host server installation from 15.10 to 16.04.1 yesterday these errors fill my log: PAM-CGFS[28483]: Failed to create a cgroup for user root Googling this turns up nothing ...
1
vote
0answers
47 views

Is there a good way to ensure that I can still log into a machine even under heavy load?

I am considering increasing the priority of sshd by setting minimum niceness -20 via a nice stanza in the upstart script. Has anyone done this? Does it work? Has anyone done this and had problems? ...
2
votes
1answer
1k views

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 # ...
2
votes
1answer
1k views

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?
1
vote
1answer
444 views

Removing Prior Crontabs

I think I have competing cronjobs. When I run "sudo service cron status" I get the following output: Main PID: 31130 (cron) CGroup: /system.slice/cron.service |-11690 /usr/...
1
vote
0answers
466 views

How i can activate cpu.cfs_quota_us in Cgroup?

How I can activate cpu.cfs_quota_us function in Cgroup on Debian Jessie (raspberry pi 4.1.13-v7+ kernel)? This file not exist in cpu controller after creating the group and I didn't find how I can ...
0
votes
1answer
1k views

Couldn't find libcgroup.h in Ubuntu 14.04

libcgroup.h is generally located at /usr/include/libcgroup.h. After searching whole file-system ( find / -type f -name 'libcgroup.h' ), couldn't find it. From where can I get it?
0
votes
1answer
839 views

upstart conf file not being copied

Ubuntu 14.04 chroot apt-get install cgroup-lite invoke-rc.d: unknown initscript, /etc/init.d/cgroup-lite not found. If I download source files (tarball), decompress it, there is a cgroup-lite.upstart ...
1
vote
1answer
727 views

Prevent cgroup filesystem from getting mounted

On trusty, I installed cgroup-lite which mounts the virtual FS for cgroups subsystems in /sys/fs/cgroup/*. I've executed cgclear (from the cgroup-bin package) and uninstalled/purged cgroup-lite. When ...
4
votes
1answer
4k views

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 ...
2
votes
0answers
1k views

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 ...
2
votes
0answers
539 views

Cgroups I/O read restriction

I am trying to restrict group to read operation to 100 per second. Here is my cgroups configuration: # Configuration file generated by cgsnapshot mount { blkio = /cgroup/blkio; } group ...
2
votes
1answer
1k views

cgroups disk IO throttling with zfs

I'd like to use cgroups with my linux containers to throttle disk IO on them. Containers placed on ZFS volume /tank/lxc. I have three containers each in their own /tank/lxc/nodeXX directory. How can ...
4
votes
0answers
1k views

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 ...
7
votes
1answer
3k views

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 ...
1
vote
2answers
2k views

Systemd, cgroup, and LXC

After much trial and error, I was finally able to get Spice working in a Fedora LXC container under Ubuntu 14.04. However, the same can't be said of an Ubuntu 14.04 container. It appears that the ...
5
votes
1answer
3k views

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 ...
2
votes
2answers
1k views

CGroups memory subsystem

I want to know if I can set dynamic limits to the memory subsystem in a cgroup. Currently I have OOM disabled and a dummy process to test the control group, when the limit in memory is reached, the ...
1
vote
0answers
2k views

dpkg: error processing cgroup-lite (--configure)

i upgrade ubuntu 12.04 server today and i found with this error: # apt-get install -f Reading package lists... Done Building dependency tree....... Reading state information... Done The following ...
1
vote
1answer
3k views

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/...
2
votes
0answers
177 views

net_cls and ns subsystems not available in 12.04?

I'm playing around with cgroups and I noticed when I try to list all available subsystems that the network ones are not available ? Running the following command should list ALL available subsystems - ...
16
votes
1answer
12k views

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 ...