[systemd-devel] [PATCH] man: document the slice unit
Lennart Poettering
lennart at poettering.net
Thu Jul 11 15:46:07 PDT 2013
On Thu, 11.07.13 04:47, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:
>
> On Thu, Jul 11, 2013 at 03:02:44AM +0200, Lennart Poettering wrote:
> > On Wed, 10.07.13 02:23, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:
> >
> > > ---
> > > Does this description fit the masterplan? What about units that
> > > systemd will expose for CPU and BlockIO shares, will they still be
> > > 1024 and 1000 based?
> >
> > Yes, they will.
> Thanks, this clarifies things.
>
> I think we could introduce additional syntax using %:
> CPUShares=15%
But what do you do if the percentages don't add up to 100%?
We'll probably have another setting CPUBudget= where you can specify a
floating point value that specifies the maximum number of CPUs a cgroup
can get as hard ceiling. i.e. you could specify CPUBudget=0.33 to grant
a cgroup only 1/3 of one CPU at max. Or CPUBudget=3 to grant a cgroup
access to full 3 CPUs of CPU time.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list