All of lore.kernel.org
 help / color / mirror / Atom feed
* CPU usage limitation (number of cores)
@ 2016-03-22  8:39 Mahmood Naderan
  2016-03-22 11:50 ` Mahmood Naderan
  0 siblings, 1 reply; 2+ messages in thread
From: Mahmood Naderan @ 2016-03-22  8:39 UTC (permalink / raw)
  To: linux-kernel

Hi,
There is a question about CPU usage limitation and I found no place
for my question other than here.

There are 32 cores in a system (2 cpus each 16 cores) and I want to
limit a user to use only 4 cores (100% usage for that 4 cores). There
are two kernel parameter for that according to the manuals:
cpu.cfs_quota_us and cpu.cfs_period_us

An example on the kernel.org documents says:

With 500ms period and 1000ms quota, the group
can get 2 CPUs worth of runtime every 500ms.
# echo 1000000 > cpu.cfs_quota_us /* quota = 1000ms */
# echo 500000 > cpu.cfs_period_us /* period = 500ms */


I want to know how those ms are determined? In my case, I think the
quota is 32000000 and the period is 4000000. Am I right?
But it doesn't work! and I get an error when I want to start cgroup service



Failed to parse /etc/cgconfig.conf or /etc/cgconfig.d
[FAILED]Starting cgconfig service: /sbin/cgconfigparser; error loading
/etc/cgconfig.conf: Failed to remove a non-empty group



Reference:
https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt




Regards,
Mahmood

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CPU usage limitation (number of cores)
  2016-03-22  8:39 CPU usage limitation (number of cores) Mahmood Naderan
@ 2016-03-22 11:50 ` Mahmood Naderan
  0 siblings, 0 replies; 2+ messages in thread
From: Mahmood Naderan @ 2016-03-22 11:50 UTC (permalink / raw)
  To: linux-kernel

Try #1 to bring the post  up again. Due to the traffic, maybe my
question is ignored :(
Regards,
Mahmood




On Tue, Mar 22, 2016 at 1:09 PM, Mahmood Naderan <mahmood.nt@gmail.com> wrote:
> Hi,
> There is a question about CPU usage limitation and I found no place
> for my question other than here.
>
> There are 32 cores in a system (2 cpus each 16 cores) and I want to
> limit a user to use only 4 cores (100% usage for that 4 cores). There
> are two kernel parameter for that according to the manuals:
> cpu.cfs_quota_us and cpu.cfs_period_us
>
> An example on the kernel.org documents says:
>
> With 500ms period and 1000ms quota, the group
> can get 2 CPUs worth of runtime every 500ms.
> # echo 1000000 > cpu.cfs_quota_us /* quota = 1000ms */
> # echo 500000 > cpu.cfs_period_us /* period = 500ms */
>
>
> I want to know how those ms are determined? In my case, I think the
> quota is 32000000 and the period is 4000000. Am I right?
> But it doesn't work! and I get an error when I want to start cgroup service
>
>
>
> Failed to parse /etc/cgconfig.conf or /etc/cgconfig.d
> [FAILED]Starting cgconfig service: /sbin/cgconfigparser; error loading
> /etc/cgconfig.conf: Failed to remove a non-empty group
>
>
>
> Reference:
> https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt
>
>
>
>
> Regards,
> Mahmood

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-22 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-22  8:39 CPU usage limitation (number of cores) Mahmood Naderan
2016-03-22 11:50 ` Mahmood Naderan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.