On Mon, Dec 20, 2010 at 4:39 PM, Balbir Singh <bal...@linux.vnet.ibm.com> wrote: > * Dhaval Giani <dhaval.gi...@gmail.com> [2010-12-17 15:23:19]: > >> Heya! >> >> So, I have been talking with torbenh on IRC on trying to figure out >> how to make life easier for JACK and providing it with rt powers. >> >> Now, cgconfigparser has the ability to load cascaded configurations, >> but that still requires the original namespace to be defined in >> /etc/cgconfig . The problem is that every application cannot add to >> that one file in a sane fashion. Now, discussing with torbenh, he had >> the idea that we could store all the "individual" configurations in >> something like /etc/cgconfig.d/ and have libcgroup load it. (of-course >> we will need to figure out some rules so that we don't have competing >> cgroup names, and we need to metnion that the namespace will have to >> be / as opposed to something else and so on..). I don't see anything >> particularly against this idea. Of course, I am not goign to modify >> cgconfigparser, but I am instead looking at looping inside the >> initscript to load using /etc/cgonfig and then load /etc/cgconfig.d/ . >> > > I like this, if done correctly. > >> Now having said that, I am tempted to add another field inside >> /etc/cgconfig saying cascade = /some/dir/ and then go on to load >> /some/dir in a cascaded fashion. That way, jack can have its own >> cascaded directory and so on (as well)... >> > > I don't like this idea, the more files have dependencies the harder > they are to debug, for example -- who loaded this configuration file > and why? >
Well, I don't have a preference for either approach. They both allow you to have multiple configurations. Having said that, I am still mucking about the yacc code to get things to work reasonably with the cascade= option. I seem to have lost a lot of the yacc/lex foo :D Dhaval ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel