Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: danh@qnx.com (Dan Hildebrand)
Subject: Re: seeking context switch times/TPC cache-miss figures
Date: Sat, 25 Feb 95 19:46:05 GMT	[thread overview]
Message-ID: <yca+#txd@qnx.com> (raw)
In-Reply-To: 3il87s$qbd@news.icaen.uiowa.edu

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


  reply	other threads:[~1995-02-25 19:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
1995-02-24 18:44 ` Joel Sumner
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox