From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa751,9586efba84221cf8 X-Google-Attributes: gidfa751,public X-Google-Thread: feb3e,9586efba84221cf8 X-Google-Attributes: gidfeb3e,public X-Google-Thread: 110292,9586efba84221cf8 X-Google-Attributes: gid110292,public X-Google-Thread: f8403,9586efba84221cf8 X-Google-Attributes: gidf8403,public X-Google-Thread: 115aec,9586efba84221cf8 X-Google-Attributes: gid115aec,public X-Google-Thread: 10cebf,9586efba84221cf8 X-Google-Attributes: gid10cebf,public X-Google-Thread: 102b75,9586efba84221cf8 X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,9586efba84221cf8 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-02-22 06:02:09 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!news.alpha.net!news.mathworks.com!news.kei.com!simtel!col.hp.com!news.dtc.hp.com!hpscit.sc.hp.com!hpax!cupnews2.cup.hp.com!krause From: krause@cup.hp.com (Mike Krause) Newsgroups: comp.sys.powerpc,comp.realtime,comp.sys.intel,comp.arch,comp.sys.dec,comp.sys.dec.micro,comp.sys.m68k,comp.sys.sgi.hardware,comp.sys.sgi.misc,comp.sys.sun.hardware,comp.sys.sun.misc,comp.sys.hp.hardware,comp.sys.hp.hpux Subject: Re: seeking context switch times/TPC cache-miss figures Followup-To: comp.sys.powerpc,comp.realtime,comp.sys.intel,comp.arch,comp.sys.dec,comp.sys.dec.micro,comp.sys.m68k,comp.sys.sgi.hardware,comp.sys.sgi.misc,comp.sys.sun.hardware,comp.sys.sun.misc,comp.sys.hp.hardware,comp.sys.hp.hpux Date: 22 Feb 1995 14:02:09 GMT Organization: Information Networks Division: Hewlett Packard Distribution: world Message-ID: <3ifg51$nvj@hpindda.cup.hp.com> References: <3ie6q4$fsf@geraldo.cc.utexas.edu> NNTP-Posting-Host: hpindip.cup.hp.com X-Newsreader: TIN [version 1.2 PL0.7] Xref: nntp.gmd.de comp.sys.powerpc:40255 comp.realtime:6558 comp.sys.intel:35450 comp.arch:28007 comp.sys.dec:21772 comp.sys.dec.micro:2769 comp.sys.m68k:5020 comp.sys.sgi.hardware:10544 comp.sys.sgi.misc:16663 comp.sys.sun.hardware:26897 comp.sys.sun.misc:19679 comp.sys.hp.hardware:6954 comp.sys.hp.hpux:20504 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