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
1answer
26 views

Can't enable cgroups memory controller

I have Debian 8.5 on DigitalOcean with a kernel version 3.16.7-ckt25-2 I'm trying to enable cgroups memory controller for Docker. I add cgroup_enable=memory swapaccount=1 to ...
0
votes
0answers
30 views

LXC host share cgroup directory with container

I run priviledged containers on Centos 7. I want to have isolated cgroups inside container, so I don't want other containers to see cgroups of other containers. I have set lxc.mount.auto to cgroup:...
0
votes
0answers
42 views

cgroup same process with different resources

I have a Jboss application server installed through source and running multiple instances(say 3) of JBoss as a same user in a single machine on different ports. Using cgroups, I'm trying to do ...
9
votes
1answer
511 views

How does CPU affinity interact with cgroups in Linux?

I'm trying to run multi-threaded benchmarks on a set of isolated CPUs. To cut a long story short, I initially tried with isolcpus and taskset, but hit problems. Now I'm playing with cgroups/csets. I ...
0
votes
0answers
28 views

Cgroup io throtteling kvm

I am using virtio-9p for sharing the file between host and guest. To test the shared file I do read/write options in the guest.To have controlled io, I am using cgroup blkio. While using cgroup I am ...
0
votes
1answer
73 views

iptables is marking packets with wrong number while copying file by scp

[Case1] When copying file from server (being on client) to client, packets are marked incorrect with 3 (root). [Case2] When copying file from server (being on server) to client, packets are marked ...
1
vote
0answers
11 views

Limiting Oracle instances resources with Cgroups?

Is it possible to limit the amount of resources (I/O, CPU and Memory) a Oracle instance can consume using only cgroups? (no containers or virtualization) The reason I wanna do that is because I want ...
1
vote
2answers
120 views

Will Linux/Ubuntu running in an LXC container understand cgroup memory limits?

I'm planning to rent a physical server and run MySQL inside an LXC container on that server. I'd like to control maximum memory usage for the MySQL instance using cgroup limits : lxc.cgroup.memory....
3
votes
1answer
159 views

CGroups memory limit not working

I am trying to limit memory usage for a LXC container using CGroups, but I can't limit the memory. # lxc-cgroup -n maxdaniel981 memory.limit_in_bytes 134217728 lxc_container: failed to assign '...
0
votes
0answers
19 views

Running the same program with two different users on the same system takes vastly different times

I am on Ubuntu 15.04, I ran a program under the user who was added during the time of installation(call him D) and the program took 2.5 seconds to complete. I add another user T to the system. When I ...
0
votes
0answers
47 views

Linux outbound traffic filtering with: cgroups + tc + iptables

I spent a lot of time trying to implement outbound traffic filtering with: cgroups + tc + iptables on Debian Jessie. Unfortunately there is still something wrong. The biggest issue is: - cgroups ...
0
votes
0answers
51 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
502 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
107 views

htop cgroup column widen

How can I see full length of text CGROUP column in htop? I cannot enlarge it.
0
votes
0answers
56 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
119 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
508 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 = /...
3
votes
1answer
653 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
73 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 /cgroup/imagecenter/...
0
votes
2answers
709 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 ...
4
votes
2answers
3k 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
126 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
81 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 ...
3
votes
0answers
224 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 test....
1
vote
0answers
250 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
201 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 ...
2
votes
1answer
935 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
392 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 libvirt/qemu/...
0
votes
1answer
3k 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
40 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
689 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
618 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
305 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
61 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
488 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
362 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
747 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 it?...
4
votes
1answer
486 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
519 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
494 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
3k 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
770 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
655 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
3k 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" > /sys/fs/cgroup/devices/...
3
votes
1answer
976 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 ...
12
votes
3answers
3k 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 ...