Thanks.. we need the strace logs for the run

Balbir Singh.

On Mon, Dec 8, 2014 at 10:34 PM, Alexandre LAURENT
<pro.laurent.alexan...@gmail.com> wrote:
> As far as I know, yes, it is compiled. Memory controller is normally mounted
> in /cgroup/ and all files are present.
> Here my kernel config :
>
> 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=y
> CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
> # CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED is not set
> CONFIG_CGROUP_PERF=y
> CONFIG_CGROUP_SCHED=y
> CONFIG_BLK_CGROUP=y
> # CONFIG_DEBUG_BLK_CGROUP is not set
> CONFIG_NET_CLS_CGROUP=y
>
> If I disable memory controller everything will work fine with all other
> controllers. But, when enabling again memory controller, I have problems
> getting some files like freezer.state or memory.failctn. I guess this is
> because of the failure of cgroup_get_cgroup().
>
> Am I missing something ?
>
> Best regards,
>
>
> 2014-12-08 11:32 GMT+01:00 Balbir Singh <bsinghar...@gmail.com>:
>>
>> On Mon, Dec 8, 2014 at 3:52 PM, Alexandre LAURENT
>> <pro.laurent.alexan...@gmail.com> wrote:
>> > Hello,
>> >
>> > I am using libcg 0.41 and Linux Kernel 3.2.0.4 (AMD 64) on Debian 7.
>> > When I am using memory controller (and some others) through the
>> > following
>> > config file :
>> > ---
>> > mount {
>> >     cpu = /cgroup/cpu;
>> >     freezer = /cgroup/freezer;
>> >     net_cls = /cgroup/net_cls;
>> >     blkio = /cgroup/blkio;
>> >     memory = /cgroup/memory;
>> > }
>> > ---
>> >
>> > the cgroup_get_cgroup() function is returning an error "Cgroup invalid
>> > operation".
>> > The error seems to be emitted from cgroup_add_controller() which will
>> > return on this case :
>> > /*
>> >  * Still not sure how to handle the failure here.
>> >  */
>> > for (i = 0; i < cgroup->index; i++) {
>> >     if (strncmp(name, cgroup->controller[i]->name,
>> >             sizeof(cgroup->controller[i]->name)) == 0)
>> >     {
>> >         return NULL;
>> >     }
>> > }
>> >
>> >
>> > When commenting the memory controller line, the error disappear.
>> > I have also tried to output all debug messages available in libcg, but
>> > none
>> > of these seems related to this issue.
>> >
>> > What can cause this issue ?
>>
>> Is memory cgroup compiled?
>>
>> Balbir Singh.
>
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to