+++ This bug was initially created as a clone of Bug #1315543 +++ Description of problem: Setting memory.limit_in_bytes and memory.memsw.limit_in_bytes, and then using cgsnapshot -f, results in a file that causes the cgconfigparser to fail, due to the their ordering in the file: > Failed to remove a non-empty group Failed to parse /etc/cgconfig.conf or /etc/cgconfig.d It is either that cgsnapshot should not output entries in the incorrect order, or that this should not fail when checked or loaded. Version-Release number of selected component (if applicable): libcgroup-0.41-8.fc24 Additional info: Swapping each set of lines to be the following will allow it to load: memory.limit_in_bytes="..."; memory.memsw.limit_in_bytes="..." ------------------------------------------------------------ # service cgconfig restart Stopping cgconfig service: [ OK ] Starting cgconfig service: [ OK ] ------------------------------------------------------------
Created attachment 1170640 [details] api.c: fix order of memory subsystem parameters generated by cgsnapshot
Commit: http://pkgs.fedoraproject.org/cgit/rpms/libcgroup.git/commit/?id=2f31f5778651e84f93b65fbd2bef980a00b7ca61