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-28 17:10:07 PST Path: gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!agate!ames!decwrl!pa.dec.com!uvo.dec.com!manala.fno.dec.com!hamul3.hbf.dec.com!roland From: roland@hamul3.hbf.dec.com (Roland Meier) Newsgroups: comp.sys.dec Subject: Re: Our DEC Alpha is the slowest on this code .... Date: 28 Aug 1993 15:35:03 GMT Organization: Digital Equipment Corporation, Helsinki Distribution: usa Message-ID: <25ntv7$66q@manala.fno.dec.com> References: <25juna$n5e@polaris.unm.edu> NNTP-Posting-Host: hamul3.hbf.dec.com X-Newsreader: TIN [version 1.2 PL1] Peter Espen (espen@unm.edu) wrote: : Our company ports code to a lot of different unix systems. We have in the : lab: : IBM RS/6000 running AIX : DEC Alpha running OSF/1 1.2 : Motorola running 88open (88000 based) : Apple Quadra 900 running A/UX 3.0 : IBM PS/2 running AIX : Sun Sparc running SunOS 4.xx and Solaris : . : etc. etc. : We have come across some sort of weakness on the Dec Alpha that causes : a real slowdown in execution speed. Even the Apple Quadra 900 running A/UX : runs rings around the Alpha on the following little test program. Anyone : know why? Peter, I tried your program on a 3000/400 (RZ26s) with OSF/1 V1.3, it took 42.33s. Very slow, indeed. By default, OSF/1 and ULTRIX force flushing of dirty buffers to disk before they can be accessed again. This is different to most of our competitors UNIXes which seem to flush only if either the buffercache gets full or the update deamon forces a sync which flushes all dirty buffers at once. The reasoning behind this is a lower risk of data loss due to crash/powerfail prior to next sync, so its an integrity vs. speed tradeoff. Now lets come back to your program. I observed about 65-70 IO/s, which is near the physical limit of the disk. About 650 KB/s were transferred, which is normal when taking the IO rate and the small transfer size into account. What you have expected is probably an elapsed time in the 1-2 second range. There are two methods to achieve that. OSF/1 V1.3 has a new filesystem (AdvFS - DEC advanced filesystem) as an option but at *no* additional cost since the license is bundled with the OS. Running your program with this filesystem lead to an elapsed time of about 1s without compromising data integrity in case of a system failure. The second method is to alter the buffercache behaviour such that it works as on our competitors systems. As root, do a $ dbx -k /vmunix /dev/mem (dbx) assign delay_wbuffers=1 (dbx) quit quit the root shell and run your program. On the hardware mentioned above, I've measured a runtime of about 0.6s. Be aware, that this modification is only effective till the next reboot. To make it permanent, use dbx's patch command instead of assign (same syntax). Remember to re-apply that modification if you build a new kernel. On ULTRIX, this parameter can be modified more easily by editing /usr/sys/conf/mips/param.c. Hopefully, the next OSF/1 version will offer that capability too (/usr/sys/conf/param.c). Regards, Roland -- ======================================================================== Digital Equipment GmbH Roland Meier Regional Support @HBF, Hamburg, Federal Republic of Germany Kieler Strasse 103 DTN *771-1215 D-2000 Hamburg 50 Pub.Tel. 49-40-85361-215 ======================================================================== VAXmail : hamul3::roland Internet : roland@hamul3.enet.dec.com AllInOne : Roland Meier @HBF ========================================================================