cache_hot_time
Hi,
Im catching up on all the scheduler changes, and I noticed some large changes in cache_hot_time. All but ia64 seem to have shifted by 1000. Is this intententional?
Anton
include/linux/topology.h: .cache_hot_time = (5*1000/2), include/asm-i386/topology.h: .cache_hot_time = (10*1000), include/asm-ppc64/topology.h: .cache_hot_time = (10*1000), include/asm-x86_64/topology.h: .cache_hot_time = (10*1000), include/asm-ia64/topology.h: .cache_hot_time = (10*1000000), include/asm-ia64/topology.h: .cache_hot_time = (10*1000000),
Quoted 6 lines · Anton Blanchard
Hi,
Im catching up on all the scheduler changes, and I noticed some large changes in
cache_hot_time. All but ia64 seem to have shifted by 1000. Is this intententional?
Don't think so. They should be all in units of sched_clock() (ie. ns), so 10ms and 2.5ms are surely the intended values here.
Quoted 8 lines
Anton
include/linux/topology.h: .cache_hot_time = (5*1000/2), include/asm-i386/topology.h: .cache_hot_time = (10*1000), include/asm-ppc64/topology.h: .cache_hot_time = (10*1000), include/asm-x86_64/topology.h: .cache_hot_time = (10*1000), include/asm-ia64/topology.h: .cache_hot_time = (10*1000000), include/asm-ia64/topology.h: .cache_hot_time = (10*1000000),
PATCH 1/1 reset cache_hot_time
Quoted 3 lines
Don't think so. They should be all in units of
sched_clock()(ie. ns), so 10ms and 2.5ms are surely the intended values here.
OK how does this look?
Anton
--
Reset cache_hot_time to sane values (in the ms range). Some recent changes resulted in values in the us range.
===== include/asm-i386/topology.h 1.12 vs edited =====
include/asm-i386/topology.h +1 -1
@@ -78,7 +78,7 @@ .max_interval = 32, \ .busy_factor = 32, \ .imbalance_pct = 125, \ - .cache_hot_time = (10*1000), \ + .cache_hot_time = (10*1000000), \ .cache_nice_tries = 1, \ .per_cpu_gain =100 , \ .flags = SD_LOAD_BALANCE \
===== include/asm-ppc64/topology.h 1.13 vs edited =====
include/asm-ppc64/topology.h +1 -1
@@ -46,7 +46,7 @@ .max_interval = 32, \ .busy_factor = 32, \ .imbalance_pct = 125, \ - .cache_hot_time = (10*1000), \ + .cache_hot_time = (10*1000000), \ .cache_nice_tries = 1, \ .per_cpu_gain =100 , \ .flags = SD_LOAD_BALANCE \
===== include/asm-x86_64/topology.h 1.13 vs edited =====
include/asm-x86_64/topology.h +1 -1
@@ -42,7 +42,7 @@ .max_interval = 32, \ .busy_factor = 32, \ .imbalance_pct = 125, \ - .cache_hot_time = (10*1000), \ + .cache_hot_time = (10*1000000), \ .cache_nice_tries = 1, \ .per_cpu_gain =100 , \ .flags = SD_LOAD_BALANCE \
===== include/linux/topology.h 1.6 vs edited =====
include/linux/topology.h +1 -1
@@ -113,7 +113,7 @@ .max_interval = 4, \ .busy_factor = 64, \ .imbalance_pct = 125, \ - .cache_hot_time = (5*1000/2), \ + .cache_hot_time = (5*1000000/2), \ .cache_nice_tries = 1, \ .per_cpu_gain =100 , \ .flags = SD_LOAD_BALANCE \
Re: [PATCH] reset cache_hot_time
Quoted 8 lines · Anton Blanchard
Quoted 4 lines
Don't think so. They should be all in units of
sched_clock()(ie. ns), so 10ms and 2.5ms are surely the intended values here.OK how does this look?
Seems like the right thing to do. Andrew's picked it up in rc1-mm3. Thanks.