From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,a247b9f21a6d13d6 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-08-27 10:42:18 PST Newsgroups: comp.sys.dec Path: gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!olivea!apple.com!goofy.apple.com!mumbo.apple.com!gallant.apple.com!minow.apple.com!user From: minow@apple.com (Martin Minow) Subject: Re: Our DEC Alpha is the slowest on this code .... Sender: news@gallant.apple.com Message-ID: Date: Fri, 27 Aug 1993 16:16:53 GMT Distribution: usa References: <25juna$n5e@polaris.unm.edu> Organization: Macintosh Developer Services Followup-To: comp.sys.dec In article <25juna$n5e@polaris.unm.edu>, espen@unm.edu (Peter Espen) wrote: > Our company ports code to a lot of different unix systems... > .. > We have come across some sort of weakness on the Dec Alpha that causes > a real slowdown in execution speed... > [From the test program]: > for ( i = 0; i < RECS; i++ ) { > val = rand()%RECS; > lseek(fd,0,0); /* rewind the file then jump to a random offset */ > lseek(fd,val*RECSIZE,0); > write(fd,buf2,RECSIZE); This is a test of the I/O subsystem and, in particular, the disk driver firmware. In many systems, writing to a device buffers the data in the device's internal hardware buffers for subsequent writing to the media itself. In other systems, writing isn't complete until the data is actually on the physical disk. Also, Unix has different buffering strategies for staging writes from application programs to the device itself. You may wish to check whether the disks you use are using the same buffering parameters: a week or two with the ANSI SCSI spec will lead you to the parameters -- they are standardized (more so than Unix). By the way, what is the purpose of this benchmark? It certainly penalizes hardware/software developers who emphasize reliability over raw performance. Martin Minow The above does not represent the position of Apple Computer Inc.