Questions tagged [cgroups]
Linux cgroups (control groups) allow limiting and accounting for resources on a system, including CPU, memory, and block I/O.
330
questions
0
votes
0
answers
13
views
Memory limits set in your systemd slice are not being enforced correctly
I try to run process with memory and CPU limit but looks like it is not working and I keep running the process bigger than the memory limits. This is what I have:
My /etc/systemd/system/group750m....
0
votes
1
answer
53
views
Systemd[1]: Freezing execution kali linux
When launching my pc and choose to start up my kali linux from the grub list It reach to the loading screen when the desktop environment appears it spontaneously freez and after seconds I get this ...
0
votes
1
answer
37
views
where to enable /sys/fs/cgroup/memory/0/memory.usage_in_bytes?
I try to count total memory usage in linux via /sys/fs
For this I've found /sys/fs/cgroup/memory/0/memory.usage_in_bytes in https://docs.kernel.org/admin-guide/cgroup-v1/memory.html#user-interface
i'...
0
votes
0
answers
58
views
Linux cgroup (v2): Why has setting memory.max no effect here?
I am trying to demonstrate the effect of limiting the memory consumption of a process in a Linux cgroup (v2) by setting memory.max, but executing the following commands as root seems to have no effect:...
1
vote
1
answer
24
views
How to dump a control group info?
Currently I am playing with cgroup-tools and I have found a lot of important tools to manipulate the control groups of the system. (I also know about many similar functionality in systemd, I ...
0
votes
0
answers
102
views
systemd: Failed to attach to cgroup...No such file or directory
OS
Ubuntu-22.04
Kernel-version
6.2.0-39-generic
systemd --version
systemd 249 (249.11-0ubuntu3.12)
Problem description: From a perl script I am trying to stop and start myservice, this script has no ...
0
votes
1
answer
71
views
cgroups v2 : io.latency not exists
When I create a cgroup using sudo mkdir /sys/fs/cgroup/my-cgroup, io.latency is not created. Other io files are created, like io.max, io.stat, io.pressure...
The content of cgroup.subtree_control ...
0
votes
1
answer
38
views
Ways to isolate cpus between different processes
I'm running speed tests between different versions of the same application. I want to be able to allocate a fixed set of cpus to each application. For example I want to run the application on exactly ...
1
vote
1
answer
56
views
Understanding memory limits in a systemd service: Are they per-process or combined?
I have a systemd service named vcoagent.service running on my Linux system, and I'm trying to understand how memory limits specified for the service (Memory: 300.3M (limit: 500.0M)) apply to the ...
0
votes
0
answers
42
views
Flow of marked packets in Linux network stack
Summary:
My question is regarding the flow of marked packets in the network stack.
Here is what i have done:
I have marked packets in the mangle table using the OUTPUT chain.
I have also added a tun ...
1
vote
1
answer
349
views
cgroup virtual file system is read only for root, when root has write privileges?
As the title of my question suggests, I am trying to edit the properties of my cgroup virtual file system - create new directories, edit the resource limits in certain files, etc - but any write ...
1
vote
0
answers
114
views
How to make cgroup V2 persist accross system reboot in RHEL 7
I am using RHEL 7. The default Cgroup hierarchy for the system is Cgroup V1.
I need the system to have both Cgroup V1 and Cgroup V2 hierarchies co-existing, and I am achieving that by manually ...
1
vote
1
answer
51
views
cgexec not placing child process in correct cgroup
I have made two cgroups:
sudo cgcreate -g cpu,memory:rustserver
sudo cgset -r memory.max=150000000 rustserver
sudo cgset -r cpu.max=25000 rustserver
sudo cgcreate -g cpu,memory:pyexecutor
sudo cgset -...
0
votes
0
answers
118
views
How is the order of processes killed in cgroup v2 when out-of-memory?
I'm using cgroup v2 on Ubuntu 22.04 to limits users in a group. I'm wondering how the processes are killed when out-of-memory (OOM).
For an instance:
The computer has 100G memory. I have a group of 4 ...
0
votes
0
answers
42
views
Where hugetlb controller is auto enabled?
One kvm virtual machine (8 vcpus+8G memory) of Ubuntu 22.04 with cgroup2 system,
cat /sys/fs/cgroup/cgroup.subtree_control
hugetlb controller included;
But another kvm vm (4 vcpus+4G memory) of ...