Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to single cgroup mountpoint? #26

Open
ghedo opened this issue Oct 1, 2011 · 7 comments
Open

Support to single cgroup mountpoint? #26

ghedo opened this issue Oct 1, 2011 · 7 comments

Comments

@ghedo
Copy link
Contributor

ghedo commented Oct 1, 2011

Hi,

currently ulatencyd uses different mountpoints for cgroupfs (/sys/fs/cgroup/cpu, /sys/fs/cgroup/memory, etc...). What about supporting also a single mountpoint for them all (/sys/fs/cgroup)? Do you think it is doable? What kind of issues this may introduce?

I'm asking because there is a on going discussion in Debian about mounting cgroupfs by default in /sys/fs/cgroup and this would break ulatencyd. This is also valid if someone decides to mount cgroupfs in fstab (see #643580).

@poelzi
Copy link
Owner

poelzi commented Oct 3, 2011

it is possible with configs changes, but not very practical. the problem is, that different cgoup subsystem support different hierarchy levels, blockio for example only supports one level. Mounting all subsystem into /sys/fs/cgroup, which i tried is more problematic then different mountpoints. You will not be able to put programs in different groups for different subsystems etc.

@ghedo
Copy link
Contributor Author

ghedo commented Oct 4, 2011

May this be supported as a fallback? It would be nice if ulatencyd worked in this situation (maybe after printing a warning) without aborting. The default behaviour would remain the same.

@poelzi
Copy link
Owner

poelzi commented Oct 4, 2011

yes, that could be done, but requires duplicaton of rules. where is the discussion going on, so i could throw my 2cents at it :-)

@ghedo
Copy link
Contributor Author

ghedo commented Oct 6, 2011

The discussion about mounting cgroup by default is here (now that you ask it seems dead...), while the report about ulatencyd not working with it is linked above.

Even if the discussion about mounting cgroup by default goes nowhere, someone still do that using fstab along with ulatencyd, should I simply suggest to stop doing it?

@rickysarraf
Copy link

Any update on this bug?

The discussion pointed by AlexBio is for enabling cgroup automount at mount point /sys/fs/cgroup

The current approach that ulatency takes makes it incompatible with the rest. At least, Linux Containers, it expects cgroup to be mounted at /sys/fs/cgroup , making it difficult to use lxc and ulatency at the same time.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645995

@poelzi
Copy link
Owner

poelzi commented Dec 6, 2011

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 5 Dec 2011 11:58:55 -0800
Ritesh Raj Sarraf
[email protected]
wrote:

Any update on this bug?

The discussion pointed by AlexBio is for enabling cgroup automount at
mount point /sys/fs/cgroup

The current approach that ulatency takes makes it incompatible with
the rest. At least, Linux Containers, it expects cgroup to be mounted
at /sys/fs/cgroup , making it difficult to use lxc and ulatency at
the same time. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645995

ulatency can be adjusted to a single mountpoint, but as said many
times, it will suck and make it harder und more complicated to use. CPU
subsystem is totally broken when Realtime Cgroups is enabled and you
need constant fixing on that, making it harder with unified mountpoints.
You can not even create more then one level of in blkio cgroup which
will make the cpu configuration useless.
Single mount point of all cgroup subsystems IS A BAD IDEA. You can
configure it to do so, but it will not help you.

kind regards
Daniel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk7d9sUACgkQy/mkIQp7AD3sjQCeI6pB8Mu9C0IiSMgiYmydpKYs
9twAn327HoPDRBji+k+iaKW0t6yPjEOL
=2Qhn
-----END PGP SIGNATURE-----

@rickysarraf
Copy link

On 12/06/2011 04:35 PM, Daniel Poelzleithner wrote

ulatency can be adjusted to a single mountpoint, but as said many
times, it will suck and make it harder und more complicated to use. CPU
subsystem is totally broken when Realtime Cgroups is enabled and you
need constant fixing on that, making it harder with unified mountpoints.
You can not even create more then one level of in blkio cgroup which
will make the cpu configuration useless.
Single mount point of all cgroup subsystems IS A BAD IDEA. You can
configure it to do so, but it will not help you.

kind regards
Daniel

Thanks Daniel. I have taken your comments forward to the concerned folks.

Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants