Re: [patch] sched: introduce SD_BALANCE_FORK for ht/mc/smp domains

Siddha, Suresh B
2007-07-30T17:59:35Z

On Sun, Jul 29, 2007 at 11:16:44PM +0200, Ingo Molnar wrote:
>
> * Siddha, Suresh B <suresh.b.siddha@intel.com> wrote:
>
> > They might be doing more exec's and probably covered by exec balance.
> >
> > There was a small pthread test case which was calculating the time to
> > create all the threads and how much time each thread took to start
> > running. It appeared as if the threads ran sequentially one after
> > another on a DP system with four cores leading to this SD_BALANCE_FORK
> > observation.
>
> would be nice to dig out that testcase i suspect and quantify the
> benefits of your patch.

That test case doesn't do much other than calculating the time taken for each
thread to start running. With this balance on fork patch, that small pthread
test case shows that all the threads now start almost at the same time on all
cores.

> Another workload which might perform better
> would be linpack: it benefits from fast and immediate 'spreading' of
> freshly forked threads.

My understanding is that linkpack doesn't do fork often(as such
difference might not be visible, but will take a look). We were planning
to test httperf or some other workloads which probably does fork more often.

thanks,
suresh