aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorPaul Reioux <reioux@gmail.com>2013-09-08 17:05:40 -0500
committerJohn Brewer <gzroms@hotmail.com>2014-08-03 20:46:24 -0400
commita168430d2c367fe98d09f81932313c73c86ef8aa (patch)
treea641f8625d873e9cf393dc8bd7ebe1e8fad2562d /net/lapb/lapb_timer.c
parentf2e42ab7d5063bf6b7b6fed99231b49c43ce9bb8 (diff)
sched: Consider max cost of idle balance per sched domain
Date Thu, 29 Aug 2013 13:05:35 -0700 In this patch, we keep track of the max cost we spend doing idle load balancing for each sched domain. If the avg time the CPU remains idle is less then the time we have already spent on idle balancing + the max cost of idle balancing in the sched domain, then we don't continue to attempt the balance. We also keep a per rq variable, max_idle_balance_cost, which keeps track of the max time spent on newidle load balances throughout all its domains. Additionally, we swap sched_migration_cost used in idle_balance for rq->max_idle_balance_cost. By using the max, we avoid overrunning the average. This further reduces the chance we attempt balancing when the CPU is not idle for longer than the cost to balance. I also limited the max cost of each domain to 5*sysctl_sched_migration_cost as a way to prevent the max from becoming too inflated. Signed-off-by: Jason Low <jason.low2@hp.com> backported for Linux 3.4 Signed-off-by: Paul Reioux <reioux@gmail.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions