Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: dave@willfork.com (Drazen Kacar)
Subject: Re: Alpha vs. Itanic:  facts vs. FUD
Date: 5 Dec 2001 03:01:43 GMT	[thread overview]
Message-ID: <slrna0r3gn.8cn.dave@raven.arsdigita.de> (raw)
In-Reply-To: rb2P7.73382$ox2.4429587@bin4.nnrp.aus1.giganews.com

Bill Todd wrote:
>  
>  "Drazen Kacar" <dave@willfork.com> wrote in message
>  news:slrna0p3u4.7bm.dave@raven.arsdigita.de...
> > Bill Todd wrote:
> >
> > >  1.  Fact:  SPECint2000 performance for today's top-of-the-line (800
>  MHz)
> > >  Itanium is abysmal:  314 for a Dell configuration and 342 for an HP
>  (values
> > >  of 365 and 379 have also been listed by HP but reportedly use an ILP32
> > >  compiler, which is hardly a generally-useful choice for a 64-bit
>  processor).
> >
> > Why do you think so?
>  
>  If you're asking why I think that limiting pointers to 32 bits is hardly a
>  generally-useful choice for a 64-bit processor, I'll answer that you might
>  as well be using a Xeon-like 32-bit processor if you can do so.

I'm not very familiar with x86 processors, so I don't know what you mean.

>   How do you explain the fact that a certain number of
> > Alpha SPEC submissions were produced with -taso compiler option which
> > forces 32-bit pointers?
>  
>  I don't explain it, because I wasn't aware of it.  If it's so, it's as
>  dubious as HP's practice above (unless it was produced before DEC *had* a
>  useable 64-bit compiler, or occurred on VMS before VMS supported 64-bit
>  pointers, either of which would be a reasonable excuse.

I don't think so. The latest Compaq submission for Alpha lists
-xtaso_short option for several benchmarks.

http://www.spec.org/osg/cpu2000/results/res2001q4/cpu2000-20011022-01046.html

And the explanation for the flag tells us:

   -xtaso_short (Compaq C) 
       Directs the compiler to allocate 32-bit pointers by default.  You
       can still use 64-bit pointers, but only by the use of pragmas. [...]

>  FAIK that *could* have been HP's excuse as well:  I was just pointing
>  out that use of such could inflate the performance numbers when
>  compared with a fully-64-bit compiler, which I assumed - I hope with
>  some justification - was the norm when testing 64-bit processors).

Not really, I think. The norm seems to be: whichever combination of
options and settings produces the best result. So you'll find submissions
for Unix systems produced in single-user mode, which is hardly a
generally-useful choice for a Unix system. Or you'll find them with
kernel settings which affect L2 cache policy, so that different runs of
a program might produce different results, but some of them will be
somewhat better than without that kernel setting. This used to be quite
popular on SPARCs under Solaris. And there are other little tricks like
this, all done in pursuit of the highest number.

Anyway, I brought this subject up because it seems to me that it's
fairly important. There once was a paper on DEC site which reported their
performance measurements with respect to pointer size, done on early
Alphas. They had two bad things to report:

1. If your application needs a lot of memory, it might happen that its
   data won't fit in physical RAM in case it uses 64-bit pointers, although
   it would if it used 32-bit pointers. Then you'll see some swapping if you
   use 64-bit pointers. That could have disasterous effects on performance.

2. 32-bit pointers take twice less space in the CPU cache, so you might see
   better performance because of this. The worst example they had was
   performance downgrade of 12%, I think, but the average was less than
   that.

But they chose to ship a Unix system with the default 64-bit pointer
compilation environment. While this choice introduced measurable
performance decrease, it had the benefit of only one ABI and only one set
of libraries. It was a good trade-off, IMO.

I don't know if that paper is still available from somewhere.

I'd tend to ignore the first problem because of a "buy more RAM"
solution. The second one is interesting, though. There's a small class of
applications which will benefit from LP64 environment. Those that could
use more than 4GB of memory and those that perform a lot of 64-bit
integer calculations.

Big memory consumers are largely databases and 64-bit CPUs are benefitial
for them. There are ways to use more than 4GB even with 32-bit CPU, but
as far as I'm aware, that requires changes to the application code, so
it's not an extremely good solution. Further, CPU cache utilization for data
will probably not have that much impact if you're actually using 4 gigs
of RAM. I would guess that TLB trashing might have greater impact in
these cases, but I have no data to prove it.

In any case, databases are important.

The second category appears to be fairly small. It has been recently
pointed out to me that one such program is seti@home. I have no reason
not to trust the source of information, but I don't know of any other
program in this category.

It's also interesting to point out that seti@home probably doesn't
require 64-bit pointers. It just needs 64-bit integer arithmetic, so
stating that it would benefit from LP64 environment is somewhat
misleading. Take SPARCs, for example. On recent Solaris releases you have
two environments on 64-bit CPUs: ILP32 and LP64. There is no way to have
32-bit pointers and 64-bit longs. The CPU wouldn't have problems with
that, but the OS doesn't support it. The legacy ILP32 environment doesn't
allocate enough space to store 64-bit registers on context-switch, so you
can't use the upper 32 bits of integer registers there. The new LP64
environment uses 64 bits for pointers and longs. Sun could have
introduced a third environment which would feature 32-bit pointers and
64-bit longs, so seti@home would run even faster, but that means having
yet another ABI and yet another set of libraries. I'm quite thankful
that they didn't do this.

However, with -taso on Tru64, you can have 32-bit pointers and 64-bit
integer arithmetic, if you're willing to spend some time to set it up.
I regard -taso as one of the optimization options to be used when one
needs to squeeze the last few percent of the performance from the
compiler. It's very nice that it's there, but I wouldn't use it every
day, because there's a price to be paid.

There's one benefit you'd get from migrating to 64-bit environment on
operating systems which were running on 32-bit environments (Solaris and
IRIX, for example): since it's a migration to the new ABI, the vendor
will get a chance to fix some stuff that couldn't be fixed in 32-bit ABI
because of binary compatibility issues. This probably isn't applicable to
Alpha, but just for the record.

Time to make a point, I suppose. The above text says that I wasn't able
to find a lot of applications which would benefit from 64-bit
environments. (And I've been looking for them.)

That means that your good old 32-bit apps are perfectly adequate and will
usually perform a few percents faster than 64-bit apps. So why would
anyone go through the pains of converting their 32-bit apps to 64-bit
apps? Except for the database vendors, of course.

I remember the time when Digital released its 64-bit Unix on Alpha.
A huge number of free software programs had problems. They just weren't
64-bit clean, which was not a surprise, because they were never tested on
a 64-bit environment. AFAIK, at the time Digital had the best BSD/SYSV
support in their OS, so it largely wasn't a question of the APIs that were
used in the applications.

It took quite some time to clean the apps. And this is a task where free
software community is traditionally better that closed source software
vendors, because anybody can do it. Digital's lint implementation was a
big help for me, I have to say. But I have no reason to believe that
commercial software would be ported any time soon to 64 bits if there are
no visible benefits. So just databases and scientific applications with a
huge data sets? Hmm, but you have them already running perfectly fine on
your current 64-bit OS and CPU.

Since I'm not following IA-64 very closely, I'll have to admit that I
don't know which OS is supposed to be the most important OS for that CPU.
If it's something coming from Microsoft, I'd estimate that the porting
effort for all third party applications would take a lot of time, because
the applications were never tested on a 64-bit OS. Unix people had a lot of
problems and I don't see why Microsoft nation wouldn't.

I've also seen reports stating that IA-64 doesn't run legacy x86 code
with a remarkable speed. I don't know if that's true, but if it is,
you'll have a problem with IA-64. Software vendors are just going to tell
you that they see no reason to port to 64-bit IA-64 environment when you
can spend less money on x86 solution (Hammer, maybe) and get a better
performance from their software.

-- 
 .-.   .-.    Unlike good wine, bullshit doesn't improve with age.
(_  \ /  _)                                                    -- John McLean
     |        dave@willfork.com
     |


  parent reply	other threads:[~2001-12-05  3:01 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-04  7:44 Alpha vs. Itanic: facts vs. FUD Bill Todd
2001-12-04  8:18 ` Dr. Dweeb.
2001-12-04 12:57   ` Bill Todd
2001-12-07 14:16     ` brad.madison
2001-12-07 16:25       ` Jan Vorbrueggen
2001-12-07 22:04         ` brad.madison
2001-12-07 22:35         ` Rupert Pigott
2001-12-10  8:29           ` Jan Vorbrueggen
2001-12-10 13:05             ` Larry Kilgallen
2001-12-07 21:15       ` Bill Todd
2001-12-04  8:56 ` Drazen Kacar
2001-12-04 11:11   ` Bill Todd
2001-12-04 14:31     ` Tarjei T. Jensen
2001-12-04 13:05       ` jmfbahciv
2001-12-04 15:36       ` Dr. Dweeb.
2001-12-04 15:49         ` Chris Morgan
2001-12-04 17:13       ` Bill Todd
2001-12-05  8:24         ` Tarjei T. Jensen
2001-12-05  8:15       ` Ketil Z Malde
2001-12-05  3:01     ` Drazen Kacar [this message]
2001-12-05  9:38       ` Martin Knoblauch
2001-12-04 13:28   ` Jan Vorbrueggen
2001-12-04 16:27   ` Rupert Pigott
2001-12-05 10:42     ` Anton Ertl
2001-12-04 10:18 ` Tim Shoppa
2001-12-04 12:53   ` David Brown
2001-12-04 13:08     ` Martin Knoblauch
2001-12-04 21:28       ` Toon Moene
2001-12-04 13:34     ` Bill Todd
2001-12-04 13:01       ` jmfbahciv
2001-12-04 15:46       ` Bernd Paysan
2001-12-04 16:09         ` Nick Maclaren
2001-12-04 14:10     ` Bill Gunshannon
2001-12-04 13:03       ` jmfbahciv
2001-12-06 15:34         ` Jan Vorbrueggen
2001-12-07 22:23           ` brad.madison
2001-12-05  7:03     ` Nikola Milutinovic
2001-12-05  8:13       ` cjt
2001-12-07 16:47       ` Wow
2001-12-04 16:30 ` JF Mezei
2001-12-04 17:31   ` Bill Todd
2001-12-05  8:28   ` Ren� Schelbaum
2001-12-05  9:31   ` Ketil Z Malde
2001-12-04 23:25 ` Dirk Munk
2001-12-05 14:44 ` Robert Harley
2001-12-05 19:41   ` Maynard Handley
2001-12-06  8:29     ` Jan Vorbrueggen
2001-12-06 13:59       ` Bob Koehler
2001-12-07 16:03         ` Bill Gunshannon
2001-12-10 14:14           ` Bob Koehler
2001-12-10 17:42             ` Bill Gunshannon
2001-12-10 20:57               ` Bob Koehler
2001-12-11 13:59                 ` Bill Gunshannon
2001-12-06 15:11   ` Rupert Pigott
2001-12-06 15:48     ` Martin Høyer Kristiansen
2001-12-06 16:04     ` Stefan Monnier <foo@acm.com>
     [not found]     ` <1007655875.856279@haldjas.folklore.ee>
2001-12-07  8:39       ` Sid Ahmed Ali TOUATI
2001-12-07 15:23         ` Rupert Pigott
2001-12-07 19:51           ` Bill Todd
2001-12-12 22:39 ` Robert Harley
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