Hi Thomas, On Wed, May 26, 2010 at 10:22 PM, Thomas Liu <[email protected]> wrote: > Hello, > > I'm trying to get libcgroup to work right now and I've managed to use the > library to create a group and assign a process to it. I can even limit how > much memory my program uses but no matter what I do trying to limit cpu usage > doesn't seem to work. I add a cpu controller and set rt_runtime_us to 50000 > and rt_period_us to 500000, but my process seems to take up 100% cpu anyways. > Is there something else I have to do to get this to work? >
Right. Your process is most probably not a real time process and so the tunables you are setting will have no effect on it. The SCHED_OTHER scheduling is work-conserving (which means if a task is runnable, it will run instead of idling the processor). Folks are working providing hard limits for SCHED_OTHER, and once its available in the kernel you should be able to use it. Thanks! Dhaval ------------------------------------------------------------------------------ _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
