Comments (9)
I think that for relative case it should be
/sys/fs/cgroup/memory/system.slice/docker-65c642b685216ddeb40b3ea34892ac97faa1dc3487e9c8dfcf0fdf7ed05d0941.scope/test/7f299d5c524193189cabcc01df143c88abe95ac1e274b36926340e000a5e786c/
But for abs, it should be
/sys/fs/cgroup/memory/test/7f299d5c524193189cabcc01df143c88abe95ac1e274b36926340e000a5e786c/
from runc.
@mrunalp but it's impossible, I can't leave mount namespace of container to create
/sys/fs/cgroup/memory/test/7f299d5c524193189cabcc01df143c88abe95ac1e274b36926340e000a5e786c/
treat my
/sys/fs/cgroup/memory/system.slice/docker-65c642b685216ddeb40b3ea34892ac97faa1dc3487e9c8dfcf0fdf7ed05d0941.scope
as /sys/fs/cgroup/memory
, because it's in container.
We can discuss how it should be on host, without my crappy slices.
from runc.
So, I disabled my systemd noise, now path with parents:
/sys/fs/cgroup/memory/test/c8af2a2a2b82c46e3120034a0cfe9288e4f118b6f7ec0dabeaf489cc25a66fb2
from runc.
So, we basically don't understand for what we need absolute paths. You can't create cgroups in parent namespace anyway and if you want to use existing cgroup from host you can use only your own cgroup, so you always can use relative path.
from runc.
@LK4D4 absolute paths are required for providing QoS tiers. These cgroups can be created from within the root namespace. Unless we provide subcontainer capabilities, I don't see a need for --cgroup-parent
. That feature is useful mainly for orchestration.
from runc.
@vishh Could you provide example how it should look? Because now they're(abs and rel) identical.
from runc.
If the path is relative, then the cgroups are expected to be created under the cgroup of the calling process. Ex: cgroups created under /sys/fs/cgroup/memory/docker
, in the case of docker daemon.
In the case of runc by itself, both abs and rel paths will be the same.
If there is no need for relative cgroup parent paths, we can eliminate that to avoid ambiguity.
from runc.
Should this be closed? The --cgroup-parent
option doesn't even seem to exist anymore.
from runc.
@fabiokung it's still exitst in libcontainer but I still didn't get it :D But I'll delay to personal meeting with Vishnu.
from runc.
Related Issues (20)
- Seems like a typo, the .PHONY label has no purpose this way HOT 3
- runc update will clear cpu burst value HOT 3
- runc update: cpu period and cpu burst being reset to defaults after an unrelated update HOT 8
- runc init hang up HOT 1
- runc doesn't work with go1.22 HOT 6
- GHSA-c5pj-mqfh-rvc3 "Runc allows an arbitrary systemd property to be injected" is a misunderstood vulnerability. Users do NOT need to update runc. HOT 3
- flaky test: TestUsernsCheckpoint HOT 6
- flaky test: TestCheckpoint(actuated-arm64-6cpu-8gb, 1.21.x) HOT 2
- runc error on pod termination HOT 7
- rlimit hack won't work with Go 1.23 HOT 2
- Unblock
- flake in TestInitJoinPID on CentOS 7 HOT 1
- Flaky test: TestFdLeaks HOT 1
- CI: Replace CentOS Stream 8 with Alma, Rocky, or Oracle Linux due to EOL HOT 5
- [v1.2 regression] `SCMP_ACT_NOTIFY` rule for `fcntl` causes runc to hang, before connecting to the seccomp listener agent HOT 9
- Replace CentOS 7 in cirrus-ci HOT 2
- runc fails if run with _LIBCONTAINER_INITPIPE env var set HOT 4
- [rfc] switch from dependabot to renovate? HOT 3
- runc's poststart behaviour doesn't match the runtime-spec HOT 1
- runc aways open "/proc/sys/kernel/cap_last_cap" HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runc.