"The most anticipated fix in this pull request is probably the horrible build
 fix for the RANDSTRUCT fail that didn't make -rc2. Also included is the cleanup
 that removes those BUILD_BUG_ON()s and replaces it with ugly unions.

 Also included is the try_to_wake_up() race fix that was first triggered by
 Paul's RCU-torture runs, but was independently hit by Dave Chinner's fstest
 runs as well."

Signed-off-by: Ingo Molnar <mingo@kernel.org>
-----BEGIN PGP SIGNATURE-----

iQJFBAABCgAvFiEEBpT5eoXrXCwVQwEKEnMQ0APhK1gFAl743b8RHG1pbmdvQGtl
cm5lbC5vcmcACgkQEnMQ0APhK1izkw//fBZDzF+y7o/RgBSY57qQ3/VYVl8d5v+V
nPT65NirFPN0GPcIm3OY94XhKwwVUg5XijIr8SBlJM/zGUnmLqZdIH+MwJ195lOl
r9Myc2FzrJEiMl0Z98ehdhNWSzIiQrqJSAL/16IpEsOMoeugjJfFIGw+CbcZs3HF
2aH+ZXiGb5kDP5tFbZ3hhN8cKfiZVJTCv69h70lqr0KzBmbSmreyTmBo1qv1rWyt
C+xcjDXV1qzR87nyNIaiSv7jDM6zsfyuiRfh5L9nJI+PW1oo5MRITntXcd4zGBaT
lNDgaYenHUq/sMZCldc7zOVFQmmIBwdT4LoLo8eQHqh4JJ6b+AUJpU824x4kRkvn
6dF9HPppHH1OXu/2q7/cOdImheY4lArYY8xXdYgx7bnBEASLzIGgCwttDRlidrnK
HPNMUdHhwurkXXMA+NEbPESmgzOt0A4elEpdPUVv2ueZ8mKTe2PTfSaLRQywnY2F
G67nXBVgFOIBUedcNybmJi88579tMNH8D9OgYyp8Sza2EbWWPS+jOOfC3KYfJh2m
llamp4at2XaAhwHa8ec4f5gyiFvcYAtydEY71X+yALtIiLErBb3ovqyf1vVTarWf
4YVRT8z7adyMWeByZVn+SyYZopH0c6XlTkYEHFnySJ9yeCUjH/OmHGyZvFnaqKwg
gskxK72jgbg=
=umUK
-----END PGP SIGNATURE-----
sched/cfs: change initial value of runnable_avg

Some performance regression on reaim benchmark have been raised with
  commit 070f5e860ee2 ("sched/fair: Take into account runnable_avg to classify group")

The problem comes from the init value of runnable_avg which is initialized
with max value. This can be a problem if the newly forked task is finally
a short task because the group of CPUs is wrongly set to overloaded and
tasks are pulled less agressively.

Set initial value of runnable_avg equals to util_avg to reflect that there
is no waiting time so far.

Fixes: 070f5e860ee2 ("sched/fair: Take into account runnable_avg to classify group")
Reported-by: kernel test robot <rong.a.chen@intel.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200624154422.29166-1-vincent.guittot@linaro.org
1 file changed