lkml.org 
[lkml]   [2000]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: anyone measured context-switch cost on Linux/ia32?
    Date
    From
    : > Has anyone measured the cost (in cycles or time) of the
    : > context-switch path in Linux/ia32?
    :
    : here, on a celeron and a slightly hacked UP kernel, a context switch
    : (time between one process stops executing, is preempted, and another
    : starts running) is ~4800 cycles (10.7us) at best. stock kernels are
    : probably not much different in this area.

    lmbench, 2 process no working set case:

    500Mhz Celeron, 2.2.14 Mandrake 7.0, 1.8usecs
    400Mhz PPC (iMac), 2.2.14 Yellow dog 1.0(?), 1.4usecs
    500Mhz Alpha, 2.2.13 Red hat 6.1, 2.3usecs

    There's something wrong with either your benchmark or your system. 10usecs
    is more like Solaris :-)

    -
    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:56    [W:0.027 / U:300.508 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site