Hi, On Thu 23-06-11 19:10:39, Kevin Constantine wrote: > On 06/23/2011 05:51 PM, Balbir Singh wrote: > > If you don't mind, can I ask how you are using libcgroup, what is the use > > case? > > > > We're using cgroups in our render environment to pin batch jobs and > their child processes to individual cpu's to avoid processes hopping > around to different cores and flushing their caches. Basically each > batch job gets its own cgroup with the cpuset controller and we allocate > a single cpu to that cgroup. > > We're also using them to run batch jobs on our interactive workstations > without impacting the end user. We're carving off a few cores and a few > GB's of RAM from each workstation to run batch jobs on throughout the day. > > Basically the batch scheduler is dynamically creating and destroying > cgroups pretty regularly. I wrote code to do all of that and then > realized that libcgroup exists, so now I'm going back through and > refactoring to use the api as much as possible.
I am wondering why you need to write any code for that. Isn't cgred (man cgrules.conf) what you need? -- Michal Hocko SUSE Labs SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel