🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.hardware
Article #860

Re: P4 vs Athlon for Linux latexing, is gcc-2.95 responsible?

#860
From: Robert Myers
Date: Sun, 16 Jun 2002 09:30
69 lines
4915 bytes
Oh, geez, here we go again.

----- Original Message -----
From: "Hugh" <hugh@nospam.com>
Newsgroups:
comp.os.linux.hardware,gnu.gcc,comp.sys.ibm.pc.hardware.chips,comp.text.tex
Sent: Saturday, June 15, 2002 11:05 AM
Subject: P4 vs Athlon for Linux latexing, is gcc-2.95 responsible?


> The following is my general finding so far:
>
> Special features of Pentium 4 cpu is not generally utilized
> by gcc-2.95.** which is used for most Linux distributions rpms.
> Latexing a big document with Zeon Pentium 4 at 1.7GHz (52 sec) is actually
> even slower than Pentium III running at 700MHz giving 35 sec.
>
> On Athlon at 1.6GHz, it gives 16 sec.  The best.
>
> Is my understanding for the reason of slow speed with P4 correct?
> gcc-2.95.  If I do obtain te-latex.src.rpm and then compile it
> with gcc-3.1, would I get much faster binary under Pentium 4?
>
An even more interesting question would be whether Intel's own compiler,
icc, which for Linux is available free for personal use, would give better
results.  If anybody should be able to write a compiler to exploit the
strengths of the P4 and to minimize its weaknesses, it should be Intel.  At
least up until gcc 3.0, icc generally beat the pants off gcc.  Even RedHat,
which isn't known for being conservative about new releases, has yet to
bless and release a distribution of gcc 3.0, and if RedHat isn't ready to go
there, neither am I.

> The problem with Pentium 4 is not just limited with Latex.
> I in fact hate Pentium 4, because I simply believed in
> their high SPEC rating, and bought a bunch of Pentium 4 Xeon
> duals only to find out that the even the Fortran speed
> (with their Intel compiler) is in fact dismal.
>
In my still very brief study of the situation, I have found that Intel's own
compiler makes very conservative assumptions about possible vector (array)
dependence in loops and will often fail to vectorize loops that can, in
fact, be vectorized if you modify the code to make it explicit that a vector
dependency is not possible.

Without SSE2, which requires that loops be vectorized, a 1.7GHz P2 is a very
weak foating point performer, as many have noted, and as you have confirmed
for yourself.  If I take naive code compiled with icc, my overclocked
Celeron running at 1.5MHz will beat a 1.7GHz P4 every time.

If you're using a Fortran compiler, it almost certainly means you're doing
scientific computation, and that almost certainly means you have code full
of loops using pointers (arrays) that are just dying to be vectorized.  If
you're using single precision, SSE2 is worth a factor of four in throughput;
for single precision it's worth a factor of two, generally with lower
instruction latencies.

The fact that you have dual Xeon's is not likely to help much unless you
have specifically written software to exploit the availability of more than
one processor.  You may find it worthwhile to explore Intel's math kernel,
also free for personal use.

The design decisions behind the P4 seem mostly to have been driven by the
need to get multi-media performance, at which the processor excels.  It is
probably possible to turn the P4 into a decent number-cruncher, but not
without some work.  A processor that requires special code to get decent
performance is not especially attractive, and if the P4 weren't an Intel
product, no one would be using it.  As it is, the future of high-performance
personal computing looks like it belongs to the P4 for the forseeable
future, so we might as well get used to it.
Technical Details
Message-ID: <cVYO8.93284$pw3.4355@sccrnsc03>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc03.POSTED!not-for-mail
References: <3D0B57CB.5060406@nospam.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9e16,ea3300a83f1f851c
X-Google-Attributes: gidf9e16,public
X-Google-Thread: 1045b9,ea3300a83f1f851c
X-Google-Attributes: gid1045b9,public
X-Google-Thread: 102b32,ea3300a83f1f851c
X-Google-Attributes: gid102b32,public
X-Google-Thread: f65d0,ea3300a83f1f851c
X-Google-Attributes: gidf65d0,public
X-Google-ArrivalTime: 2002-06-16 02:30:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc03.POSTED!not-for-mail
From: "Robert Myers" <rmyers1400@attbi.com>
Newsgroups: comp.os.linux.hardware,gnu.gcc,comp.sys.ibm.pc.hardware.chips,comp.text.tex
References: <3D0B57CB.5060406@nospam.com>
Subject: Re: P4  vs Athlon for Linux latexing, is gcc-2.95 responsible?
Lines: 73
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <cVYO8.93284$pw3.4355@sccrnsc03>
NNTP-Posting-Host: 66.30.233.6
X-Complaints-To: abuse@attbi.com
X-Trace: sccrnsc03 1024219848 66.30.233.6 (Sun, 16 Jun 2002 09:30:48 GMT)
NNTP-Posting-Date: Sun, 16 Jun 2002 09:30:48 GMT
Organization: AT&T Broadband
Date: Sun, 16 Jun 2002 09:30:49 GMT