Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
sched: Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AkumaHunt3r committed Jun 18, 2023
1 parent c0c5e5f commit 90680e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ walt_dec_cfs_rq_stats(struct cfs_rq *cfs_rq, struct task_struct *p) {}
*
* (default: 6ms * (1 + ilog(ncpus)), units: nanoseconds)
*/
unsigned int sysctl_sched_latency = 6000000ULL;
unsigned int normalized_sysctl_sched_latency = 6000000ULL;
unsigned int sysctl_sched_latency = 5000000ULL;
unsigned int normalized_sysctl_sched_latency = 5000000ULL;

/*
* Enable/disable honoring sync flag in energy-aware wakeups.
Expand Down Expand Up @@ -131,7 +131,7 @@ static unsigned int sched_nr_latency = 8;
* After fork, child runs first. If set to 0 (default) then
* parent will (try to) run first.
*/
unsigned int sysctl_sched_child_runs_first __read_mostly;
unsigned int sysctl_sched_child_runs_first __read_mostly = 1;

/*
* SCHED_OTHER wake-up granularity.
Expand All @@ -145,7 +145,7 @@ unsigned int sysctl_sched_child_runs_first __read_mostly;
unsigned int sysctl_sched_wakeup_granularity = 1000000UL;
unsigned int normalized_sysctl_sched_wakeup_granularity = 1000000UL;

const_debug unsigned int sysctl_sched_migration_cost = 500000UL;
const_debug unsigned int sysctl_sched_migration_cost = 1000000UL;
DEFINE_PER_CPU_READ_MOSTLY(int, sched_load_boost);

#ifdef CONFIG_SCHED_WALT
Expand Down
6 changes: 3 additions & 3 deletions kernel/sched/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SCHED_FEAT(START_DEBIT, true)
* wakeup-preemption), since its likely going to consume data we
* touched, increases cache locality.
*/
SCHED_FEAT(NEXT_BUDDY, false)
SCHED_FEAT(NEXT_BUDDY, true)

/*
* Prefer to schedule the task that ran last (when we did
Expand All @@ -44,13 +44,13 @@ SCHED_FEAT(LB_BIAS, true)
/*
* Decrement CPU capacity based on time not spent running tasks
*/
SCHED_FEAT(NONTASK_CAPACITY, true)
SCHED_FEAT(NONTASK_CAPACITY, false)

/*
* Queue remote wakeups on the target CPU and process them
* using the scheduler IPI. Reduces rq->lock contention/bounces.
*/
SCHED_FEAT(TTWU_QUEUE, false)
SCHED_FEAT(TTWU_QUEUE, true)

/*
* When doing wakeups, attempt to limit superfluous scans of the LLC domain.
Expand Down

0 comments on commit 90680e3

Please sign in to comment.