Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power for Power7

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joel Schopp
Date: Wednesday, January 20, 2010 - 3:36 pm

>> +
I will change it to cpu_thread_in_core()
You are better than checkpatch.pl, will fix.
Right now it's 100% always giving us threads.  My development version of 
the patch had a BUG_ON() to check this.  I expect this to stay the case 
in the future as the name of the function is arch_scale_smt_power(), 
which clearly denotes threads are expected.

I am not stuck on the names, I'll change it to sibling instead of cpu2 
and sibling_map instead of cpu_map.  It seems clear to me either way.

As for testing the ! case it seems funcationally equivalent, and mine 
seems less confusing.

Having a ppc.md hook with exactly 1 user is pointless, especially since 
you'll still have to calculate the weight with the ability to 
dynamically disable smt.

It's every load balance, which is to say not hot, but fairly frequent.  
I haven't been able to measure an impact from doing very hairy 
calculations (without actually changing the weights) here vs not having 
it at all in actual end workloads.
Yes :)  Originally I had done different weightings for each of the 3 
cases, which gained in some workloads but regressed some others.   But 
since I'm not doing that anymore I'll fold it down to > 1
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] sched: arch_scale_smt_powers, Joel Schopp, (Wed Jan 20, 1:00 pm)
Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power fo ..., Benjamin Herrenschmidt, (Wed Jan 20, 2:33 pm)
Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power fo ..., Joel Schopp, (Wed Jan 20, 3:36 pm)
[tip:sched/core] sched: Fix the place where group powers a ..., tip-bot for Gautham ..., (Thu Jan 21, 6:54 am)
Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power fo ..., Benjamin Herrenschmidt, (Sat Jan 23, 8:00 pm)
Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power fo ..., Benjamin Herrenschmidt, (Mon Jan 25, 9:23 pm)
[PATCHv2 0/2] sched: arch_scale_smt_powers v2, Joel Schopp, (Tue Jan 26, 4:27 pm)
[PATCHv2 1/2] sched: enable ARCH_POWER, Joel Schopp, (Tue Jan 26, 4:28 pm)
Re: [PATCHv2 2/2] powerpc: implement arch_scale_smt_power ..., Benjamin Herrenschmidt, (Tue Jan 26, 5:52 pm)
[PATCHv3 0/2] sched: arch_scale_smt_powers, Joel Schopp, (Thu Jan 28, 4:20 pm)
[PATCHv3 1/2] sched: enable ARCH_POWER, Joel Schopp, (Thu Jan 28, 4:20 pm)
Re: [PATCHv3 2/2] powerpc: implement arch_scale_smt_power ..., Benjamin Herrenschmidt, (Thu Jan 28, 6:23 pm)
Re: [PATCHv2 2/2] powerpc: implement arch_scale_smt_power ..., Benjamin Herrenschmidt, (Thu Jan 28, 6:23 pm)
[PATCHv4 0/2] sched: arch_scale_smt_powers, Joel Schopp, (Fri Feb 5, 1:57 pm)
[PATCHv4 1/2] sched: enable ARCH_POWER, Joel Schopp, (Fri Feb 5, 1:57 pm)
Re: [PATCHv4 2/2] powerpc: implement arch_scale_smt_power ..., Michael Neuling, (Thu Feb 18, 11:05 pm)
Re: [PATCHv4 2/2] powerpc: implement arch_scale_smt_power ..., Michael Neuling, (Mon Feb 22, 11:08 pm)
Re: [PATCHv4 2/2] powerpc: implement arch_scale_smt_power ..., Michael Neuling, (Tue Feb 23, 11:07 pm)