On Tue, Aug 16, 2011 at 3:24 AM, Balbir Singh <[email protected]> wrote:
> On Tue, Aug 16, 2011 at 1:17 AM, Harley Peters <[email protected]> 
> wrote:
>> On Tue, 16 Aug 2011 01:10:48 +0530
>> Balbir Singh <[email protected]> wrote:
>>
>>> On Tue, Aug 16, 2011 at 12:43 AM, Dhaval Giani
>>> <[email protected]> wrote:
>>> > On Mon, Aug 15, 2011 at 7:17 AM, Harley Peters
>>> > <[email protected]> wrote:
>>> >> On Mon, 15 Aug 2011 09:46:36 -0400
>>> >> Vivek Goyal <[email protected]> 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
>>> >>> > <[email protected]> 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
>>
>> Neither.
>> It fails to parse the config file.
>
> Does the attached PoC patch work for you?
>
> Balbir
>

Yes it worked.
Thanks.

Harley

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to