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.
10
questions
2
votes
1
answer
9k
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 = /...
9
votes
2
answers
16k
views
How do I set cgroup limits for systemd user slices?
I would like to limit usage of a system on a per user basis. Since Systemd has native support for cgroups, I think using user slices is the way to go.
The problem is: I can't figure out how to set ...
7
votes
1
answer
5k
views
List of controllers empty with cgroup v2
I am trying to learn how cgroups v2 work. I did this:
mount -t cgroup2 none /mnt/cgroup2
That gave me a list of objects in /mnt/cgroup2
root@ubuntu-s-1vcpu-1gb-lon1-01:~# ls -la /mnt/cgroup2/
total ...
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 ...
7
votes
0
answers
2k
views
Applying systemd control group resource limits automatically to specific user applications in a gnome-shell session
Having seen that GNOME now launches apps under systemd scopes I've been looking at a way to get systemd to apply some cgroup resource and memory limits to my browser.
I want to apply a MemoryMax and ...
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 ...
4
votes
3
answers
3k
views
How does systemd put sshd processes in slices?
I'm diagnosing an SSH bastion I manage. This machine has about 5500 SSH connections with port forwarding at any given point in time.
Recently, I ran into an issue where SSH connections where refused ...
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 ...
0
votes
1
answer
638
views
Can 1 thread running with a 1-cpu quota on an N-core machine use an entire core?
given:
A machine with 8 cores
a cgroup with 1-CPU quota
the cgroup has only 1 process
the process is single-threaded
How will the CPUs be made available to the process?
the process be able to run ...
0
votes
1
answer
671
views
Assign systemd slice to a specific cset automatically
On Debian under systemd, by default KVM virtual machines under libvirt get assigned to the "machine.slice" slice.
If I then add a cpuset for this slice with cset and some custom set of CPUs, ...