sched/balancing: Periodically decay max cost of idle balance
This patch builds on patch 2 and periodically decays that max value to do idle balancing per sched domain by approximately 1% per second. Also decay the rq's max_idle_balance_cost value. Signed-off-by: Jason Low <jason.low2@hp.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1379096813-3032-4-git-send-email-jason.low2@hp.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
		
					parent
					
						
							
								9bd721c55c
							
						
					
				
			
			
				commit
				
					
						f48627e686
					
				
			
		
					 4 changed files with 38 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -810,7 +810,10 @@ struct sched_domain {
 | 
			
		|||
	unsigned int nr_balance_failed; /* initialise to 0 */
 | 
			
		||||
 | 
			
		||||
	u64 last_update;
 | 
			
		||||
 | 
			
		||||
	/* idle_balance() stats */
 | 
			
		||||
	u64 max_newidle_lb_cost;
 | 
			
		||||
	unsigned long next_decay_max_lb_cost;
 | 
			
		||||
 | 
			
		||||
#ifdef CONFIG_SCHEDSTATS
 | 
			
		||||
	/* load_balance() stats */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue