git: kernel - Fix uload calculation in usched_dfly
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Aug 15 21:59:00 PDT 2017
commit 7df82bbe6aadd740b9a45f12e1bce1bf3a237db7
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Aug 15 20:29:06 2017 -0700
kernel - Fix uload calculation in usched_dfly
* When a very large number of processes are runnable (greater than 32767),
the uload rollup field in dfly_pcpu[] can overflow. In addition, the
delta calculation for individual processes can also overflow.
Fix both cases.
* Symptoms: one cpu starts getting an excessive percentage of the process
load as the system attempts to continuously rebalance into it.
Summary of changes:
sys/kern/usched_dfly.c | 46 +++++++++++++++++++++++++++++++---------------
1 file changed, 31 insertions(+), 15 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7df82bbe6aadd740b9a45f12e1bce1bf3a237db7
--
DragonFly BSD source repository
More information about the Commits
mailing list