Giter Club home page Giter Club logo

Comments (9)

mrunalp avatar mrunalp commented on August 27, 2024

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.

LK4D4 avatar LK4D4 commented on August 27, 2024

@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.

LK4D4 avatar LK4D4 commented on August 27, 2024

So, I disabled my systemd noise, now path with parents:

/sys/fs/cgroup/memory/test/c8af2a2a2b82c46e3120034a0cfe9288e4f118b6f7ec0dabeaf489cc25a66fb2

from runc.

LK4D4 avatar LK4D4 commented on August 27, 2024

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.

vishh avatar vishh commented on August 27, 2024

@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.

LK4D4 avatar LK4D4 commented on August 27, 2024

@vishh Could you provide example how it should look? Because now they're(abs and rel) identical.

from runc.

vishh avatar vishh commented on August 27, 2024

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.

fabiokung avatar fabiokung commented on August 27, 2024

Should this be closed? The --cgroup-parent option doesn't even seem to exist anymore.

from runc.

LK4D4 avatar LK4D4 commented on August 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.