On Tue, Aug 16, 2011 at 12:43 AM, Dhaval Giani <dhaval.gi...@gmail.com> wrote: > On Mon, Aug 15, 2011 at 7:17 AM, Harley Peters <har...@thepetersclan.com> > wrote: >> On Mon, 15 Aug 2011 09:46:36 -0400 >> Vivek Goyal <vgo...@redhat.com> wrote: >> >>> On Mon, Aug 15, 2011 at 02:19:59PM +0530, Balbir Singh wrote: >>> > On Mon, Aug 15, 2011 at 12:23 AM, Harley Peters >>> > <har...@thepetersclan.com> wrote: >>> > > I can set one fine: >>> > > blkio.weight_device = "8:16 100"; >>> > > >>> > > But how do I set more than one? >>> > > Nothing I have tried works. >>> > > Can't seem to find anything on Google that mentions it. >>> > > Don't know if this is the right list but don't know anywhere else >>> > > to ask. >>> > >>> > Hi, Harley >>> > >>> > This is the right place to ask, cc'ing Vivek >>> >>> I have not tried cgconfig but I tried it directly on cgroup file >>> system on 3.1.0-rc2 kernel and it works. >>> >>> # echo "8:16 100" > blkio.weight_device >>> # echo "8:32 100" > blkio.weight_device >>> # cat blkio.weight_device >>> 8:32 100 >>> 8:16 100 >>> >>> So it might have something to do with how things are being parsed in >>> libcg. >>> >>> Thanks >>> Vivek >> >> It works if I echo it directly but not from within cgconfig.conf. >> It allows only one blkio.weight_device line per group. >> > > Can you paste your cgconfig.conf please? Also what version of > libcgroup are you using?
I think this must be coming from the uniqueness cheque we have for key/value pair. Honestly, I dont' think we planned for a use case where the same value could be written twice. Harley, which value is retained when you write twice, the first or second? Balbir ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel