Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Shane Sturrock <sss@nova.bru.ed.ac.uk>
To: axp-list@redhat.com
Subject: Re: SV: suggestions for udb
Date: Thu, 9 Dec 1999 08:35:02 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.10.9912090812040.22580-100000@nova.bru.ed.ac.uk> (raw)
In-Reply-To: <384EC03A.B6DCFD84@paralleldata.com>


On Wed, 8 Dec 1999, Wes Bauske wrote:

> > There sure are, for the same algorithm coded for the 64 bit architecture
> > we are now hitting 182 million on the 164LX compared with the 9 million
> > the celeron 400 gets. 
> 
> Would you care to elaborate on your performance change
> vs your last note?

OK, I'll expand a little on it.
> 
> The only way I know of to improve code performance by over
> 7x (25->182) is to either drastically alter the algorithm

Typically in my field this is the approach taken, the Smith and Waterman
algorithm is described as an exhaustive dynamic programming algorithm and
is considered too time consuming to run on general purpose processors.
The usual way to deal with this is to run it on supercomputers (we used to
use a MasPar with 16384 processing elements) or to use some form of custom
chip in the form of dedicated silicon or a programmable gate array chip.

For workstation use the usual method is to use an heuristic method which
disposes of a large portion of the database by a simple prefilter scan
which can be performed very quickly.  These generally rely on doing word
matches and sequences are scored based on the number of word matches they
have, then a Smith and Waterman algorithm is used on any likely matches,
typically 1-10% of the database.  This method while fast runs the risk of
losing significant hits thus it would be preferable to have a full Smith
and Waterman algorithm but the cost of hardware puts limits on this.

> or to compare optimized compiles against non-optimized
> compiles. The first is valid but then you compare apples 
> and oranges. The second bears little resemblance to a valid
> performance comparison.

Indeed.  However, there is a third way.
> 
> If you have a third way, I'd like to hear about it.

Micro-parallelism which uses the 64 bit word to do multiple integer
operations on several less than 64 bit numbers.  By using this we can do
the full Smith and Waterman algorithm at the sort of speeds others are
getting from the cut down heuristic algorithms and not suffer the
sensitivity penalties that they do.  It's really neat stuff!

Here is a reference that covers the topic pretty thoroughly:

http://www.supercomp.org/sc95/proceedings/549_LCAR/SC95.HTM

This was the work that got us interested.

Shane


  reply	other threads:[~1999-12-09  8:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-08  7:00 SV: suggestions for udb Wes Bauske
1999-12-08  8:39 ` Shane Sturrock
1999-12-08  9:43   ` Stefan Schroepfer
1999-12-08  9:49     ` Shane Sturrock
1999-12-08 10:50       ` Stefan Schroepfer
1999-12-08 20:31   ` Wes Bauske
1999-12-09  8:35     ` Shane Sturrock [this message]
1999-12-09 20:03       ` Wes Bauske
1999-12-10  8:31         ` Shane Sturrock
  -- strict thread matches above, loose matches on Subject: below --
1999-12-15  2:53 Ken Hansen
1999-12-15 10:06 ` Uncle George
1999-12-15 16:54   ` Wes Bauske
1999-12-06 20:30 Paul B. Brown
1999-12-06 21:21 ` SV: " Jonas Gustavsson
1999-12-06 22:27   ` Paul B. Brown
1999-12-07  1:33     ` Rich Payne
1999-12-07  8:42     ` Shane Sturrock
1999-12-08 18:27       ` Paul B. Brown
1999-12-09  8:09         ` Shane Sturrock
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