Re: 2.2.5 optimizations for web benchmarks?

Ralf Baechle (
Wed, 28 Apr 1999 18:46:13 +0200

On Tue, Apr 27, 1999 at 01:26:48PM +0100, Steve Dodd wrote:

> Stupid question:
> Does the scheduler prefer processes which share vm space with the current task?
> As I see it, threads are just special processes, so the scheduler may just
> switch to a completely different process anyway and incur the TLB flush.

>From kernel/sched.c:goodness():

/* .. and a slight advantage to the current thread */
if (p->mm == prev->mm)
weight += 1;
weight += p->priority;


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at