Re: [PATCH] Binding processes to selected CPUs

avik@altavista.net
Mon, 4 Oct 1999 02:38:13 -0400 (EDT)


> Rik van Riel wrote:
> > You have to realize that goodness() is called for each process
> > on the runqueue for each reschedule. And this is only needed
> > once every rebind...
>
> Also;
> By sending IPI's (smp_need_resched) and making use of the need_resched
> flag the overhead is minimized. And, a desired processor that is
> running
> something CPU intensive is faster preempted to run the process that
> wants
> the processor.
>
I considered switching from an unbindable cpu at bind-time, but that could be exploited to get a process to run constantly (by continuously switching bindable cpus). It's also a weakness in my patch; a process can raise its effective priority by playing with the mask.

I'll look at the other patch and see what I can learn.

----------------------------------------------------------------
Get your free email from AltaVista at http://altavista.iname.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/