Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] cgconfig fail to start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1944
Location: Switzerland (Romandie)

PostPosted: Sun Feb 12, 2012 2:12 pm    Post subject: [solved] cgconfig fail to start Reply with quote

I try to setup a rtaudio cgroup with the following config:

Code:
# cat cgconfig.conf
group rtaudio {
   perm {
      task {
         uid = root;
         gid = audio;
      }
      admin {
         uid = root;
         gid = root;
      }
   }
   cpu {
      cpu.rt_runtime_us = 950000;
   }
}

Code:
# cat cgrules.conf
# comments here
@audio:jackd      cpu   rtaudio/


In the kernel config, I have (kernel 3.0.4-gentoo):
Code:
# cat .config|grep GROUP
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
# CONFIG_CGROUP_MEM_RES_CTLR is not set
# CONFIG_CGROUP_PERF is not set
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_BLK_CGROUP=m
# CONFIG_DEBUG_BLK_CGROUP is not set
CONFIG_SCHED_AUTOGROUP=y
# CONFIG_CFQ_GROUP_IOSCHED is not set


When starting cgconfig:
Code:
# /etc/init.d/cgconfig start
 * Starting cgconfig service ...
 * Failed to parse /etc/cgroup/cgconfig.conf                                         [ !! ]
 * ERROR: cgconfig failed to start


With cgconfigparser:
Code:
# cgconfigparser -l /etc/cgroup/cgconfig.conf
Adding controller cpu
[1] name value pair being processed is cpu.rt_runtime_us=950000
Loading configuration file /etc/cgroup/cgconfig.conf failed
Cannot have mount and namespace keyword in the same configuration file


I took my config from http://trac.jackaudio.org/wiki/Cgroups
I don't understand if it is a bug in libcgroup, in my cgroup config, or in my kernel config.

Any help would be appreciated.

EDIT:
I found the solution. It was just to add the namespace stuff as in Method 2.5 on the JACK wiki.
_________________
"Confirm You are a robot." - the singularity
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum