sched: Set sched_nr_migrate back to 32 on RT for Android
Android isn't a real-time userspace and has lots of processes, which makes the normal sched_nr_migrate value of 32 more appealing. In addition, there's no observed latency reduction from using a sched_nr_migrate value of 8, probably because the shallowest idle state on mobile CPUs takes longer to enter/exit than it takes for the scheduler to do a load balance run, so our tail end latency is limited by cpuidle anyway.
This commit is contained in:
parent
bc903594c9
commit
0b24a687cf
1 changed files with 4 additions and 0 deletions
|
@ -80,7 +80,11 @@ EXPORT_SYMBOL_GPL(sysctl_sched_features);
|
|||
* Number of tasks to iterate in a single balance run.
|
||||
* Limited because this is done with IRQs disabled.
|
||||
*/
|
||||
#if !defined(CONFIG_ANDROID)
|
||||
const_debug unsigned int sysctl_sched_nr_migrate = 32;
|
||||
#else
|
||||
const_debug unsigned int sysctl_sched_nr_migrate = 8;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* period over which we measure -rt task CPU usage in us.
|
||||
|
|
Loading…
Add table
Reference in a new issue