Re: [Xen-devel] [PATCH 60/60] xen/sched: add scheduling granularity enum

2019-07-19 Thread Dario Faggioli
On Tue, 2019-05-28 at 12:33 +0200, Juergen Gross wrote: > Add a scheduling granularity enum ("cpu", "core", "socket") for > specification of the scheduling granularity. Initially it is set to > "cpu", this can be modified by the new boot parameter (x86 only) > "sched-gran". > > According to the

Re: [Xen-devel] [PATCH 60/60] xen/sched: add scheduling granularity enum

2019-05-28 Thread Juergen Gross
On 28/05/2019 13:51, Jan Beulich wrote: On 28.05.19 at 12:33, wrote: >> @@ -61,6 +62,23 @@ unsigned int sched_granularity = 1; >> bool sched_disable_smt_switching; >> cpumask_var_t sched_res_mask; >> >> +#ifdef CONFIG_X86 >> +static int __init sched_select_granularity(const char *str) >>

Re: [Xen-devel] [PATCH 60/60] xen/sched: add scheduling granularity enum

2019-05-28 Thread Jan Beulich
>>> On 28.05.19 at 12:33, wrote: > @@ -61,6 +62,23 @@ unsigned int sched_granularity = 1; > bool sched_disable_smt_switching; > cpumask_var_t sched_res_mask; > > +#ifdef CONFIG_X86 > +static int __init sched_select_granularity(const char *str) > +{ > +if (strcmp("cpu", str) == 0) > +

[Xen-devel] [PATCH 60/60] xen/sched: add scheduling granularity enum

2019-05-28 Thread Juergen Gross
Add a scheduling granularity enum ("cpu", "core", "socket") for specification of the scheduling granularity. Initially it is set to "cpu", this can be modified by the new boot parameter (x86 only) "sched-gran". According to the selected granularity sched_granularity is set after all cpus are