> 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;
Ralf
-
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/