[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: CGroups and SystemD in Fedora 18




----- Original Message -----
> 
> Hey Mark,
> 
> 
> Rob did some work to get a preliminary idea of what would be needed
> for CGroups to work on F18 with the new Systemd/Dracut.
> Let me know if you can spare some time to dig deeper.
> 

I don't know that there's a strong need to modify the way systemd interacts with cgroup setup to get OpenShift to work.

I originally joined the cgroups for openshift because it simplified my code.  The subsystems are well defined now.  It shouldn't be too hard to create the needed groups in the stock subsystem grouping.

I think the only real interaction with these is in oo-admin-ctl-cgroups (starting them on boot or new gear, stopping them on shutdown or gear removal).

I can make a stab at refactoring to use the stock group tree.

- Mark

> 
> Thanks
> Krishna
> 
> 
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=875531
> 
> Scope:
> 
> Use cgroup tools instead of file system access so that it works
> regardless of how cgroups was bootstrapped or configured.
> 
> The resulting code will be identical on RHEL 6 and F17/F18 and does
> not require branching
> 
> 1. libcgroup (RHEL6, F17, F18, etc...) and libcgroup-tools (F17, F18)
> 
> 2. lssubsys to determine the set of cgroups subsystems.
> 
> 2.a. Check that the requirements for Openshift are met.
> 
> 3. Continue to populate /etc/cgrules.conf using the same format we do
> today.
> 
> 4. On RHEL 6, continue to manage /etc/cgconfig.conf on Hosted and
> Enterprise but don't touch it on F17/F18.
> 
> 5. Use lscgroup to determine if a gear has cgroups
> 
> 6. Use cgget and cgset to access gear cgroup parameters.
> 
> 6.a: Example:
> cgget -r cpu.cfs_period_us
> /openshift/3d1131c867dd4dabbe814d037fdcd3ec
> 
> _______________________________________________
> dev mailing list
> dev lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]