Skip to content

Commit

Permalink
Kernel/sched: Reduce latency for better responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
holyangel authored and Angheloaia Victor committed Mar 26, 2020
1 parent a236df3 commit c750d28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel/sched/fair.c
Expand Up @@ -86,13 +86,13 @@ enum sched_tunable_scaling sysctl_sched_tunable_scaling = SCHED_TUNABLESCALING_L
*
* (default: 0.75 msec * (1 + ilog(ncpus)), units: nanoseconds)
*/
unsigned int sysctl_sched_min_granularity = 750000ULL;
unsigned int normalized_sysctl_sched_min_granularity = 750000ULL;
unsigned int sysctl_sched_min_granularity = 500000ULL;
unsigned int normalized_sysctl_sched_min_granularity = 500000ULL;

/*
* This value is kept at sysctl_sched_latency/sysctl_sched_min_granularity
*/
static unsigned int sched_nr_latency = 8;
static unsigned int sched_nr_latency = 6;

/*
* After fork, child runs first. If set to 0 (default) then
Expand Down Expand Up @@ -142,7 +142,7 @@ int __weak arch_asym_cpu_priority(int cpu)
*
* (default: 5 msec, units: microseconds)
*/
unsigned int sysctl_sched_cfs_bandwidth_slice = 5000UL;
unsigned int sysctl_sched_cfs_bandwidth_slice = 4000UL;
#endif

/*
Expand Down

0 comments on commit c750d28

Please sign in to comment.