sched/walt: Increase the number of history samples

The number history samples should be raised to a higher value so that an
active history of 100ms is considered in accounting task demand. Raise
the history size from 5 to 8 given the default windows size is 8ms. This
will capture 64ms of history for 8ms windows, and 128ms of history for
16ms windows, granting a compromise to prevent further code bloat.

Change-Id: I63ad5b2a20c9a32d3a65448a78d6aec98afe6ad5
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
This commit is contained in:
Shaleen Agrawal 2021-12-06 16:36:44 -08:00 committed by Rishabh Bhatnagar
parent 4735599f51
commit 4a531492c9
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ enum task_boost_type {
};
#define WALT_NR_CPUS 8
#define RAVG_HIST_SIZE_MAX 5
#define RAVG_HIST_SIZE_MAX 8
#define NUM_BUSY_BUCKETS 10
struct walt_related_thread_group {

View File

@ -154,7 +154,7 @@ static inline void release_rq_locks_irqrestore(const cpumask_t *cpus,
static unsigned int walt_cpu_high_irqload;
static __read_mostly unsigned int sched_ravg_hist_size = 5;
static __read_mostly unsigned int sched_ravg_hist_size = RAVG_HIST_SIZE_MAX;
static __read_mostly unsigned int sched_io_is_busy = 1;