public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* A question regarding TG load tracking functions in fair.c
@ 2014-02-28 12:04 Matthew Leach
  2014-02-28 12:29 ` Peter Zijlstra
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Leach @ 2014-02-28 12:04 UTC (permalink / raw)
  To: Paul Turner; +Cc: linux-kernel, Dietmar Eggemann, Peter Ziljstra

Hi Paul,

I have a question regarding two lines of code in the functions
__update_cfs_rq_tg_load_contrib and __update_tg_runnable_avg. AFAICS
these functions update a load-tracking signal for the local RQ and an
aggregated signal in the TG for all RQs that belong to this TG. The
update is surrounded by conditions:

  if (abs(contrib) > cfs_rq->tg_runnable_contrib / 64) {

for __update_tg_runnable_avg and

  if (force_update || abs(tg_contrib) > cfs_rq->tg_load_contrib / 8) {

for __update_cfs_rq_tg_load_contrib. Is this an optimisation to prevent
the signals being updated for small variations? Also, could you please
shed some light on the specific numbers used?

Thanks,
-- 
Matt


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-28 12:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 12:04 A question regarding TG load tracking functions in fair.c Matthew Leach
2014-02-28 12:29 ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox