![]() | |||||||||||||
Messages in this thread |
* Nick Piggin <nickpiggin@yahoo.com.au> wrote: > Maybe balance on clone would be beneficial if we only balance onto > CPUs which are idle or very very imbalanced. Basically, if you are > very sure that it is going to be balanced off anyway, it is probably > better to do it at clone. balancing threads/processes is not a problem, as long as it happens within the rules of normal balancing. ie. 'new context created' (on exec, fork or clone) is just an event that impacts the load scenario, and which might trigger rebalancing. _if_ the sharing between various contexts is very high and it's actually faster to run them all single-threaded, then the application writer can bind them to one CPU, via the affinity syscalls. But the scheduler cannot know this advance. so the cleanest assumption, from the POV of the scheduler, is that there's no sharing between contexts. Things become really simple once this assumption is made. and frankly, it's much easier to argue with application developers whose application scales badly and thus the scheduler over-distributes it, than with application developers who's application scales badly due to the scheduler. Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 13:02 [from the cache] ©2003-2008 | |||||||||||||