cgroups (control groups) is a Linux kernel feature to limit, account and isolate resource usage (CPU, memory, disk I/O, etc.) of process groups.

learn more… | top users | synonyms

0
votes
0answers
44 views

CGroup behaviour not as expected

I was testing Hadoop with CGroup. I started a process with 50 threads doing math and spawned one task on each node. Also I started single-threaded job whose tasks took the rest of the resource on each ...
3
votes
2answers
105 views

Centos 6 to Centos 7 cgroups

I'm trying to set up resource limits per user in Centos 7, but I can't find the right commands for the new implementation of cgroups (I did read the documentation but it talks about restricting ...
5
votes
1answer
45 views

htop cgroup column widen

How can I see full length of text CGROUP column in htop? I cannot enlarge it.
0
votes
0answers
22 views

Why a moved process using cgclassify doesn't get correct cpu share

Here is my test case on an Ubunut 12.04. I have a simple code that uses all cores of a multicore system as follows: useAllCores.cpp int main(){ #pragma omp parallel for for (int i = 0; i < 50; ...
1
vote
0answers
69 views

cgred / cgrulesengd - does not move new user pid to task file

cgrulesengd can't move pid to task file while running as deamon, if I restart cgrulesengd all pids are moved correctly to task file, but new pid's not. So, if i log in as hello user, and then run ...
1
vote
1answer
164 views

Cgroups, limit memory per user

Is it possible to limit memory usage per user not per group? This is my config ... /etc/cgconfig.conf mount { cpu = /cgroup/cpu_and_mem; cpuacct = /cgroup/cpu_and_mem; memory = ...
1
vote
1answer
324 views

Cannot start cgconfig on Centos 6.5 : cannot mount cpuset to /cgroup/cpuset: Invalid argument

I'd like to try docker-io on Centos 6.5 but the cgconfig daemon will not start: /etc/init.d/cgconfig restart Stopping cgconfig service: [ OK ] Starting cgconfig ...
0
votes
0answers
59 views

What is means in tc “Unparsable filter ID ”2:“”

I wrote a shell script for limit upload speed by tc and cgroup. #!/bin/bash -x mkdir -p /cgroup/imagecenter mount -t cgroup -o net_cls image_net /cgroup/imagecenter/ mkdir -p ...
0
votes
1answer
608 views

Docker hello world gives 'no space left on device'

The command docker run hello-world gives me this error: System error: write /dev/cgroup/docker/<hash>/cgroup.procs: no space left on device It's a Debian Wheezy, with a 3.16 kernel from ...
2
votes
2answers
1k views

loopback device in a Linux container?

I'm attempting to use a loopback device inside a container, to mount some image file: > sudo losetup /dev/loop0 test.img losetup: /dev/loop0: failed to set up loop device: No such file or ...
0
votes
1answer
91 views

How to ensure ssh via cgroups on centos?

When some cpu-intensive processes are running on the server, chances are that we could not log in to this machine with error 'operation timeout' via ssh command. According to this post answered by ...
0
votes
1answer
75 views

High on %wa from top command, is there any way to constrain it?

Here's my last top info before it stucks: top - 18:26:10 up 238 days, 5:43, 3 users, load average: 1782.01, 1824.47, 1680.36 Tasks: 1938 total, 1 running, 1937 sleeping, 0 stopped, 0 zombie ...
0
votes
0answers
137 views

Can not connect to OpenVPN server from LXC container

I can't seem to connect to an OpenVPN server from an LXC container. I have spent some time searching around and tried the suggestions many have posted but I still can't seem to get this working. I was ...
3
votes
0answers
172 views

Centos 7 & Hard CPU Limits

OS Version Information: [root@localhost system]# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) Configuration for the test.slice is as follows: [root@localhost system]# cat ...
0
votes
0answers
81 views

How to overwrite default cgroup cgconfig.conf using cgconfig.d?

The default cgroup config file cgconfig.conf provided with the libcgroup conatains: mount { cpuset = /cgroup/cpuset; cpu = /cgroup/cpu; cpuacct = /cgroup/cpuacct; memory = ...
0
votes
0answers
183 views

Using net_cls with tc to shape ingress

I've successfully set up egress shaping using tc and net_cls, but am having a lot of trouble doing the same for ingress. I've tried using the basic tc ingress qdisc with a filter as well as using IFB ...
1
vote
0answers
133 views

Restrict I/O Write usage using cgroups

I am trying to restrict I/O write usage on my server using cgroups. Here is my partition table info: major minor #blocks name 8 0 10485760 sda 8 1 9437184 sda1 8 ...
0
votes
1answer
163 views

Is it generally a bad idea to run MongoDB and ElasticSerach on the same nodes

Simple question: is it stupid to run mongodb and elasticsearch on the same nodes within a cluster of three if you take care of mongodb's memory hunger using cgroups and ignore the aspect of concurring ...
1
vote
1answer
635 views

Setting the MemoryLimit of a user-created systemd scope using cgroups as user

Related: LImiting overall memory usage for child processes Is there a way for an unprivileged user, or for root to allow an unprivileged user, to create a systemd scope (or other control group ...
-1
votes
1answer
318 views

Cgroups with libvirt/kvm on Centos 6.5

i am trying to limit all the memory used by virtual machines to a particular value. on ubuntu servers setting limit to "libvirt-qemu " solves the issue.But in case of Centos,it creates ...
0
votes
1answer
2k views

Understanding OOM killer logs

I run some processes inside docker container and I use memory limitation for this container. Sometimes some processes inside docker container got killed by OOM killer. I see that in syslog file: ...
1
vote
0answers
39 views

(Unexpected?) blkio controller behavior

I'm using docker 1.4.0 with lxc-1.0.6 and cgroup-lite-1.1.5 on Ubuntu 12.04. I have 3 hard disks (/dev/[sdb-sdd]) that I write to from 3 distinct containers. They have only one XFS partition, mounted ...
2
votes
2answers
548 views

How do I configure LXC to allow the use of SCHED_RR in a container?

Any ideas on how I can configure LXC/cgroups, to allow the use of SCHED_RR for applications in a container? On the internet I have seen mention of unmounting the cpu-cgroup, I have tried that, ...
-1
votes
2answers
528 views

Can you use CGroups inside an OpenVZ Container?

just a quick question, which i have had trouble finding the answer to: The OpenVZ Authors have been contributing a large amount of code to the linux kernel, in order to get virtualization features ...
1
vote
0answers
274 views

How to change docker lxc/cgroup configuration at runtime

I would like to change docker lxc/cgroup settings while a container is running. As an example, if I launch a container like this: docker run --lxc-conf="lxc.cgroup.cpuset.cpus = 0" ... How do I ...
1
vote
0answers
57 views

How to test if packet has been tagged with classid

I'm trying to troubleshoot an issue I'm having related to IFB Mirroring which I'm attempting to deploy based on this question: Tc: ingress policing and ifb mirroring My theory is that since the ...
5
votes
1answer
401 views

Why are cgroups (blkio serviced bytes) and iotop producing diverging results

I work with lxc user space tools on ubuntu 14.04 and I want to perform some stress tests and benchmarking within a container. I know that free and htop are not working properly in a container. I am ...
0
votes
0answers
325 views

Trouble using net_cls control group in tandem with tc for packet filtering

I'm having some trouble limiting network bandwidth using the net_cls control group in conjunction with the linux traffic controller (tc). I think I might just be confused about how I'm writing the ...
4
votes
1answer
637 views

Linux cgroups cpuset w/ subs causes cgconfig not to start

I am having a problem trying to separate 2 groups using cpuset subsystem. This works fine, however if i go to add a subgroup to that group (in this case -- user1), cgconfig will fail to start with ...
6
votes
1answer
2k views

Cgroup - no space left on device

I have Debian 7 box and little issue: mkdir /cgroups/test echo 500 > /cgroups/test/cpu.shares echo 3167 > /cgroups/test/tasks bash: echo: write error: No space left on device How can I fix ...
4
votes
1answer
423 views

cgroups memory 16GB ceiling

I am trying to use cgroups to limit memory usage of user processes on servers with a large amount of ram (128 GB or more). What we want to achieve is to reserve about 6GB of ram for OS and root ...
2
votes
1answer
445 views

cGroups cgred daemon doesnt always move child processes, parent process temporarily in wrong group

So I'm in the process of setting up CGroups on a few servers, and I'm using the documentation pretty heavily to do this. I came across this in section 2.8.1 of the Fedora Resource Management Guide ...
2
votes
1answer
412 views

I/O priority per LVM volume (cgroups)

How can I prioritize LVM volumes I/O performance using cgroups? I know I can use ionice to make changes at the process level but I wish to be able to do this per LV and not per process.
5
votes
1answer
2k views

How to find out cgroup of a particular process?

Is there any method to get cgroup of process? The only one package that I know (cgroup-bin), just provide some manipulations with cgroups and allow to change cgroup of process/list of processes, but ...
4
votes
2answers
583 views

route traffic from a cgroup via a specific network interface

Is there a possiblity, to restrict a cgroup to a specific network interface? All packets from the cgroup should only be routed via a VPN connection, while other packets use the default route. With ...
0
votes
1answer
573 views

add a cgroup controller into libvirt

libvirt by default has cgroup controllers of ["cpu", "devices", "memory", "blkio", "cpuacct"] as shown in qemu.conf. I want to add one more controller of net_cls. I tried to modify the config file to ...
0
votes
2answers
2k views

What is required to activate cgroups in Linux

I have a Debian squeeze kernel (linux-image-2.6.32-5-openvz-amd64) which according to the Doku should support cgroups. When I look into the kernel configuration, it does (or is some other kernel ...
8
votes
3answers
2k views

Why are applications in a memory-limited LXC container writing large files to disk being killed by the OOM?

EDIT2: This problem appears to exist as well under 3.8.0-25-generic #37-Ubuntu SMP EDIT: I modified the question from the original title of "Why would the Linux Out of Memory manager be triggered by ...
2
votes
1answer
1k views

Allowed cgroup devices for libvirt/lxc container

I want to allow my libvirt/lxc containers to use tun/tap device. In order to do so I for a running container I can add it to the allowed devices by: # echo "c 10:200 rwm" > ...
3
votes
1answer
890 views

Limit private memory usage per user

I'm using cgroups with the memory controller to set a memory limit for each user (using the memory.limit_in_bytes setting). The problem is that this setting also accounts cache usage. Therefore, if ...
3
votes
1answer
2k views

Cannot find network subsystem in cgroup on Ubuntu 12.04 LTS

I'm trying to use cgroups to limit a process's network bandwidth, as described in this answer. However, I am unable to find the "files" they refer to. I am using Ubuntu 12.04 LTS with cgroup-bin ...
11
votes
3answers
2k views

How can I create and use Linux cgroups as a non-root user?

How can I create and use cgroups as a non-root user? For example, can I, entirely as a non-root user: create a cgroup with access to one CPU create a new process in that cgroup ? I first asked ...
7
votes
2answers
859 views

How to do network accounting using cgroups

I am trying to get network statistics for groups of processes. As far as I know, complex network accounting on linux is normally done using the accounting infrastructure of netfilter/iptables. As I'd ...
2
votes
1answer
635 views

Limiting a process' network access on Linux?

I've been researching how to sandbox processes, and I came across cgroups, which looked promising. I'm not super interested in using virtualization or strace for this, since I want programs to run as ...
2
votes
1answer
804 views

capping VM IO with cgroups

I'm using cgroups to cap disk IO that a VM does by using libvirt's support for cgroups. So, I'm getting the major/minor number of the device from a 'ls -lL' on the drive where the '.img' file for the ...
2
votes
1answer
689 views

How to find which cgroup caused OOM?

I'm using cgroup to partition my processes and I'm getting Out Of Memory messages in my kernel logs. However, I can't find which partition causes them. I've checked the memory controller cgroup but ...
2
votes
1answer
566 views

cgroup administration and inheritance

In cgroups there seems to be an option called 'cgroup.clone_children' for each subsystem, that allows you to specify if the setting of the parent cgroup should be inherited into the child cgroups. But ...
2
votes
1answer
518 views

OpenNebula-managed libvirt not allowing access to /dev/kvm

I have a fresh Open Nebula 3.2.1 installation which I'm trying to get working and manage some freshly-installed debian squeeze kvm hosts. My problem is that when Open Nebula deploys VMs the KVM ...
2
votes
1answer
638 views

How can I be notified when the limit of a cgroup is hit?

I want to use cgroups to limit resources in linux http://en.wikipedia.org/wiki/Cgroups How can I be notified when a limit if hit. For example if I limit a process to 2 gigs or ram how will I know ...
1
vote
3answers
991 views

Cgroups vs Tasksets in KVM

I have a CentOS 6 host for several KVM VMs with FreeBSD as guest. I want to bind each VM to use no more than one core at once. What would you suggest to use, Cgroups or Tasksets?