Questions tagged [cgroup]
cgroups (control groups) is a Linux kernel feature to limit, account and isolate resource usage (CPU, memory, disk I/O, etc.) of process groups.
137
questions
0
votes
1
answer
628
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 ...
4
votes
2
answers
7k
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
vote
1
answer
1k
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 the case of CentOS, it creates ...
2
votes
1
answer
15k
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
0
answers
61
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 ...
3
votes
2
answers
3k
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, ...
0
votes
3
answers
2k
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
0
answers
670
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
0
answers
244
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 ...
7
votes
1
answer
2k
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
0
answers
829
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
1
answer
2k
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 "...
10
votes
1
answer
9k
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
1
answer
1k
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 ...
3
votes
1
answer
1k
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 (...
3
votes
1
answer
2k
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.
33
votes
3
answers
57k
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
2
answers
4k
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
1
answer
2k
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 ...
5
votes
3
answers
24k
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 ...
10
votes
3
answers
7k
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 ...
3
votes
1
answer
3k
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
1
answer
1k
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 ...
4
votes
1
answer
4k
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 ...
27
votes
4
answers
19k
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
2
answers
3k
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
1
answer
2k
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 ...
3
votes
1
answer
1k
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 ...
4
votes
1
answer
3k
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 ...
4
votes
1
answer
2k
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
1
answer
889
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
2
answers
2k
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
3
answers
2k
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?
1
vote
1
answer
651
views
CFS hardlimit in cgroups
I recently moved to KVM. Previously I was using xen and its capping feature in credit scheduler. Where we can set a cpu cap for a VM. I was searching for a similar feature to set hard limits on a VM ...
5
votes
1
answer
995
views
KVM + cgroups: Dom0 process best practice?
I am transitioning from Xen to KVM, and will be using Fedora 14. I plan to use cgroups to assign priorities to VMs.
My question is as follows: If I place VMs in various cgroups, should I also put ...
5
votes
2
answers
2k
views
What are the advantages/disadvantages of using cgroups?
I administer several Linux-based servers and we are looking at migrating several JBoss apps as well as a couple of websites running on Apache from a RHEL 5.5 (64-bit) server with 4 cores to a RHEL 6 (...
3
votes
1
answer
3k
views
How is the cgroup pam module configured?
Linux has a PAM module that manipulates cgroups. How is it configured (what options does it support?)