I'm afraid I've lost the logs (sorry, forced email cleanup). I remember seeing a rollback action because an action failed. Would you mind resending it?
Balbir Singh. On Tue, Dec 16, 2014 at 9:50 PM, Alexandre LAURENT <pro.laurent.alexan...@gmail.com> wrote: > I have continued my investigation about this issue. > On all machines that I have access, with different kernels : 3.2, 3.5.5, > 3.14, I have always the same issue. > I am trying to run the tests available in libcgroups 0.41. TEST17 from > second pass and TEST25 from third pass are always failing. These tests are > related to cgroup_get_cgroup(). > > Can you reproduce and investigate on this, please ? > > Best regards, > > > 2014-12-09 17:21 GMT+01:00 Alexandre LAURENT > <pro.laurent.alexan...@gmail.com>: >> >> Hello, >> >> I am attaching the strace from my program. >> This segment appears when I am calling cgroup_get_cgroup() : >> >> access("/cgroup/freezer/grp_1", F_OK) = 0 >> stat("/cgroup/freezer/grp_1//tasks", {st_mode=S_IFREG|0644, st_size=0, >> ...}) = 0 >> gettid() = 18300 >> write(2, "E1209 16:57:17.328337 18300 cgro"..., 108) = 108 >> >> (gettid() and write() calls are coming from my logger.) >> >> Thanks for your help, >> >> >> >> 2014-12-08 18:52 GMT+01:00 Balbir Singh <bsinghar...@gmail.com>: >>> >>> 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