I'll be participating on this list. Just subscribed. Thanks for the quick answer.
I have lots and lots of web servers (4000 almost). Just started on this hosting company. I was a Sun employee and worked with Solaris 10 resource manager for years (well since the beginning). The situation is the following: - We are using several mods for apache, migrating from user "httpd" to the user id based on vhosts. - When migration, the libcg daemon is listening to the netlink events (new procs) and changing them to their cgroup (Unfortunately the httpd thread itself cannot start with the user id, but Ive separated the httpd for some cpus, and after getting the user id (with SUPHP, or fastcgi for example) (setuid maybe ?) they are moving to the right cpuset) Im migration all "users" on their own cgroup (inside several cpusets), confining them on 1 or 2 cpus. (having 10 groups of 1 cpu each) Why create one cgroup for each user ? Im worried about "confining" 1 fake node memory block per cpuset and limiting users (all user processes) to a maximum of 512M of ram. Any better way of doing this ? Tks!! Rafael Tinoco On Fri, Mar 12, 2010 at 3:52 AM, Balbir Singh <[email protected]> wrote: > On Fri, Mar 12, 2010 at 12:10 PM, Rafael Tinoco > <[email protected]> wrote: >> Hello, >> >> I'm using cgroups for lots and lots of users per server (2.000 or more). >> The problem is, I'm using one cgroup per user (for memory reasons). >> >> With that in mind I was able to see that: >> >> cgconfigparser is not able to handle more than 1031 groups inside one >> /etc/cgconfig.conf. >> >> Unfortunately I'm not good using yacc or lex, so, is there a place >> where I could make this "limit" higher ? >> > > If you are building from the source, you should be able to modify > MAX_CGROUPS in src/config.c to 2048 or more depending on your need and > see if that works. When you say memory reasons, do you mean for memory > cgroup isolation? I'd be interested in any feedback you have about > libcgroup or the controllers in general > > Balbir Singh. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Libcg-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libcg-devel > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
