Questions tagged [cgroup]
The cgroup tag has no usage guidance.
12
questions
3
votes
0
answers
763
views
Meaning of /sys/fs/cgroup
While reading the Linux documentation on cgroups I have found some things to be a bit unclear:
I noticed that (in the examples) the root of all cgroups is always /sys/fs/cgroup/. Is there any special ...
2
votes
1
answer
2k
views
cgroup V1 setup does not work in cgroup V2
I have a cgroup setup that I use to limit memory usage for rsync and firefox, primarily. It is a manual setup (no systemd involvement) that I run from a Makefile after each boot (yeah I know not ...
1
vote
1
answer
1k
views
Cannot mount cgroup v1 cpu subsystem on Linux
Suppose on Ubuntu 22.04, RHEL9 or Centos 9 Stream I have cgroup v2 turned off using systemd.unified_cgroup_hierarchy=0 boot option. So I have only cgroup v1 and I want to mount cpu subsystem. The ...
1
vote
0
answers
33
views
`setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed`
Today i noticed i my kuberentes/k3s cluster has a problem.
On the node that was defined in my ~/.kube/config file the API server was not running, so i could not use kubectl.
I studied the logfiles and ...
1
vote
0
answers
50
views
How to configure the implementation under Ubuntu 22.04 cgroup v2 for restricting CPU usage for user accounts?
How to configure the implementation under Ubuntu 22.04 cgroup v2.
For example
A user (all processes and subsequent processes), limited to 100% CPU usage
B user (all processes and subsequent processes)...
1
vote
0
answers
44
views
Is CPUQuota per core or per machine?
In order to prevent buggy sites from freezing my system I imposed a CPU Quota limit of 95%, a Memory High of 2G and a Memory Max of 3G on my Firefox flatpak as described by the flatpak documentation.
$...
1
vote
0
answers
278
views
"pids cgroup controller not found" error when trying to create k3s node
I am trying to create a k3s node on my QNAP NAS using the "Container Station" (= QNAP Docker runtime).
Unfortunately the container crashes with the error FATA[0003] pids cgroup controller ...
1
vote
0
answers
47
views
TCP transparent proxy with cgroups2: How can I allow TCP traffic only and block all the rest coming from a cgroup?
I'm trying to setup a TCP transparent proxy with cgroups2:
iptables -t nat -A OUTPUT -p tcp -m cgroup --path test --syn -j DNAT --to-destination 10.0.0.1:10000
iptables -A INPUT -p tcp -m cgroup --...
0
votes
1
answer
51
views
Routing a cgroup to a different table and back to the main table
I want to have the following setup. There are two interfaces: wlan0 and wg0. wlan0 is the default, wg0 is a wireguard interface, configured manually.
By default traffic goes to wlan0. But if a process ...
0
votes
0
answers
81
views
Failed to start User Manager, No CGroup Medium Found
I have run into a strange issue that, from what I can tell, the root cause is associated with or directly related to CGroups. Unfortunately I do not understand enough about SystemD or CGroups to know ...
0
votes
0
answers
517
views
Resolving Slurm cgroups Plugin Errors on Ubuntu 22.04 Nodes
I'm working with Slurm and facing issues specifically with the cgroups plugin on Ubuntu 22.04 nodes. Our team is relatively new to Slurm, and we've been trying to optimize our resource management for ...
0
votes
0
answers
31
views
How can a thread get to cgroup v1 if not directly written there?
I set cpu.cfs_quota_us of my cgroup v1 and write some threads of my process to tasks file. But I see that some threads that I do not write there explicitly, somehow find there way to the tasks file.
...