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: 115aec,9586efba84221cf8 X-Google-Attributes: gid115aec,public X-Google-Thread: 110292,9586efba84221cf8 X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,9586efba84221cf8 X-Google-Attributes: gid102b75,public X-Google-Thread: feb3e,9586efba84221cf8 X-Google-Attributes: gidfeb3e,public X-Google-Thread: 1164f8,9586efba84221cf8 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10cebf,9586efba84221cf8 X-Google-Attributes: gid10cebf,public X-Google-Thread: f8403,9586efba84221cf8 X-Google-Attributes: gidf8403,public X-Google-ArrivalTime: 1995-02-25 11:46:05 PST 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,comp.os.qnx Path: nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!news.cs.uni-magdeburg.de!RRZ.Uni-Koeln.DE!news.dfn.de!swiss.ans.net!howland.reston.ans.net!torn!nott!cunews!revcan!quantum!danh From: danh@qnx.com (Dan Hildebrand) Subject: Re: seeking context switch times/TPC cache-miss figures Message-ID: Date: Sat, 25 Feb 95 19:46:05 GMT Organization: QNX Software Systems References: <3ie6q4$fsf@geraldo.cc.utexas.edu> <3ifg51$nvj@hpindda.cup.hp.com> <1995Feb24.061614.10085@scala.scala.com> <3il87s$qbd@news.icaen.uiowa.edu> Xref: nntp.gmd.de comp.sys.powerpc:40645 comp.realtime:6610 comp.sys.intel:35864 comp.arch:28112 comp.sys.dec:21887 comp.sys.dec.micro:2793 comp.sys.m68k:5056 comp.sys.sgi.hardware:10661 comp.sys.sgi.misc:16810 comp.sys.sun.hardware:27061 comp.sys.sun.misc:19806 comp.sys.hp.hardware:7082 comp.sys.hp.hpux:20771 comp.os.qnx:3410 In article <3il87s$qbd@news.icaen.uiowa.edu>, Doug Siebert 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