Re: anyone measured context-switch cost on Linux/ia32?

From: Larry McVoy (lm@bitmover.com)
Date: Thu Jan 20 2000 - 21:21:34 EST


: > 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/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:25 EST