Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Eric Osborne <Eric.D.Osborne@digital.com>
Subject: Real benefits of VLM (was Re: Will Sun leave the HW arena?)
Date: 1998/05/11	[thread overview]
Message-ID: <355779D1.623D@digital.com> (raw)
In-Reply-To: 6iq1tk$cc3@flonk.uk.sun.com


Andrew Harrison SUNUK Consultancy wrote:

> 
> Come on produce some real customerexamples of production databases on Alphas
> that get benefits from VLM 64 that could not
> be obtained using a 32 bit system. I am sure
> you can find some HPC examples but that
> isn't the question.
> 

Actually, VLM is useful for many things other than HPC.

You seem to think that because some existing benchmarks
don't show any particular improvement on VLM systems
that this implies that VLM isn't useful. It's really
more a failure of the benchmarks themselves, and why
I (and other Digital people) so heavily promote the
benchmarking of end-customer applications.

Let me explain. Consider, for instance, the 
typical ISV. They will more often than not
(at least if they're sane) produce their product
from a single code base. Since they want the code
base to be as consistent as possible across platforms,
that generally implies that the "64-bit" versions
on DU are simple re-compiles, which pick up the 
ability to use larger amounts of memory in the 
form of big linearly addressed buffers.

Now, this is a useful thing, but is by no
means the only - or perhaps not even the most
important - place where performance gains are
realized.

The bigger hits come in the form of new 
algorithms that exploit the larger address
space. That's where straight recompiles of
32 bit code fail to take advantage of the
architecture, and is where many benchmarks
fail - because THE CODE IS SPECIFIED AS A
PART OF THE TEST, AND THE CODE IS OPTIMIZED
FOR 32 BIT SYSTEMS. It's rather like racing
an airplane against a car, but forcing the
plane to stay on the ground. Hardly a true test
of the real performance.

Real customers aren't constrained by a set of
artificial rules from modifying their applications.
So they can, and do, make changes that DO use
64 bit abilities.

Consider, for instance, a simple situation where
one might have 20GB of data, organized into some set
of fixed length records. A typical customer scenario,
no? Now, suppose that one needs to sort that data
(or produce an index of a previously un-indexed field).

On a 32-bit system, the typical approach, in a kind of
pseudo-code, would look something like this :


	Read data into managable chunks (2GB max)
	Sort the chunk
	Write the chunk to a temporary file
	Do a balanced merge sort on the temporary files


While conceptually simple, it's a lot of code. Easily
hundreds of lines, maybe thousands.

On a 64-bit system, it's more like this:
	Open the file
	Memory map the file
	Call qsort

It's literally 3 lines, plus the comparison function needed
by qsort. So, from a software development time, and from the
perspective of the amount of code to be maintained, you've 
reduced overhead by perhaps 2-3 orders of magnitude. That
translates to enormous long term cost savings to the developers.
Industry averages expect about what, 10 lines of code per day
from a programmer? And maintenence is 90% of long term software
cost. And, of course, by reducing the code path, you get noticable
performance gains.

As an interesting side effect, on a 32 bit system you normally
end up doing lseek-read pairs to position and read the data.
Even if your file system supports files > 2GB, you can't memory
map more. Thus the lseek-read approach to random file I/O. Since
both lseek and read are system calls, that requires a minimum of 
2 context switches per record, with a possible 3rd when the 
physical I/O occurs (if the data isn't in buffer cache). Context
switching causes cache flushing, with an associated impact on
performance - especially on deeply pipelined RISC systems.

With 64 bits, you memory map the entire file space. No reads
or lseeks are required - you treat the data as a memory reference,
so there's no context switch if the data is in buffer cache, and 
only one if physical I/O occurs. Note that you can mmap areas larger
than physical memory, so you can mmap tens of GB if you want to.
Then, if your system does take advantage of large physical memory, 
you can get better data locality because of larger cache. The net 
result is often performance increases of perhaps 200-300% or more,
depending upon the amount of cache thrashing induced by the context
switching - and that's assuming that the buffer cache sizes between
the two systems are relatively constant.

For many kinds of data - Social Security number, credit card
numbers, telephone numbers, ZIP codes - anything that can be
indexed by big numerical values -  you can actually direct map
the value into sparsely populated flat files, using the value
(say the telephone #) as an array index - and treat the data as a huge
linear array. For many of these applications, you can totally
eliminate the need for a relational database or complex hashing
techniques with very short C programs. I can, for instance,
give you a program that could keep a record for every possible 
Social Security # in the US with maybe as little as 30 lines of code,
and let you look it up by the #. The same code will work on all
ten billion possible US phone numbers, or on credit card numbers.
Wrap that little bit of code with some reliabiity and journaling 
code, and you can do wonders with VERY high speed transaction 
processing.

On a different front, many customers have relatively small 
databases (say 6-10GB), but VERY high transaction volumes.
I've seen a customr get more than 16,000 queries per second
out of a single 4-processor node when using a fully-cached
database. You just can't do that when you have to go to disk.

These techniques ARE being used by customers - I've personally been
involved in the sale of DOZENS of 8400's that do this. And, more
recently, innovative software companies like Norbert Technologies
(who make data mart products) are beginning to take advantage
of these algorithmic advantages.

When they do, they get performance that just can't be touched
by 32 bit systems. As mainstream database vendors take the leap,
with the implied deviation between 32 and 64 bit flavors of their
products, the 32 bit systems will be inevitably left behind.

And I'm sure, Andrew, that is why Sun - and HP, and IBM -
are spending vast sums of R&D money trying to implement
technology that you keep saying is unimportant.
	
> Don't include AltaVista, its lost its top
> place in the Internet search engine stakes
> at least if any of the crop of Internet Magazine
> reviews are to be believed to Yahoo, Excite and
> Infoseek all of which use 32 bit Systems.


I won't fight this one, other than to say "lost in what way?"
They still, as far as I know, get the most SEARCH requests. These
other guys - especially Yahoo - have a lot of content that is 
pre-indexed content. The AV search engine also searches a lot
more pages than the others. And, I believe it's still considered
the fastest. Now, that may not imply that it gets the most 
hits-per-day, but that's an issue of marketing, not technology.

Eric Osborne
Senior Consultant
Digital Equipment Corporation

----------------------------------------------------------------
The opinions expressed above are my own, and should not be
construed to represent any official statement by Digital
Equipment Corporation.



  reply	other threads:[~1998-05-11  4:00 UTC|newest]

Thread overview: 191+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6dos27$gr8@eve.enteract.com>
     [not found] ` <3516F777.4068@Japan.ML.COM>
     [not found]   ` <3517E01A.A166EDDD@mitretek.org>
     [not found]     ` <6f9ul8$84s$10@blue.hex.net>
     [not found]       ` <EqDwor.8st@bilver.magicnet.net>
     [not found]         ` <6fbuni$n7$1@nnrp1.dejanews.com>
     [not found]           ` <6fe0bf$46d$1@mailhost.sign-tronic.dk>
     [not found]             ` <6fjdf0$e10$1@nnrp1.dejanews.com>
1998-03-30  5:00               ` Will Sun leave the HW arena? Erik Corry
1998-03-30  5:00                 ` Terry Shannon
1998-03-30  5:00                   ` Mark Maurer
1998-03-30  5:00                   ` Ralph Finch
1998-03-30  5:00                   ` BRUCE FAUST
1998-03-30  5:00                     ` Terry Shannon
1998-03-30  5:00                 ` Darin Johnson
1998-04-01  5:00                 ` Stuart Krivis
1998-04-02  5:00                   ` Terry Shannon
1998-04-02  5:00                     ` Steve Kappel
1998-04-02  5:00                       ` Terry Shannon
1998-04-02  5:00                         ` Steve Kappel
1998-04-03  5:00                           ` Terry Shannon
1998-04-03  5:00                             ` Butch
1998-04-04  5:00                               ` Terry Shannon
1998-04-13  4:00                                 ` Casper H.S. Dik - Network Security Engineer
1998-04-13  4:00                                   ` Jeffrey J. Potoff
1998-04-15  4:00                                 ` Andrew Harrison SUNUK Consultancy
1998-04-16  4:00                                   ` Matthias Dolder
1998-04-16  4:00                                     ` Andrew Harrison SUNUK Consultancy
1998-04-17  4:00                                       ` Matthias Dolder
1998-04-20  4:00                                         ` Andrew Harrison SUNUK Consultancy
1998-04-23  4:00                                           ` Matthias Dolder
1998-04-19  4:00                                       ` Dave Weatherall
1998-04-16  4:00                                     ` Casper H.S. Dik - Network Security Engineer
1998-04-17  4:00                                       ` Matthias Dolder
1998-04-20  4:00                                         ` Andrew Harrison SUNUK Consultancy
1998-04-20  4:00                                           ` Dirk Grunwald
1998-04-17  4:00                                       ` Mark & Suzanne (gcs might work)
1998-04-17  4:00                                         ` Casper H.S. Dik - Network Security Engineer
1998-04-18  4:00                                         ` Paul DeMone
1998-04-18  4:00                                           ` Casper H.S. Dik - Network Security Engineer
1998-04-18  4:00                                             ` Anil Thomas Maliyekkel
1998-04-18  4:00                                             ` Paul DeMone
1998-04-19  4:00                                         ` Dave Weatherall
     [not found]                             ` <spam-ya024 <6h2pla$2e9@flonk.uk.sun.com>
1998-04-15  4:00                               ` Bill Moyer
1998-04-16  4:00                             ` Terry Shannon
1998-04-17  4:00                               ` Casper H.S. Dik - Network Security Engineer
1998-04-17  4:00                                 ` Mark & Suzanne (gcs might work)
1998-04-17  4:00                                   ` Casper H.S. Dik - Network Security Engineer
1998-04-17  4:00                                   ` R!ch Teer
     [not found]                             ` <353673FA.2 <35375A0B.446B@s054.aone.net.au>
1998-04-17  4:00                               ` Ian G Batten
1998-05-03  4:00                                 ` Paul Eggert
     [not found]                             ` <353673fa.2f58@world.std.com>
1998-04-17  4:00                               ` Rob Young
     [not found]                             ` <353613ED.6 <qxpbttwtm1m.fsf@foobar.cs.colorado.edu>
1998-04-21  4:00                               ` Ian G Batten
1998-04-21  4:00                                 ` Bill Moyer
     [not found]                             ` <353757C7.2 <casper.892851989@uk-usenet.uk.sun.com>
1998-04-22  4:00                               ` Burkhard Neidecker-Lutz
1998-04-23  4:00                                 ` Dan Pop
1998-04-27  4:00                                   ` Burkhard Neidecker-Lutz
     [not found]                             ` <spam-ya024 <6hfv49$lpq@flonk.uk.sun.com>
1998-04-23  4:00                               ` Donal K. Fellows
1998-04-24  4:00                                 ` Andrew Harrison SUNUK Consultancy
1998-04-24  4:00                                   ` Donal K. Fellows
1998-04-24  4:00                                     ` Andrew Harrison SUNUK Consultancy
1998-04-24  4:00                                       ` Terry Shannon
1998-04-30  4:00                                   ` Matthias Dolder
1998-04-13  4:00                         ` Casper H.S. Dik - Network Security Engineer
     [not found]                           ` <caspe <35364D66.2284@rhea.umd.edu>
1998-04-17  4:00                             ` Ian G Batten
1998-04-27  4:00                               ` Jeffrey J. Potoff
1998-04-28  4:00                                 ` Ian G Batten
1998-04-29  4:00                                   ` Jeffrey J. Potoff
1998-04-30  4:00                                     ` Christopher Browne
1998-04-30  4:00                                       ` o
1998-05-05  4:00                                         ` Jeffrey J. Potoff
1998-04-30  4:00                                       ` Scott Walters
1998-04-30  4:00                                         ` Galaxy Stuff (Re: Will Sun leave the HW arena?) Terry Shannon
     [not found]                           ` <caspe <3536AB41.263650D9@zuo.dec.com>
1998-04-20  4:00                             ` Will Sun leave the HW arena? sconleynospam
1998-04-21  4:00                               ` Steve Kappel
1998-04-23  4:00                                 ` Steve Conley
1998-04-24  4:00                                   ` Steve Kappel
1998-04-25  4:00                               ` Karsten M. Self
     [not found]                           ` <caspe <6hl1vd$251$1@aquila.mdx.ac.uk>
1998-04-24  4:00                             ` Chris Ulrich
1998-04-24  4:00                               ` Terry Shannon
1998-04-25  4:00                               ` Eric Osborne
1998-04-28  4:00                                 ` Andrew Harrison SUNUK Consultancy
1998-04-28  4:00                                   ` Brad Hughes
1998-04-28  4:00                                   ` Larry Kilgallen
1998-04-28  4:00                                     ` Casper H.S. Dik - Network Security Engineer
1998-04-28  4:00                                       ` Terry Shannon
1998-04-29  4:00                                         ` Andrew Harrison SUNUK Consultancy
1998-05-01  4:00                                           ` Joshua Cope
1998-05-01  4:00                                             ` Steve Kappel
1998-05-01  4:00                                               ` Terry Shannon
1998-05-02  4:00                                                 ` Lupe Christoph
1998-05-02  4:00                                                 ` Terry Shannon
1998-05-02  4:00                                                 ` Michael David Jones
     [not found]                                                 ` <casper.8941 <1998may2.110235.1@eisner>
1998-05-02  4:00                                                   ` Rob Young
1998-05-02  4:00                                                 ` Casper H.S. Dik - Network Security Engineer
1998-05-02  4:00                                                   ` Larry Kilgallen
     [not found]                                                 ` <6ifgpl$85i$ <354B5E16.7CC6@world.std.com>
1998-05-03  4:00                                                   ` Casper H.S. Dik - Network Security Engineer
1998-05-03  4:00                                                   ` Lupe Christoph
1998-05-03  4:00                                                 ` Terry Shannon
1998-05-04  4:00                                               ` Joshua Cope
1998-05-01  4:00                                             ` Michael David Jones
1998-05-03  4:00                                           ` Dynamic Domains and sliced bread (was Re: Will Sun leave the HW arena?) Bill Walker
1998-05-10  4:00                                             ` Paul Repacholi ( prep )
1998-04-28  4:00                                       ` Will Sun leave the HW arena? Larry Kilgallen
1998-04-28  4:00                                         ` ChannelDude
1998-04-29  4:00                                           ` Ian G Batten
1998-04-29  4:00                                             ` Terry Shannon
1998-04-30  4:00                                               ` Joshua Cope
1998-04-30  4:00                                                 ` Terry Shannon
     [not found]                                         ` <casper.893839707@uk-usenet.uk.sun.com>
1998-04-30  4:00                                           ` Joshua Cope
1998-04-29  4:00                                       ` Toon Moene
1998-04-30  4:00                                         ` Mike Fischbein
1998-04-30  4:00                                         ` Kevin P. Neal
1998-04-29  4:00                                   ` 2+2=5???? (was Re: Will Sun leave the HW arena?) Eric Osborne
1998-05-05  4:00                                   ` Will Sun leave the HW arena? Eric D. Osborne
1998-05-06  4:00                                     ` Andrew Harrison SUNUK Consultancy
1998-05-11  4:00                                       ` Eric Osborne [this message]
     [not found]                           ` <caspe <6hpkdl$avt@flonk.uk.sun.com>
1998-04-27  4:00                             ` Burkhard Neidecker-Lutz
     [not found]                         ` <7YTU.111$T51.375676@ptah.vis <casper.892468977@uk-usenet.uk.sun.com>
1998-04-14  4:00                           ` Paul DeMone
1998-04-14  4:00                             ` Casper H.S. Dik - Network Security Engineer
1998-04-16  4:00                               ` Agtabby
1998-04-14  4:00                             ` Steve Kappel
1998-04-14  4:00                               ` Terry Shannon
1998-04-14  4:00                                 ` Steve Kappel
1998-04-14  4:00                                   ` Terry Shannon
1998-04-15  4:00                                     ` Anil Thomas Maliyekkel
1998-04-15  4:00                                       ` Egg
1998-04-15  4:00                                       ` Terry Shannon
1998-04-16  4:00                                         ` Steve Kappel
1998-04-16  4:00                                           ` Terry Shannon
1998-04-16  4:00                                             ` Steve Kappel
1998-04-16  4:00                                               ` Terry Shannon
1998-04-17  4:00                                                 ` Steve Kappel
1998-04-17  4:00                                                   ` Terry Shannon
1998-04-15  4:00                                     ` Steve Kappel
1998-04-15  4:00                                       ` Terry Shannon
1998-04-15  4:00                               ` Paul DeMone
1998-04-15  4:00                                 ` Steve Kappel
1998-04-16  4:00                                 ` Andrew Harrison SUNUK Consultancy
1998-04-16  4:00                                   ` Jeffrey J. Potoff
1998-04-16  4:00                                     ` Troy Baer
1998-04-17  4:00                                       ` Krste Asanovic
1998-04-17  4:00                                         ` Troy Baer
1998-04-16  4:00                                   ` Paul DeMone
1998-04-17  4:00                                     ` Anil Thomas Maliyekkel
1998-04-17  4:00                                   ` Matthias Dolder
1998-04-20  4:00                                     ` Andrew Harrison SUNUK Consultancy
1998-04-20  4:00                                       ` Rob Young
1998-04-20  4:00                                         ` Steve Conley
1998-04-20  4:00                                           ` Nathan Gelbard
1998-04-21  4:00                                           ` Scott Walters
1998-04-21  4:00                                         ` Ian G Batten
1998-04-23  4:00                                           ` Dave Weatherall
1998-04-24  4:00                                             ` Jarod Jenson
1998-04-27  4:00                                               ` Ian G Batten
1998-04-30  4:00                                                 ` Dave Weatherall
1998-04-30  4:00                                                   ` Ian G Batten
1998-05-01  4:00                                                     ` Dave Weatherall
1998-04-21  4:00                                       ` Matthias Dolder
1998-04-22  4:00                                         ` Andrew Harrison SUNUK Consultancy
1998-04-22  4:00                                           ` Terry Shannon
1998-04-23  4:00                                           ` Matthias Dolder
1998-04-24  4:00                                             ` Andrew Harrison SUNUK Consultancy
1998-05-01  4:00                                               ` Matthias Dolder
1998-04-22  4:00                                         ` D.Webb
1998-04-22  4:00                                           ` Casper H.S. Dik - Network Security Engineer
1998-04-24  4:00                                             ` Rob Young
1998-04-24  4:00                                               ` D.Webb
1998-04-28  4:00                                                 ` Andrew Harrison SUNUK Consultancy
1998-04-29  4:00                                                   ` J.L. Sue
1998-04-29  4:00                                                   ` Rob Young
1998-04-29  4:00                                                     ` Andrew Harrison SUNUK Consultancy
1998-04-30  4:00                                                       ` Rob Young
1998-04-30  4:00                                                         ` Andrew Harrison SUNUK Consultancy
1998-04-30  4:00                                                           ` Larry Kilgallen
1998-05-06  4:00                                                       ` Matthias Dolder
1998-05-06  4:00                                                         ` Andrew Harrison SUNUK Consultancy
1998-05-06  4:00                                                           ` Terry Shannon
1998-05-07  4:00                                                           ` Larry Kilgallen
1998-05-11  4:00                                                             ` Andrew Harrison SUNUK Consultancy
1998-05-12  4:00                                                               ` Andrew Harrison SUNUK Consultancy
1998-05-16  4:00                                                                 ` Matthias Dolder
1998-05-19  4:00                                                                   ` Andrew Harrison SUNUK Consultancy
1998-06-02  4:00                                                                     ` Matthias Dolder
1998-06-09  4:00                                                                       ` Andrew Harrison SUNUK Consultancy
1998-05-12  4:00                                                               ` Rob Young
1998-05-14  4:00                                                               ` Andrew Harrison SUNUK Consultancy
1998-05-15  4:00                                                                 ` Douglas H. Borsom
1998-05-18  4:00                                                                   ` Andrew Harrison SUNUK Consultancy
1998-05-12  4:00                                                           ` Matthias Dolder
1998-04-24  4:00                                               ` Andrew Harrison SUNUK Consultancy
1998-04-24  4:00                                                 ` Lone_Wolf
1998-04-27  4:00                                                 ` Ian G Batten
1998-04-23  4:00                                           ` Andrew Harrison SUNUK Consultancy
1998-04-27  4:00                                           ` D.Webb
1998-04-19  4:00                           ` Rajat Datta
1998-05-16  4:00               ` Terry Shannon
     [not found]               ` <6f <borsom-1505980854450001@bos-ma10-10.ix.netcom.com>
1998-05-17  4:00                 ` Casper H.S. Dik - Network Security Engineer
1998-05-18  4:00               ` DEC Noit In HPTC Market? (was " Terry Shannon
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