Re: [RFC PATCH] sched: introduce group balancer

From: Peter Zijlstra
Date: Thu Jan 13 2022 - 04:53:13 EST


On Thu, Jan 13, 2022 at 03:18:01PM +0800, 王贇 wrote:

> > > How To Use:
> > >
> > > To create partition, for example run:
> > > echo disable > /proc/gb_ctrl
> > > echo "0-15;16-31;32-47;48-63;" > /proc/gb_ctrl
> > > echo enable > /proc/gb_ctrl
> >
> > That's just never going to happen; please look at the cpuset partition
> > stuff.
>
> Could you please give more details in here?
>
> We actually looking forward a way to config several cpuset partition
> together, like here 4 cpuset partitions 0-15, 16-31, 32-47 and 48-63,
> but can't find any existing approach...

You could extend the partitions support:

https://lkml.kernel.org/r/20211205183220.818872-1-longman@xxxxxxxxxx

And have a parent partition type that soft balances between child
partitions or something.