Questions tagged [cgroup]

11 questions
3
votes
0 answers

Why do I get this error when trying to run Kuberentes/K3s: "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 noticed a "token parser error". The file…
Marc
  • 529
3
votes
0 answers

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 meanings to this directory? Or can I also…
2
votes
1 answer

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 great, but systemd is such a hassle to learn). When I…
reikred
  • 551
1
vote
0 answers

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), limited to 200% CPU usage I have successfully…
1
vote
1 answer

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. $ cat…
Mek101
  • 11
1
vote
1 answer

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 problem is that I can do it for cpu,cpuacct, blkio,…
JenyaKh
  • 176
1
vote
0 answers

"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 not found. I am using the latest arm image:…
JoCa
  • 111
1
vote
0 answers

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 --path test --syn -j ACCEPT iptables A INPUT -m cgroup…
0
votes
0 answers

Linux kernel cgroup v2 CFS - CPU throttled_usec accounting?

In Linux kernel cgroup v2’s CFS scheduler, how is cpu.stat throttled_usec accounted when a cgroup with multiple threads gets throttled during a single quota period? Specifically, is throttled_usec tracked as the total wall-clock time that the cgroup…
ALZ
  • 417
0
votes
1 answer

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 is put inside a cgroup, say wgcgrp (classid is…
0
votes
0 answers

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 complex computing tasks. However, we've…