Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: roland@hamul3.hbf.dec.com (Roland Meier)
Subject: Re: Our DEC Alpha is the slowest on this code ....
Date: 28 Aug 1993 15:35:03 GMT	[thread overview]
Message-ID: <25ntv7$66q@manala.fno.dec.com> (raw)
In-Reply-To: 25juna$n5e@polaris.unm.edu

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
========================================================================


  parent reply	other threads:[~1993-08-28 15:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-27  3:23 Our DEC Alpha is the slowest on this code Peter Espen
1993-08-27  9:29 ` Terry Kennedy, Operations Mgr.
1993-08-27 13:55 ` Marcus J. Ranum
1993-08-27 15:24   ` Brent McClure
1993-08-28 18:32     ` Fred Morris
1993-08-27 14:22 ` Dirk Grunwald
1993-08-27 16:16 ` Martin Minow
1993-08-27 21:40 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1993-09-02 14:55   ` delay_wbuffers (was Re: Our DEC Alpha is the slowest on this code ....) John Hascall
1993-09-02 18:16     ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1993-08-27 22:29 ` Our DEC Alpha is the slowest on this code Dirk Grunwald
1993-08-28 15:35 ` Roland Meier [this message]
1993-08-29 16:54   ` Dirk Grunwald
1993-08-31 12:35     ` Jari Tavi
1993-09-02  3:35       ` Thor Lancelot Simon
  -- strict thread matches above, loose matches on Subject: below --
1993-09-07 12:44 Brent Sterner
1993-09-08  0:20 ` Russ Jones
1993-09-08 13:26   ` Brent Sterner
1993-09-08 18:10     ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
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