Software/systemd/PaxControlGroups

Pax Controla Groupiana

aka "How to behave nicely in the cgroupfs trees"

Are you writing an application interfacing with the cgroups tree? The cgroups trees are a shared resource, other applications will use them too. Here are a few recommendations how to write your application in a way that minimizes conflicts with other applications. If you follow these guidelines applications should not step on any other application's toes and users will be happy.

Before you read these recommendations please make sure you understand cgroups thoroughly, and specifically are aware what a controller is, what a named hierarchy is and so on.

Intended Audience

You should consider these recommendations if you are you working on one of the following:

General Recommendations

Cooperation with systemd

systemd adheres to the recommendations above and guarantees additional behaviour which might be useful for writing applications that cooperate with systemd on cgroup management: