home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!ux1.cso.uiuc.edu!m.cs.uiuc.edu!marick
- From: marick@m.cs.uiuc.edu (Brian Marick)
- Newsgroups: comp.software-eng
- Subject: Re: Testing Parallel Components
- Message-ID: <1992Aug22.171919.5977@m.cs.uiuc.edu>
- Date: 22 Aug 92 17:19:19 GMT
- References: <1992Aug21.160553.22273@evb.com> <1992Aug21.213902.8000@cactus.org>
- Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL
- Lines: 33
-
- wiley@cactus.org (Mark S. Wiley) writes:
-
- >It depends on what type of parallel software you are testing. When I
- >was testing Sequent's symmetric multiprocessor OS (Dynix/ptx) I wrote a
- >parallel test driver to run 100's to 1,000's of test processes in
- >parallel. This tends (-: to put it mildly :-) to stress the operating
- >system and expose previously unknown race conditions in the OS.
-
- Some colleagues and I did a similar thing when testing for locking
- problems in a multiprocessing version of System V. Because I'd just
- spent some time working on a flexible coverage tool, we were able to
- go one step further.
-
- We were worried about whether our tests stressed what they were
- supposed to stress. It seemed possible that our tests might
- bottleneck in one part of the system, leaving other parts only lightly
- exercised. We devised "race coverage" to measure whether that
- happened.
-
- Race coverage counts how often a thread (processor) enters a routine
- while another thread is already in it. We ran existing stress
- tests, measured their race coverage, then designed more stress tests
- to fill in the gaps. They found bugs.
-
- We learned some good rules of thumb for writing stress tests, and
- dabbled a bit with extensions to race coverage, but we didn't take it
- as far as it could go. I'd like to do that someday.
-
- For more about race coverage, see my GCT documentation. To get that,
- start by fetching cs.uiuc.edu:pub/testing/GCT.README
-
- Brian Marick, marick@cs.uiuc.edu, uiucdcs!marick, marick@testing.com (pending)
- Testing Foundations: Consulting, Training, Tools.
-