Re: balance storm

2014-05-29 Thread Libo Chen
On 2014/5/28 19:55, Mike Galbraith wrote: > On Wed, 2014-05-28 at 19:43 +0800, Libo Chen wrote: >> On 2014/5/28 17:08, Thomas Gleixner wrote: >>> On Wed, 28 May 2014, Libo Chen wrote: >>> On 2014/5/28 9:53, Mike Galbraith wrote: > On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: >

Re: balance storm

2014-05-29 Thread Libo Chen
On 2014/5/28 17:08, Thomas Gleixner wrote: > On Wed, 28 May 2014, Libo Chen wrote: > >> On 2014/5/28 9:53, Mike Galbraith wrote: >>> On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: >>> oh yes, no tsc only hpet in my box. >>> >>> Making poor E5-2658 box a crippled wreck. >> >> yes,it is.

Re: balance storm

2014-05-29 Thread Libo Chen
On 2014/5/28 17:08, Thomas Gleixner wrote: On Wed, 28 May 2014, Libo Chen wrote: On 2014/5/28 9:53, Mike Galbraith wrote: On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc only hpet in my box. Making poor E5-2658 box a crippled wreck. yes,it is. But cpu usage will be

Re: balance storm

2014-05-29 Thread Libo Chen
On 2014/5/28 19:55, Mike Galbraith wrote: On Wed, 2014-05-28 at 19:43 +0800, Libo Chen wrote: On 2014/5/28 17:08, Thomas Gleixner wrote: On Wed, 28 May 2014, Libo Chen wrote: On 2014/5/28 9:53, Mike Galbraith wrote: On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc only

Re: balance storm

2014-05-28 Thread Mike Galbraith
On Wed, 2014-05-28 at 19:43 +0800, Libo Chen wrote: > On 2014/5/28 17:08, Thomas Gleixner wrote: > > On Wed, 28 May 2014, Libo Chen wrote: > > > >> On 2014/5/28 9:53, Mike Galbraith wrote: > >>> On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: > >>> > oh yes, no tsc only hpet in my box.

Re: balance storm

2014-05-28 Thread Libo Chen
On 2014/5/28 17:08, Thomas Gleixner wrote: > On Wed, 28 May 2014, Libo Chen wrote: > >> On 2014/5/28 9:53, Mike Galbraith wrote: >>> On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: >>> oh yes, no tsc only hpet in my box. >>> >>> Making poor E5-2658 box a crippled wreck. >> >> yes,it is.

Re: balance storm

2014-05-28 Thread Borislav Petkov
On Wed, May 28, 2014 at 12:30:19PM +0200, Peter Zijlstra wrote: > On Wed, May 28, 2014 at 11:08:40AM +0200, Thomas Gleixner wrote: > > On Wed, 28 May 2014, Libo Chen wrote: > > > > > On 2014/5/28 9:53, Mike Galbraith wrote: > > > > On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: > > > > > >

Re: balance storm

2014-05-28 Thread Peter Zijlstra
On Wed, May 28, 2014 at 11:08:40AM +0200, Thomas Gleixner wrote: > On Wed, 28 May 2014, Libo Chen wrote: > > > On 2014/5/28 9:53, Mike Galbraith wrote: > > > On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: > > > > > >> oh yes, no tsc only hpet in my box. > > > > > > Making poor E5-2658 box

Re: balance storm

2014-05-28 Thread Thomas Gleixner
On Wed, 28 May 2014, Libo Chen wrote: > On 2014/5/28 9:53, Mike Galbraith wrote: > > On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: > > > >> oh yes, no tsc only hpet in my box. > > > > Making poor E5-2658 box a crippled wreck. > > yes,it is. But cpu usage will be down from 15% to 5% when

Re: balance storm

2014-05-28 Thread Mike Galbraith
On Wed, 2014-05-28 at 14:54 +0800, Libo Chen wrote: > On 2014/5/28 9:53, Mike Galbraith wrote: > > On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: > > > >> oh yes, no tsc only hpet in my box. > > > > Making poor E5-2658 box a crippled wreck. > > yes,it is. But cpu usage will be down from

Re: balance storm

2014-05-28 Thread Libo Chen
On 2014/5/28 9:53, Mike Galbraith wrote: > On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: > >> oh yes, no tsc only hpet in my box. > > Making poor E5-2658 box a crippled wreck. yes,it is. But cpu usage will be down from 15% to 5% when binding cpu, so maybe read_hpet is not the root cause.

Re: balance storm

2014-05-28 Thread Libo Chen
On 2014/5/28 9:53, Mike Galbraith wrote: On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc only hpet in my box. Making poor E5-2658 box a crippled wreck. yes,it is. But cpu usage will be down from 15% to 5% when binding cpu, so maybe read_hpet is not the root cause.

Re: balance storm

2014-05-28 Thread Mike Galbraith
On Wed, 2014-05-28 at 14:54 +0800, Libo Chen wrote: On 2014/5/28 9:53, Mike Galbraith wrote: On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc only hpet in my box. Making poor E5-2658 box a crippled wreck. yes,it is. But cpu usage will be down from 15% to 5% when

Re: balance storm

2014-05-28 Thread Thomas Gleixner
On Wed, 28 May 2014, Libo Chen wrote: On 2014/5/28 9:53, Mike Galbraith wrote: On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc only hpet in my box. Making poor E5-2658 box a crippled wreck. yes,it is. But cpu usage will be down from 15% to 5% when binding cpu,

Re: balance storm

2014-05-28 Thread Peter Zijlstra
On Wed, May 28, 2014 at 11:08:40AM +0200, Thomas Gleixner wrote: On Wed, 28 May 2014, Libo Chen wrote: On 2014/5/28 9:53, Mike Galbraith wrote: On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc only hpet in my box. Making poor E5-2658 box a crippled wreck.

Re: balance storm

2014-05-28 Thread Borislav Petkov
On Wed, May 28, 2014 at 12:30:19PM +0200, Peter Zijlstra wrote: On Wed, May 28, 2014 at 11:08:40AM +0200, Thomas Gleixner wrote: On Wed, 28 May 2014, Libo Chen wrote: On 2014/5/28 9:53, Mike Galbraith wrote: On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc

Re: balance storm

2014-05-28 Thread Libo Chen
On 2014/5/28 17:08, Thomas Gleixner wrote: On Wed, 28 May 2014, Libo Chen wrote: On 2014/5/28 9:53, Mike Galbraith wrote: On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc only hpet in my box. Making poor E5-2658 box a crippled wreck. yes,it is. But cpu usage will be

Re: balance storm

2014-05-28 Thread Mike Galbraith
On Wed, 2014-05-28 at 19:43 +0800, Libo Chen wrote: On 2014/5/28 17:08, Thomas Gleixner wrote: On Wed, 28 May 2014, Libo Chen wrote: On 2014/5/28 9:53, Mike Galbraith wrote: On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc only hpet in my box. Making poor

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: > oh yes, no tsc only hpet in my box. Making poor E5-2658 box a crippled wreck. -Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/28 4:53, Thomas Gleixner wrote: > On Tue, 27 May 2014, Libo Chen wrote: >> On 2014/5/27 17:55, Mike Galbraith wrote: >>> On Tue, 2014-05-27 at 15:56 +0800, Libo Chen wrote: > On 2014/5/26 22:19, Mike Galbraith wrote: >>> On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote:

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/27 21:20, Mike Galbraith wrote: > On Tue, 2014-05-27 at 20:50 +0800, Libo Chen wrote: > >> in my box: >> >> perf top -g --sort=symbol >> >> Events: 3K cycles >> 73.27% [k] read_hpet >> 4.30% [k] _raw_spin_lock_irqsave >> 1.88% [k] __schedule >> 1.00% [k] idle_cpu >> 0.91%

Re: balance storm

2014-05-27 Thread Thomas Gleixner
On Tue, 27 May 2014, Libo Chen wrote: > On 2014/5/27 17:55, Mike Galbraith wrote: > > On Tue, 2014-05-27 at 15:56 +0800, Libo Chen wrote: > >> > On 2014/5/26 22:19, Mike Galbraith wrote: > >>> > > On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: > > >> On 2014/5/26 13:11, Mike Galbraith

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 20:50 +0800, Libo Chen wrote: > in my box: > > perf top -g --sort=symbol > > Events: 3K cycles > 73.27% [k] read_hpet > 4.30% [k] _raw_spin_lock_irqsave > 1.88% [k] __schedule > 1.00% [k] idle_cpu > 0.91% [k] native_write_msr_safe > 0.68% [k]

Re: balance storm

2014-05-27 Thread Peter Zijlstra
On Tue, May 27, 2014 at 08:55:20PM +0800, Libo Chen wrote: > On 2014/5/27 17:48, Peter Zijlstra wrote: > > In any case, I'm not sure what the 'regression' report is against, as > > there's only a single kernel version mentioned: 3.4, and that's almost a > upstream has the same problem, I have

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/27 18:55, Mike Galbraith wrote: > On Tue, 2014-05-27 at 12:43 +0200, Peter Zijlstra wrote: >> On Tue, May 27, 2014 at 12:05:33PM +0200, Mike Galbraith wrote: >>> On Tue, 2014-05-27 at 11:48 +0200, Peter Zijlstra wrote: >>> So I suppose this is due to the select_idle_sibling()

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/27 17:48, Peter Zijlstra wrote: > So: > > 1) what kind of weird ass workload is that? Why are you waking up so > often to do no work? it's just a testcase, I agree it doesn`t exist in real world. > > 2) turning on/off share_pkg_resource is a horrid hack whichever way > aruond you

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/27 17:55, Mike Galbraith wrote: > On Tue, 2014-05-27 at 15:56 +0800, Libo Chen wrote: >> > On 2014/5/26 22:19, Mike Galbraith wrote: >>> > > On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: > >> On 2014/5/26 13:11, Mike Galbraith wrote: >>> > > > > >>> Your synthetic test

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 12:43 +0200, Peter Zijlstra wrote: > On Tue, May 27, 2014 at 12:05:33PM +0200, Mike Galbraith wrote: > > On Tue, 2014-05-27 at 11:48 +0200, Peter Zijlstra wrote: > > > > > So I suppose this is due to the select_idle_sibling() nonsense again, > > > where we assumes L3 is a

Re: balance storm

2014-05-27 Thread Peter Zijlstra
On Tue, May 27, 2014 at 12:05:33PM +0200, Mike Galbraith wrote: > On Tue, 2014-05-27 at 11:48 +0200, Peter Zijlstra wrote: > > > So I suppose this is due to the select_idle_sibling() nonsense again, > > where we assumes L3 is a fair compromise between cheap enough and > > effective enough. > >

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 11:48 +0200, Peter Zijlstra wrote: > So I suppose this is due to the select_idle_sibling() nonsense again, > where we assumes L3 is a fair compromise between cheap enough and > effective enough. Nodz. > Of course, Intel keeps growing the cpu count covered by L3 to

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 15:56 +0800, Libo Chen wrote: > On 2014/5/26 22:19, Mike Galbraith wrote: > > On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: > >> On 2014/5/26 13:11, Mike Galbraith wrote: > > > >>> Your synthetic test is the absolute worst case scenario. There has to > >>> be work

Re: balance storm

2014-05-27 Thread Peter Zijlstra
On Mon, May 26, 2014 at 07:49:10PM +0800, Libo Chen wrote: > On 2014/5/26 15:56, Mike Galbraith wrote: > > On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: > >> hi, > >> my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on > >> 3.4.24stable, startup 50 same process, every

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 15:44 +0800, Libo Chen wrote: > On 2014/5/26 22:03, Mike Galbraith wrote: > > On Mon, 2014-05-26 at 19:49 +0800, Libo Chen wrote: > > > >> how to turn off SD_SHARE_PKG_RESOURCES in userspace ? > > > > I use a script Ingo gave me years and years ago to > > twiddle

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/26 22:19, Mike Galbraith wrote: > On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: >> On 2014/5/26 13:11, Mike Galbraith wrote: > >>> Your synthetic test is the absolute worst case scenario. There has to >>> be work between wakeups for select_idle_sibling() to have any chance >>>

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/26 22:03, Mike Galbraith wrote: > On Mon, 2014-05-26 at 19:49 +0800, Libo Chen wrote: > >> how to turn off SD_SHARE_PKG_RESOURCES in userspace ? > > I use a script Ingo gave me years and years ago to > twiddle /proc/sys/kernel/sched_domain/cpuN/domainN/flags domain wise. > Doing that

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/26 22:03, Mike Galbraith wrote: On Mon, 2014-05-26 at 19:49 +0800, Libo Chen wrote: how to turn off SD_SHARE_PKG_RESOURCES in userspace ? I use a script Ingo gave me years and years ago to twiddle /proc/sys/kernel/sched_domain/cpuN/domainN/flags domain wise. Doing that won't do

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/26 22:19, Mike Galbraith wrote: On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: On 2014/5/26 13:11, Mike Galbraith wrote: Your synthetic test is the absolute worst case scenario. There has to be work between wakeups for select_idle_sibling() to have any chance whatsoever of

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 15:44 +0800, Libo Chen wrote: On 2014/5/26 22:03, Mike Galbraith wrote: On Mon, 2014-05-26 at 19:49 +0800, Libo Chen wrote: how to turn off SD_SHARE_PKG_RESOURCES in userspace ? I use a script Ingo gave me years and years ago to twiddle

Re: balance storm

2014-05-27 Thread Peter Zijlstra
On Mon, May 26, 2014 at 07:49:10PM +0800, Libo Chen wrote: On 2014/5/26 15:56, Mike Galbraith wrote: On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: hi, my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on 3.4.24stable, startup 50 same process, every process is

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 15:56 +0800, Libo Chen wrote: On 2014/5/26 22:19, Mike Galbraith wrote: On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: On 2014/5/26 13:11, Mike Galbraith wrote: Your synthetic test is the absolute worst case scenario. There has to be work between wakeups

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 11:48 +0200, Peter Zijlstra wrote: So I suppose this is due to the select_idle_sibling() nonsense again, where we assumes L3 is a fair compromise between cheap enough and effective enough. Nodz. Of course, Intel keeps growing the cpu count covered by L3 to ridiculous

Re: balance storm

2014-05-27 Thread Peter Zijlstra
On Tue, May 27, 2014 at 12:05:33PM +0200, Mike Galbraith wrote: On Tue, 2014-05-27 at 11:48 +0200, Peter Zijlstra wrote: So I suppose this is due to the select_idle_sibling() nonsense again, where we assumes L3 is a fair compromise between cheap enough and effective enough. Nodz.

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 12:43 +0200, Peter Zijlstra wrote: On Tue, May 27, 2014 at 12:05:33PM +0200, Mike Galbraith wrote: On Tue, 2014-05-27 at 11:48 +0200, Peter Zijlstra wrote: So I suppose this is due to the select_idle_sibling() nonsense again, where we assumes L3 is a fair

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/27 17:55, Mike Galbraith wrote: On Tue, 2014-05-27 at 15:56 +0800, Libo Chen wrote: On 2014/5/26 22:19, Mike Galbraith wrote: On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: On 2014/5/26 13:11, Mike Galbraith wrote: Your synthetic test is the absolute worst case

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/27 17:48, Peter Zijlstra wrote: So: 1) what kind of weird ass workload is that? Why are you waking up so often to do no work? it's just a testcase, I agree it doesn`t exist in real world. 2) turning on/off share_pkg_resource is a horrid hack whichever way aruond you turn it.

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/27 18:55, Mike Galbraith wrote: On Tue, 2014-05-27 at 12:43 +0200, Peter Zijlstra wrote: On Tue, May 27, 2014 at 12:05:33PM +0200, Mike Galbraith wrote: On Tue, 2014-05-27 at 11:48 +0200, Peter Zijlstra wrote: So I suppose this is due to the select_idle_sibling() nonsense again,

Re: balance storm

2014-05-27 Thread Peter Zijlstra
On Tue, May 27, 2014 at 08:55:20PM +0800, Libo Chen wrote: On 2014/5/27 17:48, Peter Zijlstra wrote: In any case, I'm not sure what the 'regression' report is against, as there's only a single kernel version mentioned: 3.4, and that's almost a upstream has the same problem, I have

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 20:50 +0800, Libo Chen wrote: in my box: perf top -g --sort=symbol Events: 3K cycles 73.27% [k] read_hpet 4.30% [k] _raw_spin_lock_irqsave 1.88% [k] __schedule 1.00% [k] idle_cpu 0.91% [k] native_write_msr_safe 0.68% [k] select_task_rq_fair

Re: balance storm

2014-05-27 Thread Thomas Gleixner
On Tue, 27 May 2014, Libo Chen wrote: On 2014/5/27 17:55, Mike Galbraith wrote: On Tue, 2014-05-27 at 15:56 +0800, Libo Chen wrote: On 2014/5/26 22:19, Mike Galbraith wrote: On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: On 2014/5/26 13:11, Mike Galbraith wrote: Your

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/27 21:20, Mike Galbraith wrote: On Tue, 2014-05-27 at 20:50 +0800, Libo Chen wrote: in my box: perf top -g --sort=symbol Events: 3K cycles 73.27% [k] read_hpet 4.30% [k] _raw_spin_lock_irqsave 1.88% [k] __schedule 1.00% [k] idle_cpu 0.91% [k]

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/28 4:53, Thomas Gleixner wrote: On Tue, 27 May 2014, Libo Chen wrote: On 2014/5/27 17:55, Mike Galbraith wrote: On Tue, 2014-05-27 at 15:56 +0800, Libo Chen wrote: On 2014/5/26 22:19, Mike Galbraith wrote: On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: On 2014/5/26 13:11,

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Wed, 2014-05-28 at 09:04 +0800, Libo Chen wrote: oh yes, no tsc only hpet in my box. Making poor E5-2658 box a crippled wreck. -Mike -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: balance storm

2014-05-26 Thread Mike Galbraith
On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: > On 2014/5/26 13:11, Mike Galbraith wrote: > > Your synthetic test is the absolute worst case scenario. There has to > > be work between wakeups for select_idle_sibling() to have any chance > > whatsoever of turning in a win. At 0 work, it

Re: balance storm

2014-05-26 Thread Mike Galbraith
On Mon, 2014-05-26 at 19:49 +0800, Libo Chen wrote: > how to turn off SD_SHARE_PKG_RESOURCES in userspace ? I use a script Ingo gave me years and years ago to twiddle /proc/sys/kernel/sched_domain/cpuN/domainN/flags domain wise. Doing that won't do you any good without a handler to build/tear

Re: balance storm

2014-05-26 Thread Libo Chen
On 2014/5/26 13:11, Mike Galbraith wrote: > On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: >> hi, >> my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on >> 3.4.24stable, startup 50 same process, every process is sample: >> >> #include >> >> int main() >>

Re: balance storm

2014-05-26 Thread Libo Chen
On 2014/5/26 15:56, Mike Galbraith wrote: > On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: >> hi, >> my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on >> 3.4.24stable, startup 50 same process, every process is sample: >> >> #include >> >> int main() >>

Re: balance storm

2014-05-26 Thread Mike Galbraith
On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: > hi, > my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on > 3.4.24stable, startup 50 same process, every process is sample: > > #include > > int main() > { > for (;;) > {

Re: balance storm

2014-05-26 Thread Mike Galbraith
On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: hi, my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on 3.4.24stable, startup 50 same process, every process is sample: #include unistd.h int main() { for (;;) {

Re: balance storm

2014-05-26 Thread Libo Chen
On 2014/5/26 15:56, Mike Galbraith wrote: On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: hi, my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on 3.4.24stable, startup 50 same process, every process is sample: #include unistd.h int main() {

Re: balance storm

2014-05-26 Thread Libo Chen
On 2014/5/26 13:11, Mike Galbraith wrote: On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: hi, my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on 3.4.24stable, startup 50 same process, every process is sample: #include unistd.h int main() {

Re: balance storm

2014-05-26 Thread Mike Galbraith
On Mon, 2014-05-26 at 19:49 +0800, Libo Chen wrote: how to turn off SD_SHARE_PKG_RESOURCES in userspace ? I use a script Ingo gave me years and years ago to twiddle /proc/sys/kernel/sched_domain/cpuN/domainN/flags domain wise. Doing that won't do you any good without a handler to build/tear

Re: balance storm

2014-05-26 Thread Mike Galbraith
On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: On 2014/5/26 13:11, Mike Galbraith wrote: Your synthetic test is the absolute worst case scenario. There has to be work between wakeups for select_idle_sibling() to have any chance whatsoever of turning in a win. At 0 work, it becomes

Re: balance storm

2014-05-25 Thread Mike Galbraith
On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: > hi, > my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on > 3.4.24stable, startup 50 same process, every process is sample: > > #include > > int main() > { > for (;;) > {

balance storm

2014-05-25 Thread Libo Chen
hi, my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on 3.4.24stable, startup 50 same process, every process is sample: #include int main() { for (;;) { unsigned int i = 0;

balance storm

2014-05-25 Thread Libo Chen
hi, my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on 3.4.24stable, startup 50 same process, every process is sample: #include unistd.h int main() { for (;;) { unsigned int i = 0;

Re: balance storm

2014-05-25 Thread Mike Galbraith
On Mon, 2014-05-26 at 11:04 +0800, Libo Chen wrote: hi, my box has 16 cpu (E5-2658,8 core, 2 thread per core), i did a test on 3.4.24stable, startup 50 same process, every process is sample: #include unistd.h int main() { for (;;) {