Hi guys,

    Cgred cannot obtain the controller change in the Cgroup once the service 
has started.

        example:

        cgrules.conf :
                root:ping         cpu      test1
                %                 memory   test2        

        
        cgconfig.conf:
                mount {
                        cpu = /cgroup/cpu;
                }

                group test1{
                        cpu {
                        }
                }


        #/etc/init.d/cgconfig start
        #/etc/init.d/cgred start
        #ping a.b.c.d

    the ping is in test1.

        #ctrl+c
        #mount -t cgroup -o memory cgroup /cgroup/memory
        #cgcreate -g memory:test2
        #ping a.b.c.d

    but the ping cannot be attached to test2.  Looking through the code, the 
reason is
    in cgroup_attach_task_pid(), cg_mount_table initialized by cgroup_init 
doesn't conclude
    memory controller.

    I know restart cgred is ok, but it is not enough smart. I think the most 
ideal way is
    cgred can apperceive  the controller change, and then update cg_mount_table.

    What is your opinion?



        




------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&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