Re: [systemd-devel] Limiting resources

2011-02-23 Thread Lennart Poettering
On Wed, 23.02.11 09:43, Mike Kazantsev ([email protected]) wrote: > > CPUShares=2048 > > CPUSetCPUs=2,3 > > > > which would implicitly add "cpu" and "cpuset" to the list the user can > > otherwise control with ControlGroup=, and then write "2048" resp. "2,3" > > to the cpu.shares resp. cpuset.

Re: [systemd-devel] Limiting resources

2011-02-22 Thread Mike Kazantsev
On Tue, 22 Feb 2011 14:37:41 +0100 Lennart Poettering wrote: > On Tue, 22.02.11 12:33, Cristian Patrascu ([email protected]) > wrote: > ... > > I'd be happy to merge a patch that adds native switches to systemd for > the most relevant cgroup settings of the various hierarchies. Fo

Re: [systemd-devel] Limiting resources

2011-02-22 Thread Lennart Poettering
On Tue, 22.02.11 12:33, Cristian Patrascu ([email protected]) wrote: > Hi! > > I have some questions regarding the options in a .service that can > limit the resources of an application specified in ExecStart: > 1. For memory resource I know there is the "LimitAS" option, but > wha

Re: [systemd-devel] Limiting resources

2011-02-22 Thread Daniel Poelzleithner
On 02/22/2011 11:33 AM, Cristian Patrascu wrote: > 2. If there is such an option, is there a way to read the specified cpu > limit from the control group hierarchy? If you put a cpu.share value in the cpu cgroup, all processes in that group have a weight of that value. read the cgroup docs how th

[systemd-devel] Limiting resources

2011-02-22 Thread Cristian Patrascu
Hi! I have some questions regarding the options in a .service that can limit the resources of an application specified in ExecStart: 1. For memory resource I know there is the "LimitAS" option, but what about limiting the CPU, is there any option? For CPU limiting I'm interested in specifying