mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
[PATCH] Fix boot-time slowdown for measure_migration_cost
This reduces the amount of time the migration cost calculations cost during bootup. Based on numbers by Tony Luck <tony.luck@intel.com>. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
7fcdf327be
commit
70b4d63e98
1 changed files with 3 additions and 3 deletions
|
@ -5141,7 +5141,7 @@ static void init_sched_build_groups(struct sched_group groups[], cpumask_t span,
|
||||||
#define SEARCH_SCOPE 2
|
#define SEARCH_SCOPE 2
|
||||||
#define MIN_CACHE_SIZE (64*1024U)
|
#define MIN_CACHE_SIZE (64*1024U)
|
||||||
#define DEFAULT_CACHE_SIZE (5*1024*1024U)
|
#define DEFAULT_CACHE_SIZE (5*1024*1024U)
|
||||||
#define ITERATIONS 2
|
#define ITERATIONS 1
|
||||||
#define SIZE_THRESH 130
|
#define SIZE_THRESH 130
|
||||||
#define COST_THRESH 130
|
#define COST_THRESH 130
|
||||||
|
|
||||||
|
@ -5480,9 +5480,9 @@ static unsigned long long measure_migration_cost(int cpu1, int cpu2)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Increase the cachesize in 5% steps:
|
* Increase the cachesize in 10% steps:
|
||||||
*/
|
*/
|
||||||
size = size * 20 / 19;
|
size = size * 10 / 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (migration_debug)
|
if (migration_debug)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue