Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about cgroups

Read more about cgroups

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - cgroups

Linux: let a process fail, if it does opens a file for writing

I would like a command-line-tool to fail if it opens a particular file for writing. Is there a way I can modify the environment (maybe via cgroups) of the command-line tool, so that the command/proces...
test-img

guettli

linux

system-calls

cgroups

Votes: 0

Answers: 2

Latest Answer

strace has an option called -e inject or simply --inject which can be used to alter system calls of the tracee. (See manpage here) In particular, in can be combined with the -P option to only trace sy...
test-img

perivesta

RHEL 7: missing cgroup after reboot instances

I'm trying to limit resources by using cgroup. It's working fine until I reboot the instance. I had checked and found that the cgroup was removed for some reason. This is my step to creating the cgrou...
test-img

KhanhND

amazon-ec2

rhel

cgroups

Votes: 0

Answers: 1

Latest Answer

It seems like cgroup config is not persistant across reboot. I personally am not very familar and can't test but you can have a look at this. You need to configure cgconfig to persist your changes.
test-img

Riz

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved