lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yp8ico+B8USmi7fY@google.com>
Date:   Tue, 7 Jun 2022 11:03:30 +0100
From:   Vincent Donnefort <vdonnefort@...gle.com>
To:     Vincent Guittot <vincent.guittot@...aro.org>
Cc:     Dietmar Eggemann <dietmar.eggemann@....com>, peterz@...radead.org,
        mingo@...hat.com, linux-kernel@...r.kernel.org,
        morten.rasmussen@....com, chris.redpath@....com,
        qperret@...gle.com, tao.zhou@...ux.dev, kernel-team@...roid.com
Subject: Re: [PATCH v9 2/7] sched/fair: Decay task PELT values during wakeup
 migration

[...]

> > >
> > > > diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
> > > > index bf4a0ec98678..97bc26e5c8af 100644
> > > > --- a/kernel/sched/sched.h
> > > > +++ b/kernel/sched/sched.h
> > > > @@ -648,6 +648,10 @@ struct cfs_rq {
> > > >     int                     runtime_enabled;
> > > >     s64                     runtime_remaining;
> > > >
> > > > +   u64                     throttled_pelt_idle;
> > > > +#ifndef CONFIG_64BIT
> > > > +   u64                     throttled_pelt_idle_copy;
> > > > +#endif
> > > >     u64                     throttled_clock;
> > > >     u64                     throttled_clock_pelt;
> > > >     u64                     throttled_clock_pelt_time;
> > > > @@ -1020,6 +1024,12 @@ struct rq {
> > > >     u64                     clock_task ____cacheline_aligned;
> > > >     u64                     clock_pelt;
> > > >     unsigned long           lost_idle_time;
> > > > +   u64                     clock_pelt_idle;
> > > > +   u64                     enter_idle;
> > > > +#ifndef CONFIG_64BIT
> > > > +   u64                     clock_pelt_idle_copy;
> > > > +   u64                     enter_idle_copy;
> > > > +#endif
> > > >
> > > >     atomic_t                nr_iowait;
> > >
> > > `throttled_pelt_idle`, `clock_pelt_idle` and `enter_idle` are clock
> > > snapshots when cfs_rq resp. rq go idle. But the naming does not really
> > > show this relation. And this makes reading those equations rather difficult.
> > >
> > > What about something like `throttled_clock_pelt_time_enter_idle`,
> > > `clock_pelt_enter_idle`, `clock_enter_idle`? Especially the first one is
> > > too long but something which shows that those are clock snapshots when
> > > enter idle would IMHO augment readability in migrate_se_pelt_lag().
> >
> > What if I drop the "enter"?
> >
> >  clock_idle;
> >  clock_pelt_idle;
> >  throttled_clock_pelt_time_idle;
> 
> and you can even remove the _time for throttled_clock_pelt_idle
> 

Hum, "throttled_clock_pelt" already exists, while what we really snapshot is
"throttled_clock_pelt_time".

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ