Skip to main content

All Questions

Tagged with
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 ...
RaGa__M's user avatar
  • 169
1 vote
1 answer
242 views

CentOS systemd places service subprocesses started with `sudo` in `user.slice` (instead of `system.slice`)

Subprocesses that are created using sudo within a systemd service are placed in the user.slice. This behavior has been observed only on CentOS 8 (x86_64 20230606) and not on Ubuntu 20.04.5 LTS, where ...
flashy's user avatar
  • 13
0 votes
1 answer
474 views

how to add PID inside cgroup.procs with non-root privileges in cgroup-v2 in Ubuntu

I created cgroup in /sys/fs/cgroup. I called it testGrp and I need this cgroup to be controlled by non-root user so I changed the ownership of the whole cgroup directory /sys/fs/cgroup$ sudo chown -R ...
Belal Elkady's user avatar
2 votes
1 answer
603 views

Configure cgroups v2 for fair resources sharing between users

Is there a way to restrict system resources to users? I know that used to exist a way of forcing every newly spawned process of a user into the specified cgroup by using cgred service along with /etc/...
Centuri0n's user avatar
3 votes
2 answers
6k views

What are CGroup Slices Used For

Just been paying attention to systemctl status' branching structure. I realized I was making up stories to explain why it looked like that but had no clue of what it meant. I can't find much info on ...
Louis Waweru's user avatar
3 votes
0 answers
543 views

What is the importance of cgconfig.conf?

I am currently trying to get a deeper grasp into cgroups. I am working with Ubuntu 18.04 and installed the necessary libraries. I am following the documentation from this site: https://access.redhat....
biamar03's user avatar
8 votes
2 answers
7k views

Limit total memory usage for multiple instances of systemd service

I'm running some .NET Core processes as systemd services under Ubuntu 16.04 (soon to be 18.04). I have a systemd configuration file (/lib/systemd/system/[email protected]) that looks like this: [...
EM0's user avatar
  • 476
0 votes
2 answers
2k views

OCI runtime create failed: systemd cgroup flag passed, but systemd support for managing cgroups is not available

On installing docker when I run the sudo docker run hello-world, I get the following error: docker: Error response from daemon: OCI runtime create failed: systemd cgroup flag passed, but systemd ...
Swapnil Pandey's user avatar
4 votes
2 answers
3k views

Limiting users ram with cgroups not working (for me)

I registred because I didn't manage running cgroups with several tutorials/comments/whatever you find on google. I want to limit the amount of ram a specifix user may use. Internet says "cgroups". My ...
darkspirit510's user avatar