From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,65925da605c1dd50 X-Google-Attributes: gidf4671,public X-Google-Thread: fcfb9,594e400adc8f1378 X-Google-Attributes: gidfcfb9,public X-Google-Thread: 1164f8,b23f30c954cd197e X-Google-Attributes: gid1164f8,public From: Eric Osborne Subject: Real benefits of VLM (was Re: Will Sun leave the HW arena?) Date: 1998/05/11 Message-ID: <355779D1.623D@digital.com> X-Deja-AN: 352357623 Content-Transfer-Encoding: 7bit References: <6dos27$gr8@eve.enteract.com> <6hqscb$7np@charity.ucr.edu> <35423A19.76FB@digital.com> <6i45g2$b28@flonk.uk.sun.com> <01bd77f2$22df6a60$040101c0@osborneer2> <6iq1tk$cc3@flonk.uk.sun.com> Content-Type: text/plain; charset=us-ascii Organization: Digital Equipment Corporation - Marlboro, MA Mime-Version: 1.0 Newsgroups: comp.os.linux.advocacy,comp.sys.sun.hardware,comp.sys.dec 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.