As things stand right now, there are 4 cgroup controllers in the kernel that openrc doesn't actually support setting up: 1. freezer 2. hugetlb 3. net_cls 4. perf_event Of these, I will admit that freezer is pretty pointless for most openrc started services, and perf_event is not particularly useful in such contexts as well. hugetlb and net_cls however are useful, nd there is no code supporting them in openrc. Furthermore, in either linux 4.2 or 4.3 (I can't remember which the patches were queued for), there will be another controller for limiting the number of pids used by a cgroup, and this is extremely useful for some services. It would be nice to see support for these cgroup controllers in openrc.
Created attachment 407272 [details, diff] Patch to add support for hugetlb, net_cls, and pids cgroup controllers to openrc The attached patch adds support to openrc for the hugetlb, net_cls and (soon to be released) pids cgroup controllers. It has been lightly tested on amd64 and x86 systems.
Created attachment 407290 [details, diff] Updated patch for hugetlb, net_cls, and pids cgroup controllers The previous patch I posted had some (admittedly rather stupid) that meant it wouldn't work on certain configurations. This version remedies those issues.
This has been added in commit 80d3928. I reordered your patch a bit and added the documented settings in rc.conf.