Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555486 - openrc fails to setup cgroups properly under some circumstances.
Summary: openrc fails to setup cgroups properly under some circumstances.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 15:14 UTC by Austin S. Hemmelgarn
Modified: 2015-10-13 14:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Austin S. Hemmelgarn 2015-07-20 15:14:12 UTC
For some cgroup control files, if only that file is listed in rc_cgroup_XXX, then openrc doesn't create a cgroup for the service under controller XXX.

There are a couple of items that I've noticed this happens with:
1. In the memory cgroup:
    a. memory.move_charge_at_immigrate
    b. memory.use_heirarchy
2. In the blkio cgroup:
    a. blkio.reset_stats

The ones in the memory cgroup probably aren't significant, as they really are (mostly) useless without setting any of the limits.

For the blkio cgroup however, this significantly hinders my use-case for that particular cgroup; namely, it makes it impossible to use the cgroup to collect statistics without setting some limit (which in turn will almost always slow down the system).
Comment 1 Austin S. Hemmelgarn 2015-07-20 18:46:13 UTC
On further investigation, OpenRC appears to be completely ignoring any configuration WRT the blkio cgroup controller on my systems, I'm going to investigate that further and probably open a separate bug for it.

Also, it appears that the files mentioned in the memory cgroup are being completely ignored by OpenRC on my systems, regardless of whether there is any other configuration for the memory controller.
Comment 2 William Hubbs gentoo-dev 2015-10-13 14:06:49 UTC
Hi Austin,

can you check this with openrc-0.18.1, which is about to be released,
and let me know if you still have this issue?

Thanks much,

William
Comment 3 Austin S. Hemmelgarn 2015-10-13 14:37:19 UTC
Now that #555626 is fixed, I should be able to double check that this is still an issue in openrc-0.18 for the blkio controller.  Regardless of that, I'll attempt to test openrc-0.18.1 within the next day or two and let you know whether it's fixed or not.
Comment 4 Austin S. Hemmelgarn 2015-10-13 14:48:33 UTC
I just tested this on openrc-0.18, and both the blkio and memory controllers appear to be working correctly, so I'm going to mark this as resolved.