Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-08 Thread Peter Zijlstra
On Thu, Jan 07, 2021 at 06:47:57AM -0800, Paul E. McKenney wrote: > > I don't really see the use of the ranges thing, CPU enumeration just > > isn't sane like that. Also, I should really add that randomization pass > > to the CPU enumeration :-) > > Please don't!!! Why not, the BIOS more or less

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-08 Thread Peter Zijlstra
On Wed, Jan 06, 2021 at 01:16:50PM -0800, Yury Norov wrote: > On Wed, Jan 6, 2021 at 1:50 AM Peter Zijlstra wrote: > > Aside from the comments Yury made, on how all this is better in > > bitmap_parselist(), how about doing s/last/N/ here? For me something > > like: "4-N" reads much saner than

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-07 Thread Paul E. McKenney
On Thu, Jan 07, 2021 at 03:59:42PM +0100, Peter Zijlstra wrote: > On Thu, Jan 07, 2021 at 06:47:57AM -0800, Paul E. McKenney wrote: > > > I don't really see the use of the ranges thing, CPU enumeration just > > > isn't sane like that. Also, I should really add that randomization pass > > > to the

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-07 Thread Paul E. McKenney
On Thu, Jan 07, 2021 at 03:18:47PM +0100, Peter Zijlstra wrote: > On Wed, Jan 06, 2021 at 01:16:50PM -0800, Yury Norov wrote: > > On Wed, Jan 6, 2021 at 1:50 AM Peter Zijlstra wrote: > > > > Aside from the comments Yury made, on how all this is better in > > > bitmap_parselist(), how about doing

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-07 Thread Paul E. McKenney
On Thu, Jan 07, 2021 at 03:18:47PM +0100, Peter Zijlstra wrote: > On Wed, Jan 06, 2021 at 01:16:50PM -0800, Yury Norov wrote: > > On Wed, Jan 6, 2021 at 1:50 AM Peter Zijlstra wrote: > > > > Aside from the comments Yury made, on how all this is better in > > > bitmap_parselist(), how about doing

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-06 Thread Yury Norov
On Wed, Jan 6, 2021 at 1:50 AM Peter Zijlstra wrote: > > On Tue, Jan 05, 2021 at 04:49:55PM -0800, paul...@kernel.org wrote: > > From: Paul Gortmaker > > > > It seems that a common configuration is to use the 1st couple cores > > for housekeeping tasks, and or driving a busy peripheral that

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-06 Thread Paul Gortmaker
[Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications] On 06/01/2021 (Wed 10:49) Peter Zijlstra wrote: > On Tue, Jan 05, 2021 at 04:49:55PM -0800, paul...@kernel.org wrote: > > From: Paul Gortmaker > > > > It seems that a common

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-06 Thread Peter Zijlstra
On Tue, Jan 05, 2021 at 04:49:55PM -0800, paul...@kernel.org wrote: > From: Paul Gortmaker > > It seems that a common configuration is to use the 1st couple cores > for housekeeping tasks, and or driving a busy peripheral that generates > a lot of interrupts, or something similar. > > This

Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-06 Thread Yury Norov
On Tue, Jan 5, 2021 at 4:49 PM wrote: > > From: Paul Gortmaker > > It seems that a common configuration is to use the 1st couple cores > for housekeeping tasks, and or driving a busy peripheral that generates > a lot of interrupts, or something similar. > > This tends to leave the remaining ones

[PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications

2021-01-05 Thread paulmck
From: Paul Gortmaker It seems that a common configuration is to use the 1st couple cores for housekeeping tasks, and or driving a busy peripheral that generates a lot of interrupts, or something similar. This tends to leave the remaining ones to form a pool of similarly configured cores to take