lkml.org 
[lkml]   [2023]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Patch v3 3/6] sched/fair: Implement prefer sibling imbalance calculation between asymmetric groups
From
Date
On Fri, 2023-07-14 at 13:44 -0700, Tim Chen wrote:
> > >
> > > +static inline long sibling_imbalance(struct lb_env *env,
> > > + struct sd_lb_stats *sds,
> > > + struct sg_lb_stats *busiest,
> > > + struct sg_lb_stats *local)
> > > +{
> > > + int ncores_busiest, ncores_local;
> > > + long imbalance;
> >
> > can imbalance be unsigned int or unsigned long? as sum_nr_running is unsigned int.
>
> It could be made unsigned long.
>
>
Though in theory the imbalance can be both positive or negative. We are
considering only positive imbalance here as we only pull task to local group
and do not push task from local group.

Tim

\
 
 \ /
  Last update: 2023-07-16 20:52    [W:0.071 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site