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 ?

Best regard,
------------------------------------------------------------------------------
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