Re: [ck] Re: [PATCH] implement nice support across physical cpus on SMP

From: Con Kolivas
Date: Tue May 10 2005 - 21:57:47 EST


On Tue, 10 May 2005 09:54 am, Carlos Carvalho wrote:
> Con Kolivas (kernel@xxxxxxxxxxx) wrote on 9 May 2005 21:47:
> >Perhaps if I make the prio_bias multiplied instead of added to the cpu
> > load it will be less affected by SCHED_LOAD_SCALE. The attached patch
> > was confirmed during testing to also provide smp distribution according
> > to nice on 4x.
>
> It seems to work. I've tested it for a few hours on the same machine
> and the 2 nice 0 processes take the bulk of the cpu time, while that
> cpu bound program running at nice 19 takes only about 7%.
>
> Maybe it's a bit early to say it's fine, but it does semm much better
> than before, so I think it should go into the tree.
>
> Thanks a lot!

My pleasure. Thanks for testing.

I'll roll up these patches for rc4 and make smp nice balancing a config option
for ultimate flexibility.

Cheers,
Con
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/