* seeking context switch times/TPC cache-miss figures
@ 1995-02-22 2:16 Anthony Petro
1995-02-22 9:16 ` Ken Green
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Anthony Petro @ 1995-02-22 2:16 UTC (permalink / raw)
for my research, i am seeking actual numerical data for context-switch
times for a variety of architectures and OSes. i am also seeking data
on cache-miss percentages for transaction processing benchmarks
(e.g. TPC).
specifically, i am interested in the user-to-kernel context-switch
times, including all overhead incurred in hardware and software
once a syscall, trap, or interrupt occurs until the kernel actually
begins servicing the syscall/trap/interrupt. with respect to TPC
cache-miss ratios, i'm particularly interested in cold-cache effects
(compulsory misses) after a context switch.
i'm also interested in user-to-user context-switch times.
if anyone can provide either actual examples (preferably with a
reference; if collected personally please identify yourself and your
organization and tell me if i can cite you personally) or references
for same (papers, conference proceedings, specs, anything), please
*email me directly*.
it would be of further use if the context-switch time were broken into
actual hardware save/restore time, OS housekeeping/scheduling time,
and/or cold-cache effects (or any combination) but i can work with a
single lumped context-switch time.
please state the conditions under which the context switch was timed
and/or transaction processing cache miss ratio observed;
architecture and OS at a minimum. if the time includes
syscall/service routine execution time, please state that and whether
it's an avg/best case/worst case. i'm looking more for a general
picture than for great precision; hence even if your example is
anecdotal i'd like to hear it.
this information is being used to motivate research for new
architectures optimized for fast context-switching for TP-like
workloads. if there is interest, i will summarize any data i receive.
many thanks in advance.
tony
--
anthony m petro
u. of texas - austin
ee grad student,
on good days...
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: seeking context switch times/TPC cache-miss figures 1995-02-22 2:16 seeking context switch times/TPC cache-miss figures Anthony Petro @ 1995-02-22 9:16 ` Ken Green 1995-02-23 1:35 ` Hamish Marson 1995-02-22 14:02 ` Mike Krause 1995-02-24 18:44 ` Joel Sumner 2 siblings, 1 reply; 8+ messages in thread From: Ken Green @ 1995-02-22 9:16 UTC (permalink / raw) Anthony Petro (apetro@pegasus.ece.utexas.edu) wrote: > for my research, i am seeking actual numerical data for context-switch > times for a variety of architectures and OSes. i am also seeking data > on cache-miss percentages for transaction processing benchmarks > (e.g. TPC). > specifically, i am interested in the user-to-kernel context-switch > times, including all overhead incurred in hardware and software > once a syscall, trap, or interrupt occurs until the kernel actually > begins servicing the syscall/trap/interrupt. with respect to TPC > cache-miss ratios, i'm particularly interested in cold-cache effects > (compulsory misses) after a context switch. > > i'm also interested in user-to-user context-switch times. This is a table that was published here last year Date: Wed, 9 Feb 94 14:56:13 PST From: Larry.McVoy@eng.sun.com (Larry McVoy) To: dck@cse.nd.edu 68 99 Mhz HP-735 HP-UX 9.01 80 33 MHz 486DX QNX 4.2 87 160 Mhz DEC 4000/610 DEC OSF/1 v1.3 98 40 MHz R3000 DEC 5000/240 Ultrix 4.2 98 66 MHz 486DX2 Linux 0.99.10 102 62 MHz IBM-RS6000/580 AIX 3.2 106 66 Mhz snake HP-UX 9.x 128 40 Mhz SS10 SunOS 4.1.3 154 25 MHz R3000 DEC 5000/200 158 50 MHz R4000 SGI 188 48 Mhz + 1Me$ SS10 SunOS 5.2 198 33 MHz Sparc 4/470 SunOS 4.1.1 210 33 Mhz 486 386BSD 0.1 212 50 Mhz RIOS AIX 3.2 225 40Mhz SS10 SunOS 5.2 230 40Mhz SS2 SunOS 4.1.2 281 20 MHz R3000 DEC 5000/120 345 33 MHz R3000/3010 SGI Irix 4.0.5 380 33 MHz 486 NetBSD 454 40Mhz SS2 SunOS 5.2 628 50Mhz Sparc classic SunOS 5.2 %Title Context switch times in microseconds (raw numbers) The test program used to generate these numbers used a pair of processes signaling each other, to get the context switches. Similar to #include <signal.h> #include <time.h> int other; void sig(sign) int sign; { kill(other,16); } main() { int p=getpid(); int me, q, count = 0; struct timeval t1,t2; struct timezone junk; struct sigaction act,oact; act.sa_handler=sig; sigemptyset( & ( act.sa_mask ) ); act.sa_flags=0; sigaction(16,&act,&oact); switch( q=fork() ) { case 0: /*child*/ other=p; break; default: other=q; kill(other,16); } gettimeofday(&t1,&junk); me = getpid(); while(1) { pause(); count++; if (count == 2000) { gettimeofday(&t2,&junk); printf ("Me: %5d %7d signals in %6.3f seconds \n", me, count, ( ( (double)t2.tv_usec + 1000000*(double)t2.tv_sec) - ( (double)t1.tv_usec + 1000000*(double)t1.tv_sec) )/ 1000000) ; count=0; gettimeofday(&t1,&junk); } } } The test is of course not perfect as the loop includes 2 system calls, but I hope you find it useful anyway. > it would be of further use if the context-switch time were broken into > actual hardware save/restore time, OS housekeeping/scheduling time, > and/or cold-cache effects (or any combination) but i can work with a > single lumped context-switch time. > please state the conditions under which the context switch was timed > and/or transaction processing cache miss ratio observed; > architecture and OS at a minimum. if the time includes > syscall/service routine execution time, please state that and whether > it's an avg/best case/worst case. i'm looking more for a general > picture than for great precision; hence even if your example is > anecdotal i'd like to hear it. > this information is being used to motivate research for new > architectures optimized for fast context-switching for TP-like > workloads. if there is interest, i will summarize any data i receive. > many thanks in advance. > tony > -- > anthony m petro > u. of texas - austin > ee grad student, > on good days... -- __________________email Ken.Green@kgcc.demon.co.uk _____________________ Ken Green Computer Consultancy 22 Matthews Chase, Binfield, Berkshire, RG12 5UR. U.K. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: seeking context switch times/TPC cache-miss figures 1995-02-22 9:16 ` Ken Green @ 1995-02-23 1:35 ` Hamish Marson 0 siblings, 0 replies; 8+ messages in thread From: Hamish Marson @ 1995-02-23 1:35 UTC (permalink / raw) Ken Green (ken@kgcc.demon.co.uk) wrote: > Anthony Petro (apetro@pegasus.ece.utexas.edu) wrote: > > for my research, i am seeking actual numerical data for context-switch > > times for a variety of architectures and OSes. i am also seeking data > > on cache-miss percentages for transaction processing benchmarks > > (e.g. TPC). > > specifically, i am interested in the user-to-kernel context-switch > > times, including all overhead incurred in hardware and software > > once a syscall, trap, or interrupt occurs until the kernel actually > > begins servicing the syscall/trap/interrupt. with respect to TPC > > cache-miss ratios, i'm particularly interested in cold-cache effects > > (compulsory misses) after a context switch. > > > > i'm also interested in user-to-user context-switch times. > This is a table that was published here last year > Date: Wed, 9 Feb 94 14:56:13 PST > From: Larry.McVoy@eng.sun.com (Larry McVoy) > To: dck@cse.nd.edu > 68 99 Mhz HP-735 HP-UX 9.01 > 80 33 MHz 486DX QNX 4.2 > 87 160 Mhz DEC 4000/610 DEC OSF/1 v1.3 > 98 40 MHz R3000 DEC 5000/240 Ultrix 4.2 > 98 66 MHz 486DX2 Linux 0.99.10 > 102 62 MHz IBM-RS6000/580 AIX 3.2 Heres the output from a 72.5Mhz IBM-RS6000/R24 AIX 3.2.5 (Lightly loaded with an Ingres server, still 50-80% idle CPU). Me: 38894 2000 signals in 0.295 seconds Me: 42223 2000 signals in 0.278 seconds Me: 42223 2000 signals in 0.253 seconds Me: 42223 2000 signals in 0.255 seconds -- ====================================================================== | Hamish Marson | | Systems Programmer | | | Computer Services | INTERNET h.marson@waikato.ac.nz | | University of Waikato | PHONE +64 7 8562889 xt 8181 | | New Zealand | FAX +64 7 8384066 | ===========Disclaimer :- Remember. You heard it here first.=========== ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: seeking context switch times/TPC cache-miss figures 1995-02-22 2:16 seeking context switch times/TPC cache-miss figures Anthony Petro 1995-02-22 9:16 ` Ken Green @ 1995-02-22 14:02 ` Mike Krause 1995-02-24 6:16 ` "Randell Jesup" 1995-02-24 18:44 ` Joel Sumner 2 siblings, 1 reply; 8+ messages in thread From: Mike Krause @ 1995-02-22 14:02 UTC (permalink / raw) Someone posted the following results awhile ago, so they may no longer be valid. Here is the posting: >(3) Context-switching times in microseconds > >Platform, Operating System Context Switching Time >Processor Speed (Mhz) > >HP-735, 99 HP-UX 9.01 68 >486DX, 33 QNX 4.2 80 >DEC 4000/610, 160 OSF/1 v1.3 87 >486DX2, 66 Linux 0.99.10 98 >IBM RS6000/580, 62 AIX 3.2 102 >Sun SS10, 40 SunOS 4.1.3 128 >Sun SS10, 40 SunOS 5.2 225 >Sun SS2, 40 SunOS 5.2 454 Note that these times are the measured result of a pair of processes signalling each other, which includes the additional kernel call overhead for the signalling calls. A benefit of this approach is that the source is portable to a wide range of UNIX systems, howver, a more correct result, but currently less portable, can be obtained by using the sched_yield() call in a POSIX 1003.1b (previously 1003.4) OS. Since this approach executes only one kernel call per context switch, with no signal processing being done, it is a more accurate indication of the actual context switch time. Without the signal processing, the intervals are also much shorter. For example, the Pentium/90 number for QNX drops from 23 usec to 2 usecs, the 486/66 number drops from 44 to 5 usecs. Here's a more complete listing of numbers collected from various responses on the net: Platform, Operating System Context Switching Time Processor Speed (Mhz) in microseconds 90 MHz PCI Pentium QNX 4.21 23 60 MHz ALR Pentium QNX 4.2 28 100 MHz HP-747x HP-RT 1.1 34 66 MHz 486DX2 QNX 4.2 44 100 Mhz HP-735 HP-UX 9.01 68 50 MHz HP-742 HP-RT 1.1 71 33 MHz 486DX QNX 4.2 80 150 MHz 21064 DEC OSF/1 v1.3 93 80 MHz HP-712/80 HP-UX 9.05 96 40 MHz DEC 5000/240 Ultrix 4.2 98 66 MHz 486DX2 Linux 0.99.10 98 150 MHz DEC 3000/500 ? 100 62 MHz IBM-RS6000/580 AIX 3.2 102 66 Mhz Snake HP-UX 9.x 106 150 MHz DEC 3000/400 ? 127 40 Mhz Viking SunOS 4.1.3 128 25 MHz DEC 5000/200 ? 154 50 MHz R4000 SGI ? 158 33 MHz Sparc SunOS 4.1.1 198 40 MHz MIPS R3000 Ultrix 4.3 198 33 Mhz 486 386BSD 0.1 210 85 MHz Sparcstation-5 SunOS 4.1.3_U1 210 50 Mhz RIOS AIX 3.2 212 20 MHz DEC 5000/120 ? 281 33 MHz R3000/3010 SGI Irix 4.0.5 345 33 MHz 486 NetBSD 380 50 MHz Sparcstation-LX Solaris 2.3 620 50 MHz 486DX2 Solaris 636 16 MHz 386SX NetBSD 2603 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: seeking context switch times/TPC cache-miss figures 1995-02-22 14:02 ` Mike Krause @ 1995-02-24 6:16 ` "Randell Jesup" 1995-02-24 18:23 ` Doug Siebert 0 siblings, 1 reply; 8+ messages in thread From: "Randell Jesup" @ 1995-02-24 6:16 UTC (permalink / raw) krause@cup.hp.com (Mike Krause) wrote: >Platform, Operating System Context Switching Time >Processor Speed (Mhz) in microseconds > > 90 MHz PCI Pentium QNX 4.21 23 > 60 MHz ALR Pentium QNX 4.2 28 25 Mhz Amiga 4000/040 AmigaOS ~27 > 100 MHz HP-747x HP-RT 1.1 34 > 66 MHz 486DX2 QNX 4.2 44 > 100 Mhz HP-735 HP-UX 9.01 68 etc... From a measurement I did when this first came up about 1 or 2 years ago. -- Randell Jesup, Scala US R&D Randell.Jesup@scala.com Ex-Commodore-Amiga Engineer, class of '94 #include <std/disclaimer> ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: seeking context switch times/TPC cache-miss figures 1995-02-24 6:16 ` "Randell Jesup" @ 1995-02-24 18:23 ` Doug Siebert 1995-02-25 19:46 ` Dan Hildebrand 0 siblings, 1 reply; 8+ messages in thread From: Doug Siebert @ 1995-02-24 18:23 UTC (permalink / raw) jesup@scala.scala.com ("Randell Jesup") writes: >krause@cup.hp.com (Mike Krause) wrote: >>Platform, Operating System Context Switching Time >>Processor Speed (Mhz) in microseconds >> >> 90 MHz PCI Pentium QNX 4.21 23 >> 60 MHz ALR Pentium QNX 4.2 28 > 25 Mhz Amiga 4000/040 AmigaOS ~27 >> 100 MHz HP-747x HP-RT 1.1 34 >> 66 MHz 486DX2 QNX 4.2 44 >> 100 Mhz HP-735 HP-UX 9.01 68 >etc... > From a measurement I did when this first came up about 1 or 2 years >ago. Since AmigaOS doesn't do memory management (i.e. no memory protection) context switching is a little easier, and the OS isn't in the same category as the others listed (I am assuming QNX and HP-RT do memory protection, and know that HP-UX of course does) Still not a bad time though, considering it runs on a 5 year old CPU... -- Doug Siebert =/= dsiebert@isca.uiowa.edu Microsoft Network is prohibited from redistributing this work in any form, in whole or in part. License to distribute this post is available to Microsoft for $1000. Posting without permission constitutes an agreement to these terms. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: seeking context switch times/TPC cache-miss figures 1995-02-24 18:23 ` Doug Siebert @ 1995-02-25 19:46 ` Dan Hildebrand 0 siblings, 0 replies; 8+ messages in thread From: Dan Hildebrand @ 1995-02-25 19:46 UTC (permalink / raw) In article <3il87s$qbd@news.icaen.uiowa.edu>, Doug Siebert <dsiebert@icaen.uiowa.edu> wrote: >jesup@scala.scala.com ("Randell Jesup") writes: > >>krause@cup.hp.com (Mike Krause) wrote: >>>Platform, Operating System Context Switching Time >>>Processor Speed (Mhz) in microseconds >>> >>> 90 MHz PCI Pentium QNX 4.21 23 >>> 60 MHz ALR Pentium QNX 4.2 28 > >> 25 Mhz Amiga 4000/040 AmigaOS ~27 > >Since AmigaOS doesn't do memory management (i.e. no memory protection) >context switching is a little easier, and the OS isn't in the same category >as the others listed (I am assuming QNX and HP-RT do memory protection, and >know that HP-UX of course does) Still not a bad time though, considering it >runs on a 5 year old CPU... A problem with this benchmark is that it attempts to measure context switch intervals using signals rather than the POSIX sched_yield() call, in order to be portable to OS's lacking sched_yield(). As a result, it ends up measuring the combination of signal processing AND context switching, not just context switching. Since AmigaOS does not support UNIX-style signals, the benchmark was recoded to be a pure context switch measurement on the Amiga, so the number that results does not represent the same metric. By way of example, a QNX benchmark coded using sched_yield(), rather than signals, results in a 2 microsecond time on a P90, rather than 23 microseconds. Since that 2 usec number doesn't represent the same interval as for the other OS's, it wouldn't be appropriate to put it into this list. For these reasons, the author of the benchmark (Larry McVoy, lm@sgi.com) posted a remark some time ago indicating that he would prefer that this benchmark not be quoted as a measurement of context switch time (since it isn't). He's produced a MUCH better measurement tool in the form of lmbench. It will be interesting to see how the lmbench numbers for various OS's look once they start coming out. -- Dan Hildebrand danh@qnx.com QNX Software Systems, Ltd. phone: (613) 591-0931 x204 (voice) 175 Terence Matthews (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: seeking context switch times/TPC cache-miss figures 1995-02-22 2:16 seeking context switch times/TPC cache-miss figures Anthony Petro 1995-02-22 9:16 ` Ken Green 1995-02-22 14:02 ` Mike Krause @ 1995-02-24 18:44 ` Joel Sumner 2 siblings, 0 replies; 8+ messages in thread From: Joel Sumner @ 1995-02-24 18:44 UTC (permalink / raw) In article <3ie6q4$fsf@geraldo.cc.utexas.edu>, apetro@pegasus.ece.utexas.edu (Anthony Petro) wrote: > for my research, i am seeking actual numerical data for context-switch > times for a variety of architectures and OSes. i am also seeking data > on cache-miss percentages for transaction processing benchmarks > (e.g. TPC). [snip] You might check out EETimes this week. I glanced through an article in the middle section that mentioned transaction processing rate for PSOS on a (I think?) 68K platform. I doubt that it compared other processors but it may provide useful info. -- Joel Sumner Motorola Semiconductor Products Data Communications joels@oakhill.sps.mot.com "When buying and selling are controlled by legislation, the first things to be bought and sold are legislators." - P.J. O'Rourke, Parliament of Whores ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1995-02-25 19:46 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1995-02-22 2:16 seeking context switch times/TPC cache-miss figures Anthony Petro 1995-02-22 9:16 ` Ken Green 1995-02-23 1:35 ` Hamish Marson 1995-02-22 14:02 ` Mike Krause 1995-02-24 6:16 ` "Randell Jesup" 1995-02-24 18:23 ` Doug Siebert 1995-02-25 19:46 ` Dan Hildebrand 1995-02-24 18:44 ` Joel Sumner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox