lkml.org 
[lkml]   [1999]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.2.5 optimizations for web benchmarks?
    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;

    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/

    \
     
     \ /
      Last update: 2005-03-22 13:51    [W:3.919 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site