Re: [PATCH] xen: credit2: respect credit2_runqueue=all when arranging runqueues

2022-10-03 Thread Juergen Gross
On 20.09.22 15:23, Marek Marczykowski-Górecki wrote: On Tue, Sep 20, 2022 at 11:06:57AM +0200, Jan Beulich wrote: On 19.09.2022 17:09, Marek Marczykowski-Górecki wrote: --- a/xen/common/sched/credit2.c +++ b/xen/common/sched/credit2.c @@ -996,9 +996,13 @@ cpu_add_to_runqueue(const struct schedu

Re: [PATCH] xen: credit2: respect credit2_runqueue=all when arranging runqueues

2022-09-20 Thread Marek Marczykowski-Górecki
On Tue, Sep 20, 2022 at 11:06:57AM +0200, Jan Beulich wrote: > On 19.09.2022 17:09, Marek Marczykowski-Górecki wrote: > > --- a/xen/common/sched/credit2.c > > +++ b/xen/common/sched/credit2.c > > @@ -996,9 +996,13 @@ cpu_add_to_runqueue(const struct scheduler *ops, > > unsigned int cpu) > >

Re: [PATCH] xen: credit2: respect credit2_runqueue=all when arranging runqueues

2022-09-20 Thread Jan Beulich
On 19.09.2022 17:09, Marek Marczykowski-Górecki wrote: > --- a/xen/common/sched/credit2.c > +++ b/xen/common/sched/credit2.c > @@ -996,9 +996,13 @@ cpu_add_to_runqueue(const struct scheduler *ops, > unsigned int cpu) > * > * Otherwise, let's try to make sure that siblin

[PATCH] xen: credit2: respect credit2_runqueue=all when arranging runqueues

2022-09-19 Thread Marek Marczykowski-Górecki
Documentation for credit2_runqueue=all says it should create one queue for all pCPUs on the host. But since introduction sched_credit2_max_cpus_runqueue, it actually created separate runqueue per socket, even if the CPUs count is below sched_credit2_max_cpus_runqueue. Adjust the condition to skip

[PATCH] xen: credit2: respect credit2_runqueue=all when arranging runqueues

2022-09-19 Thread Marek Marczykowski-Górecki
Documentation for credit2_runqueue=all says it should create one queue for all pCPUs on the host. But since introduction sched_credit2_max_cpus_runqueue, it actually created separate runqueue per socket, even if the CPUs count is below sched_credit2_max_cpus_runqueue. Adjust the condition to skip