* Re: Advice for number-crunching box
2001-03-20 14:23 Advice for number-crunching box Stephen Cornell
@ 2001-03-20 14:41 ` Christopher Albert
2001-03-20 15:05 ` Nick Maclaren
2001-03-20 16:12 ` Stephen Cornell
2001-03-20 15:02 ` Sebastian Stripe
` (4 subsequent siblings)
5 siblings, 2 replies; 28+ messages in thread
From: Christopher Albert @ 2001-03-20 14:41 UTC (permalink / raw)
Stephen Cornell wrote:
>
> I have a grant to spend up to about �6000 (ex VAT) on a
> number-crunching box. This machine will be used for long-running
> numerical simulations, and the most important factor is the speed at
> which it runs my own code, written (mostly) in Fortran 90.
>
>
>
> I can get a top-spec, dual Xeon/1GHz system which will perform at
> least as well (my code is trivially parallelizable - stochastic
> simulations requiring lots of independent replicates - so performance
> scales with number of CPU's).
Stephen,
I can't really all your questions, but I was wondering if you've thought
of going the way of a (Beowolf) cluster of linux boxes. It seems to me
for the money you have you could have many fast x86 processors working
together for you.
Chris
^ permalink raw reply [flat|nested] 28+ messages in thread* Re: Advice for number-crunching box
2001-03-20 14:41 ` Christopher Albert
@ 2001-03-20 15:05 ` Nick Maclaren
2001-03-20 15:12 ` Nick Maclaren
2001-03-20 19:26 ` Keith Matthews
2001-03-20 16:12 ` Stephen Cornell
1 sibling, 2 replies; 28+ messages in thread
From: Nick Maclaren @ 2001-03-20 15:05 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1939 bytes --]
In article <3AB76C32.AF1E1C50@selftrade.com>, Christopher Albert <calbert@selftrade.com> writes:
|> Stephen Cornell wrote:
|> >
|> > I have a grant to spend up to about �6000 (ex VAT) on a
|> > number-crunching box. This machine will be used for long-running
|> > numerical simulations, and the most important factor is the speed at
|> > which it runs my own code, written (mostly) in Fortran 90.
|> >
|> > I can get a top-spec, dual Xeon/1GHz system which will perform at
|> > least as well (my code is trivially parallelizable - stochastic
|> > simulations requiring lots of independent replicates - so performance
|> > scales with number of CPU's).
|>
|> I can't really all your questions, but I was wondering if you've thought
|> of going the way of a (Beowolf) cluster of linux boxes. It seems to me
|> for the money you have you could have many fast x86 processors working
|> together for you.
This is the most cost-effective solution for this sort of problem,
but 6,000 doesn't go far. It depends a great deal on what the
memory requirements are (in terms of both size and speed), because
the cheaper boxes tend to have a small amount of slow memory.
Alphas are not currently good value for money, as Compaq seems not
to have developed them in over two years. Yes, there are lots of
promises, but nothing so far has been delivered. However, if you
need more than about 2 GB a process, Intel cannot deliver anything.
Pentium 4 systems are likely to perform well on vectorisable
Fortran, as they have quite reasonable memory performance, but
run like a drain on spaghetti code - including clean code for
handling such things as complex graphs, unfortunately.
For such code, Pentium IIIs are as good as anything.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email: nmm1@cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-20 15:05 ` Nick Maclaren
@ 2001-03-20 15:12 ` Nick Maclaren
2001-03-20 19:26 ` Keith Matthews
1 sibling, 0 replies; 28+ messages in thread
From: Nick Maclaren @ 2001-03-20 15:12 UTC (permalink / raw)
Apologies for following up my own posting!
In article <997rjl$oa8$1@pegasus.csx.cam.ac.uk>,
nmm1@cus.cam.ac.uk (Nick Maclaren) writes:
|>
|> Pentium 4 systems are likely to perform well on vectorisable
|> Fortran, as they have quite reasonable memory performance, but
|> run like a drain on spaghetti code - including clean code for
|> handling such things as complex graphs, unfortunately.
|>
|> For such code, Pentium IIIs are as good as anything.
For Pentium IIIs, read Pentium IIIs or Athlons, of course.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
Email: nmm1@cam.ac.uk
Ext. 34761
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-20 15:05 ` Nick Maclaren
2001-03-20 15:12 ` Nick Maclaren
@ 2001-03-20 19:26 ` Keith Matthews
2001-03-20 22:21 ` Peter Watkinson
1 sibling, 1 reply; 28+ messages in thread
From: Keith Matthews @ 2001-03-20 19:26 UTC (permalink / raw)
Nick Maclaren wrote:
>
> Alphas are not currently good value for money, as Compaq seems not
> to have developed them in over two years. Yes, there are lots of
> promises, but nothing so far has been delivered. However, if you
> need more than about 2 GB a process, Intel cannot deliver anything.
>
There was an outfit in Aylesbury selling Samsung alpha systems in
standard PC cases a few years back at about 1500 quid. Haven't seen them
advertising recently. Seem to remember that Linux pre-installed was an
option too.
Would give the 64-bit power of the alpha at much lower cost. Compaq
systems are so expensive because they concentrate on IO througput for
VMS and Tru64 systems.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-20 14:41 ` Christopher Albert
2001-03-20 15:05 ` Nick Maclaren
@ 2001-03-20 16:12 ` Stephen Cornell
2001-03-20 17:24 ` Patrick Gosling
` (2 more replies)
1 sibling, 3 replies; 28+ messages in thread
From: Stephen Cornell @ 2001-03-20 16:12 UTC (permalink / raw)
Christopher Albert <calbert@selftrade.com> writes:
> Stephen,
> I can't really all your questions, but I was wondering if you've thought
> of going the way of a (Beowolf) cluster of linux boxes. It seems to me
> for the money you have you could have many fast x86 processors working
> together for you.
It's an interesting idea, but one that would involve rather a lot of
extra work on my part - both in terms of putting the cluster together,
and in adapting my code. On the other hand, there's nothing stopping
me from buying more than one box, and spreading the load among them at
a much higher level (not using Beowulf/PVM, but simply running
independent replicates on each CPU).
One doesn't really gain much by going for a large number of slow
processors, as each node in the cluster has the overhead of requiring
a motherboard, RAM, and a hard disk - and physical space that I don't
really have. On the other hand, CPU price rises superlinearly with
speed. Looking around, it seems that dual Pentium III/1GHz rackmounted
servers can be had for about £1600 each; slower machines are not
going to give a better price/performance ratio than this. Maybe I'll
get a couple of these, plus a similarly spec'd workstation - 6x1GHz
CPU's should make rather light work of my simulations!
Thanks for the suggestion,
Stephen.
--
Stephen Cornell cornell@zoo.cam.ac.uk Tel/fax +44-1223-336644
University of Cambridge, Zoology Department, Downing Street, CAMBRIDGE CB2 3EJ
^ permalink raw reply [flat|nested] 28+ messages in thread* Re: Advice for number-crunching box
2001-03-20 16:12 ` Stephen Cornell
@ 2001-03-20 17:24 ` Patrick Gosling
2001-03-21 12:12 ` Stephen Cornell
2001-03-20 21:42 ` Bradley J Lucier
2001-03-21 21:28 ` John Rowe
2 siblings, 1 reply; 28+ messages in thread
From: Patrick Gosling @ 2001-03-20 17:24 UTC (permalink / raw)
In article <wn7l1k1kt2.fsf@localhost.localdomain>,
Stephen Cornell <cornell@zoo.cam.ac.uk> wrote:
>It's an interesting idea, but one that would involve rather a lot of
>extra work on my part - both in terms of putting the cluster together,
>and in adapting my code. On the other hand, there's nothing stopping
>me from buying more than one box, and spreading the load among them at
>a much higher level (not using Beowulf/PVM, but simply running
>independent replicates on each CPU).
Can I put in a recommendation for http://www.sun.com/gridware at this
point. It has the singular advantage of being free, with the slight
disadvantage that you'll probably need a day buried in the documentation
to get your head around it.
Out experience locally has been that once you get above a very small
number of processors available to you, it becomes massively beneficial
to have some kind of job queue management system available, even if
it's only for one person to use (but even more so if the resource needs
to be shared).
Little things like "run this job only when all these have completed" , and
not having to second guess how long each job will run ... [ nothing more
irritating than sticking twenty jobs (sequentially) on each processor, and
finding that all the long-running ones are on the same machine ... ]
-patrick.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-20 17:24 ` Patrick Gosling
@ 2001-03-21 12:12 ` Stephen Cornell
2001-03-21 12:28 ` Nick Maclaren
0 siblings, 1 reply; 28+ messages in thread
From: Stephen Cornell @ 2001-03-21 12:12 UTC (permalink / raw)
jpmg@eng.cam.ac.uk (Patrick Gosling) writes:
>
> Out experience locally has been that once you get above a very small
> number of processors available to you, it becomes massively beneficial
> to have some kind of job queue management system available, even if
> it's only for one person to use (but even more so if the resource needs
> to be shared).
I agree absolutely - I was going to continue to use NQS to manage my jobs.
--
Stephen Cornell cornell@zoo.cam.ac.uk Tel/fax +44-1223-336644
University of Cambridge, Zoology Department, Downing Street, CAMBRIDGE CB2 3EJ
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-21 12:12 ` Stephen Cornell
@ 2001-03-21 12:28 ` Nick Maclaren
2001-03-21 13:08 ` Stephen Cornell
0 siblings, 1 reply; 28+ messages in thread
From: Nick Maclaren @ 2001-03-21 12:28 UTC (permalink / raw)
In article <wng0g748xi.fsf@localhost.localdomain>,
Stephen Cornell <cornell@zoo.cam.ac.uk> writes:
|> jpmg@eng.cam.ac.uk (Patrick Gosling) writes:
|> >
|> > Out experience locally has been that once you get above a very small
|> > number of processors available to you, it becomes massively beneficial
|> > to have some kind of job queue management system available, even if
|> > it's only for one person to use (but even more so if the resource needs
|> > to be shared).
|>
|> I agree absolutely - I was going to continue to use NQS to manage my jobs.
Heaven help you! One of my few positive pleasures in decommissioning
the Hitachi SR2201 will be not having to deal with NQS any longer ....
More seriously, watch out if you need to do anything non-trivial with
your filing systems or want to use an unusual (e.g. journalled) filing
system. The design of NQS is seriously broken, and it cannot be made
to work with all filing systems. And its error handling is no better,
which doesn't make it easy to locate or bypass problems.
PBS is rumoured to be better, but a brief investigation indicated that
the word "Portable" in its name is more hype than actuality.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
Email: nmm1@cam.ac.uk
Ext. 34761
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-21 12:28 ` Nick Maclaren
@ 2001-03-21 13:08 ` Stephen Cornell
2001-03-21 13:57 ` Nick Maclaren
0 siblings, 1 reply; 28+ messages in thread
From: Stephen Cornell @ 2001-03-21 13:08 UTC (permalink / raw)
nmm1@cus.cam.ac.uk (Nick Maclaren) writes:
>
> More seriously, watch out if you need to do anything non-trivial with
> your filing systems or want to use an unusual (e.g. journalled) filing
> system. The design of NQS is seriously broken, and it cannot be made
> to work with all filing systems. And its error handling is no better,
> which doesn't make it easy to locate or bypass problems.
Thanks for the warning. I have been using NQS for a while (many years
as a user, and about two years as both admin and user) and had few
problems. However, I was intending to use ReiserFS for my home
partition in the future - do you know if this is one of the
filesystems with which NQS has problems?
--
Stephen Cornell cornell@zoo.cam.ac.uk Tel/fax +44-1223-336644
University of Cambridge, Zoology Department, Downing Street, CAMBRIDGE CB2 3EJ
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-21 13:08 ` Stephen Cornell
@ 2001-03-21 13:57 ` Nick Maclaren
0 siblings, 0 replies; 28+ messages in thread
From: Nick Maclaren @ 2001-03-21 13:57 UTC (permalink / raw)
In article <wnwv9j2rrz.fsf@localhost.localdomain>,
Stephen Cornell <cornell@zoo.cam.ac.uk> writes:
|> nmm1@cus.cam.ac.uk (Nick Maclaren) writes:
|> >
|> > More seriously, watch out if you need to do anything non-trivial with
|> > your filing systems or want to use an unusual (e.g. journalled) filing
|> > system. The design of NQS is seriously broken, and it cannot be made
|> > to work with all filing systems. And its error handling is no better,
|> > which doesn't make it easy to locate or bypass problems.
|>
|> Thanks for the warning. I have been using NQS for a while (many years
|> as a user, and about two years as both admin and user) and had few
|> problems. However, I was intending to use ReiserFS for my home
|> partition in the future - do you know if this is one of the
|> filesystems with which NQS has problems?
Not a clue, I am afraid. But I can tell you what it assumes and
relies upon. I am indebted to Michael Rutter for locating the
reasons for NQS's aberrations.
The authors (quite reasonably) wanted guaranteed update semantics,
but Unix did not and does not provide them (not even with sync,
fsync, flush, Old Uncle Tom Cobbley and all). They discovered
that inodes were being atomically updated on the systems they used,
and they jumped to the conclusion that this was a stable feature
of Unix. So so the geniuses stored lock data in the last modified
time of the inodes of various files (and possibly other fields).
In addition to playing Old Hob with file system scanning utilities
(including some forms of dumping), not least because dates of 2028
are unlikely to be correct, they are quite simply wrong that inode
update always bypasses Unix's usual file block caching code. This
is the reason that you absolutely must NOT put the NQS directories
onto an NFS mounted partition, and that it won't work with IBM GPFS
and a good many other fancy, distributed filing systems.
I do not know how likely it is to corrupt its own data structures
if there is a power cut (surely not?) while inodes have been only
partially written back but, given its other misdesigns, it probably
will. And, for the same reason, the only practical way to recover
from such corruption is to reinstall NQS and lose all queued jobs
and output.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
Email: nmm1@cam.ac.uk
Ext. 34761
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-20 16:12 ` Stephen Cornell
2001-03-20 17:24 ` Patrick Gosling
@ 2001-03-20 21:42 ` Bradley J Lucier
2001-03-21 0:11 ` Espen H. Koht
2001-03-21 12:15 ` Stephen Cornell
2001-03-21 21:28 ` John Rowe
2 siblings, 2 replies; 28+ messages in thread
From: Bradley J Lucier @ 2001-03-20 21:42 UTC (permalink / raw)
Total Impact sells some multiprocessor PowerPC 7400 boards
that you can plug into a Macintosh running linuxppc, I believe.
See
http://www.totalimpact.com/G3_MP.html
These are not so useful as SMP boxes since they run independent
programs as slaves, but they may be what you're looking for because
your problems are so independent. And a 500 MHz G4 is pretty fast
for a lot of things, you can get 4 of them for about $3200.
I haven't tried them, but I have talked to people who have.
Brad Lucier
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-20 21:42 ` Bradley J Lucier
@ 2001-03-21 0:11 ` Espen H. Koht
2001-03-21 12:15 ` Stephen Cornell
1 sibling, 0 replies; 28+ messages in thread
From: Espen H. Koht @ 2001-03-21 0:11 UTC (permalink / raw)
In article <998isd$llu@arthur.cs.purdue.edu>, bjl@cs.purdue.edu
(Bradley J Lucier) wrote:
>Total Impact sells some multiprocessor PowerPC 7400 boards
>that you can plug into a Macintosh running linuxppc, I believe.
>See
>
>http://www.totalimpact.com/G3_MP.html
I've posted a note about these in the past. Please note that they do not
require a Mac to plug into. A PC with a PCI bus is sufficient.
Espen
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-20 21:42 ` Bradley J Lucier
2001-03-21 0:11 ` Espen H. Koht
@ 2001-03-21 12:15 ` Stephen Cornell
1 sibling, 0 replies; 28+ messages in thread
From: Stephen Cornell @ 2001-03-21 12:15 UTC (permalink / raw)
bjl@cs.purdue.edu (Bradley J Lucier) writes:
> Total Impact sells some multiprocessor PowerPC 7400 boards
> that you can plug into a Macintosh running linuxppc, I believe.
> See
>
> http://www.totalimpact.com/G3_MP.html
>
> These are not so useful as SMP boxes since they run independent
> programs as slaves, but they may be what you're looking for because
> your problems are so independent. And a 500 MHz G4 is pretty fast
> for a lot of things, you can get 4 of them for about $3200.
I'll have a look, but I'll be surprised if this works out as more cost
effective than the dual-PIII/1Ghz boxes at £1600.
--
Stephen Cornell cornell@zoo.cam.ac.uk Tel/fax +44-1223-336644
University of Cambridge, Zoology Department, Downing Street, CAMBRIDGE CB2 3EJ
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-20 16:12 ` Stephen Cornell
2001-03-20 17:24 ` Patrick Gosling
2001-03-20 21:42 ` Bradley J Lucier
@ 2001-03-21 21:28 ` John Rowe
2001-03-22 16:28 ` Andy Jardine
2 siblings, 1 reply; 28+ messages in thread
From: John Rowe @ 2001-03-21 21:28 UTC (permalink / raw)
> > of going the way of a (Beowolf) cluster of linux boxes. It seems to me
> It's an interesting idea, but one that would involve rather a lot of
> extra work on my part - both in terms of putting the cluster together,
For your level of communication requirement just buy N boxes and plug
them into an ethernet switch. You don't even have to rack-mount them.
I have a 20 processor PentiumII cluster that is literally just 10 dual
processor boxes sitting on wire-mesh shelves plugged into a hub! (I
also have an IBM supercomputer so I have some idea about the tradeoffs
involved)
> and in adapting my code. On the other hand, there's nothing stopping
?? From what you say you can probably just take your top level do loop
and divide it up between the processes. All effective parallisation is
high level.
From all I've seen a cluster of GHzish dual PIIIs or single Athlons
has to be the way to go unless you can wait for dual Athlons to appear
(they seem to have been "real soon now" for ever). We've just ordered
a "proper beowolf" (oxymoron) and Dual PIIs were more cost-effective
that single Athlons but since you don't need fancy interconnect your
economics may be different.
You don't necessarily need a queueing system if you are going to be
running single jobs (and I agree with what people have said about
those!)
As others have said, you have plenty of good advice at Cambridge (you
might even be able to get somebody to set up MPI for you!), avoid
PetiumIVs and check out your memory speed and cache requirements.
John
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-21 21:28 ` John Rowe
@ 2001-03-22 16:28 ` Andy Jardine
2001-03-22 16:55 ` Nick Maclaren
0 siblings, 1 reply; 28+ messages in thread
From: Andy Jardine @ 2001-03-22 16:28 UTC (permalink / raw)
One other thing that is worth bearing in mind are the libraries and
compilers that are available for the various platforms and how good/well
optimised they are for the particular machine.
I've been mainly using fortran on Alphas, but one thing that stands out is
that the Digital/Compaq extended maths libraries are pretty fast - matrix
inversions, fourier transforms and the like run many times faster than
some of the other routines that I've come accross (we've had speed
increases of up to about 20x, although that may just have been that the
previous routines weren't up to much).
I'm are also interested in building a Beowulf cluster and so was wondering
if anyone could suggest a good (fast/reliable) fortran compiler and set of
numerical libraries for x86 processors?
Incidentally, our code is generally both trivially parallel (same program
runs under lots of different conditions) and takes very little input and
produces very little output (either it creates some big matricies in
memory, or does lots of compute cycles). Hence, I was considering putting
together very basic nodes; just a motherboard, processor (Athlon or Duron,
800-1000MHz), 256MB memory and network card, plus a floppy drive to boot
linux and transfer control to a NFS root directory. I did a few quick
calculations and reckoned on about 300 UKP for a node.
Andy.
On 21 Mar 2001, John Rowe wrote:
>
> > > of going the way of a (Beowolf) cluster of linux boxes. It seems to me
>
> > It's an interesting idea, but one that would involve rather a lot of
> > extra work on my part - both in terms of putting the cluster together,
>
> For your level of communication requirement just buy N boxes and plug
> them into an ethernet switch. You don't even have to rack-mount them.
> I have a 20 processor PentiumII cluster that is literally just 10 dual
> processor boxes sitting on wire-mesh shelves plugged into a hub! (I
> also have an IBM supercomputer so I have some idea about the tradeoffs
> involved)
>
> > and in adapting my code. On the other hand, there's nothing stopping
>
> ?? From what you say you can probably just take your top level do loop
> and divide it up between the processes. All effective parallisation is
> high level.
>
>
> From all I've seen a cluster of GHzish dual PIIIs or single Athlons
> has to be the way to go unless you can wait for dual Athlons to appear
> (they seem to have been "real soon now" for ever). We've just ordered
> a "proper beowolf" (oxymoron) and Dual PIIs were more cost-effective
> that single Athlons but since you don't need fancy interconnect your
> economics may be different.
>
> You don't necessarily need a queueing system if you are going to be
> running single jobs (and I agree with what people have said about
> those!)
>
> As others have said, you have plenty of good advice at Cambridge (you
> might even be able to get somebody to set up MPI for you!), avoid
> PetiumIVs and check out your memory speed and cache requirements.
>
> John
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Andrew Jardine apj24@cam.ac.uk
Department of Physics, University of Cambridge Office: (01223) 337320
Cavendish Laboratory, Madingley Road, Camb. CB3 0HE Lab: (01223) 337481
(Churchill College, Cambridge. CB3 0DS) Home: (01223) 517422
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-22 16:28 ` Andy Jardine
@ 2001-03-22 16:55 ` Nick Maclaren
2001-03-23 8:33 ` Martin Kahlert
0 siblings, 1 reply; 28+ messages in thread
From: Nick Maclaren @ 2001-03-22 16:55 UTC (permalink / raw)
In article <Pine.LNX.4.30.0103221615560.5912-100000@atscat3.phy.cam.ac.uk>, Andy Jardine <apj24@cam.ac.uk> writes:
|> One other thing that is worth bearing in mind are the libraries and
|> compilers that are available for the various platforms and how good/well
|> optimised they are for the particular machine.
|>
|> I've been mainly using fortran on Alphas, but one thing that stands out is
|> that the Digital/Compaq extended maths libraries are pretty fast - matrix
|> inversions, fourier transforms and the like run many times faster than
|> some of the other routines that I've come accross (we've had speed
|> increases of up to about 20x, although that may just have been that the
|> previous routines weren't up to much).
That is more than likely.
|> I'm are also interested in building a Beowulf cluster and so was wondering
|> if anyone could suggest a good (fast/reliable) fortran compiler and set of
|> numerical libraries for x86 processors?
The NAG libraries are as good as you will get, but the NAG Fortran
compiler is oriented more towards debugging. Some people swear
by the Portland compiler.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
Email: nmm1@cam.ac.uk
Ext. 34761
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-22 16:55 ` Nick Maclaren
@ 2001-03-23 8:33 ` Martin Kahlert
2001-03-24 18:50 ` Mark Brown
0 siblings, 1 reply; 28+ messages in thread
From: Martin Kahlert @ 2001-03-23 8:33 UTC (permalink / raw)
Hi Nick,
In article <99dapi$al9$1@pegasus.csx.cam.ac.uk>,
nmm1@cus.cam.ac.uk (Nick Maclaren) writes:
> The NAG libraries are as good as you will get, but the NAG Fortran
> compiler is oriented more towards debugging. Some people swear
> by the Portland compiler.
(this starts to become OT for Alpha, but here is the number
crunchers' group!)
I have a 700 MHz Dual PIII running Linux. Our group develops an
analog circuit simulator (70% Fortran 77, the rest is C).
We are always in demand for good compilers for that and we purchased
the Portland Group C/Fortran compilers, because they give about 20-30% more
performance than gcc/g77 for our code.
This pays, because the runtime may be days to weeks.
I found the PGI compilers to be rather stable, but i have to warn you:
- STMicroelectronics has acquired Portland Group.
see: http://www.pgroup.com/stpgi_announce.htm
I assume, the people at PGI will have to work on compilers for embedded
processors from now on and will not concentrate on improving their Intel
compilers.
- There has been no release since Oct 2000.
- All my bug reports were answered and confirmed, but no fix in sight.
- The compilers do not produce working progs, which rely on correct
NaN handling (e.g. nan .eq. nan is true).
I found gcc/g77 to be much more relieable for my code than PGI.
I would be very interested to hear some thoughts
and experiences on other Linux compilers.
I hope that helps,
Martin.
--
The early bird gets the worm. If you want something else for
breakfast, get up later.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-20 14:23 Advice for number-crunching box Stephen Cornell
2001-03-20 14:41 ` Christopher Albert
@ 2001-03-20 15:02 ` Sebastian Stripe
2001-03-20 15:17 ` Matthew Garrett
` (3 subsequent siblings)
5 siblings, 0 replies; 28+ messages in thread
From: Sebastian Stripe @ 2001-03-20 15:02 UTC (permalink / raw)
(1) Alpha or x86?
--------------
Umm, your choice. I personally think you should get x86, more compatible
with stuff.
(2) Which X86?
-----------
Anything BUT a Pentium IV, PLEASE.
Reasons under
http://www.emulators.com/pentium4.htm
AND pentiums cost much, much more!
* How important is it to opt for high-speed memory, especially when
the system bus runs at 133 MHz?
Pretty important, makes it faster. Better to go for DDRRams though (266 Mhz)
* Are there hardware vendors in the UK selling 2-way Pentium 4 or AMD
Athlon systems? What about affordable 4-way systems?
Umm, dunno. Have a look round on the web.
* Is it worth my while going for the Xeon option?
No. Stuff Intel, for the obvious reasons. Take AMDs instead!
* which processor gives the best performance for my money?
Absolutely. AMDs kick pentiums asses by miles ( i should know, i have a
Duron 700 and it kicks my dad's PIII 800 out the window (very similar specs)
Sebastian Stripe
http://www.model-railways-online.com
^ permalink raw reply [flat|nested] 28+ messages in thread* Re: Advice for number-crunching box
2001-03-20 14:23 Advice for number-crunching box Stephen Cornell
2001-03-20 14:41 ` Christopher Albert
2001-03-20 15:02 ` Sebastian Stripe
@ 2001-03-20 15:17 ` Matthew Garrett
2001-03-20 20:29 ` Colin Brough
` (2 subsequent siblings)
5 siblings, 0 replies; 28+ messages in thread
From: Matthew Garrett @ 2001-03-20 15:17 UTC (permalink / raw)
In article <wnbsqw1put.fsf@localhost.localdomain>, Stephen Cornell wrote:
(snip)
>least as well (my code is trivially parallelizable - stochastic
>simulations requiring lots of independent replicates - so performance
>scales with number of CPU's). Moreover, all software for Alpha (such
You too? How many of you are there in there doing stochastic
simulations? :) (PhD interview in Zoology on Thursday, with the aim of
continuing development of stochastic simulations for modelling of
intracellular protein interactions. So, obviously, I'm sitting here and
reading Usenet rather than doing anything in preparation...)
>* Are there hardware vendors in the UK selling 2-way Pentium 4 or AMD
> Athlon systems? What about affordable 4-way systems?
As far as I'm aware, the P4 isn't currently SMP capable and
multi-processor AMD boards are still sufficiently rare that they may as
well be non-existent.
>* which processor gives the best performance for my money? The Compaq
> benchmarks I mentioned before suggest that the Athlon may be a
> better bet than a Pentium III at the same clock speed.
This certainly backs up my experience in general usage, but I'm not sure
whether this would be the case under scientific workloads.
--
Matthew Garrett | mjg59-ucam.comp.linux@srcf.ucam.org
"I'm not sure I should reply to this. I don't think we should be
encouraging this sort of behaviour"
- hmw26 on users sending talk requests to root
^ permalink raw reply [flat|nested] 28+ messages in thread* Re: Advice for number-crunching box
2001-03-20 14:23 Advice for number-crunching box Stephen Cornell
` (2 preceding siblings ...)
2001-03-20 15:17 ` Matthew Garrett
@ 2001-03-20 20:29 ` Colin Brough
2001-03-21 14:04 ` T. Weyergraf
2001-03-26 15:39 ` G. Hugh Song
5 siblings, 0 replies; 28+ messages in thread
From: Colin Brough @ 2001-03-20 20:29 UTC (permalink / raw)
On 20 Mar 2001 14:23:22 +0000, Stephen Cornell wrote:
> I have a grant to spend up to about �6000 (ex VAT) on a
> number-crunching box. This machine will be used for long-running
> numerical simulations, and the most important factor is the speed at
> which it runs my own code, written (mostly) in Fortran 90.
Check the quality of the fan(s) on whatever you end up getting - CPU
bound code, especially when it runs from cache, can run the processor
hot.... especially if you have more than one CPU in the box... (MTBF
goes down as the number of components goes up :-()
> (1) Alpha or x86?
> --------------
>
> Alpha is always hailed as the best number-crunching CPU out there. I
> was able to put this to the test with Compaq's `test drive' program.
> I ran some benchmarks using my own code, and found that (i) a Compaq
> E6/466 Mhz processor running True64 ran consistently 3-4 times faster
> than my Pentium II 300 Mhz (ii) Linux on Alpha ran 10-20% slower than
> True64.
With CPU bound code, this sounds like a compiler difference, rather
than anything OS specific. What different compilers are available at
present? (Its been a long time time since I was up on F90 compilers.)
Is your code stable enough that hand-tuning the assembler inner loop
would be worth it? (The best optimising compiler I ever came across
was a guy named Steve - 10 fold speedup on the best available compiler
on a i860 in the early 1990's!)
> I can get a top-spec, dual Xeon/1GHz system which will perform at
> least as well (my code is trivially parallelizable - stochastic
> simulations requiring lots of independent replicates - so performance
> scales with number of CPU's).
What is the memory usage pattern of your code? This is where cache
size will make a huge difference - I used to work at EPCC at Edinburgh
Uni, and the biggest speeds up we got were often down to minimising
cache misses (see above; so much for parallel programming!).
Other thoughts: you say the code is CPU bound, but how big are the
datasets, how are they loaded, check-pointed, saved? The I/O subsystem
will make a big difference... and not just the disks, but also back-up
to elsewhere, tape or server.
--
Cheers
Colin
ps Remove 'REMOVE.' from Reply-To field to reply.
----------------------------------------------------------------------
Colin Brough Colin.Brough@btinternet.com
^ permalink raw reply [flat|nested] 28+ messages in thread* Re: Advice for number-crunching box
2001-03-20 14:23 Advice for number-crunching box Stephen Cornell
` (3 preceding siblings ...)
2001-03-20 20:29 ` Colin Brough
@ 2001-03-21 14:04 ` T. Weyergraf
2001-03-26 15:39 ` G. Hugh Song
5 siblings, 0 replies; 28+ messages in thread
From: T. Weyergraf @ 2001-03-21 14:04 UTC (permalink / raw)
Stephen Cornell <cornell@zoo.cam.ac.uk> wrote:
> I have a grant to spend up to about �6000 (ex VAT) on a
> number-crunching box. This machine will be used for long-running
> numerical simulations, and the most important factor is the speed at
> which it runs my own code, written (mostly) in Fortran 90. The grant
> doesn't become active for a couple of months, but I thought I'd start
> making plans now. I also need to be able to run some Microsoft
> software, as well as the usual suspects of Latex, Emacs, etc., but I
> could use my 3-year-old Pentium II machine for that and buy a headless
> calculating machine. On the other hand, if I opt for an x86 machine
> then I get a much nicer desktop for free, as it were. This new box
> will, of course, be running some form of *nix.
[.... lots of stuff dropped ....]
First of all, without your budget constraints: ;-)
The Candidates in Question here are: Athlon(x86), P-III(x86) and 21264(Alpha)
First of all, a little table:
CPU/typical system L1 Cache L2 Cache Mainmem
---------------------------------------------------------------------
Athlon/266DDR 64+64 256on-die 64bit
@CPUclk 64bit, @CPUclk(?) @133Mhz DDR
P-III 16+16 256on-die 64bit
@CPUclk 256bit, @CPUclk @133Mhz DDR
21264(A/B),UP2000(+) 64+64 2-8Mbytes 256bit
@CPUclk 1/2 (A) @83Mhz SDR
1/2 DDR (B)
This is off my head, so take it with a grain of salt ;-). The Mainmem
performance of the x86 machines are typical PC-type Systems, being top-end
today without buring lots of $$$ for fancy things like RamBus on P-III's.
The 'DDR' tag in Mainmem tells you, that DDR Ram is used, therefore giving
you 266Mhz Datatransfers, but 133Mhz Adressclock given to the membus.
The SDR-tag behind the Alpha's membus tells you, that you get a "classic"
single-data-rate bus at 83Mhz, both for adresses and data
The Alpha's come in two "flavours" these days, one is the 21264A, which
has a SDR L2-cache ( with some speedup-"tricks", on which i won't get to
deep into ) clocked at 1/2 CPU clock. The newer 21264B is delivered
at 833Mhz with a 417Mhz DDR L2-cache, that gives you *enormous* Datarates.
Both, Athlon and P-III are available at speeds >= 1Ghz.
To make a decision, CPU clock, L1/L2 configuration and speeds as well as
the memory-subsytems account for the potential execution times in your
app. The Alphas offer ( IMHO ) a superior L2 size combined with a
better memory subsystem, which is the reason, why i picked those. With
the similar Performance of both, the Athlon's and the P-III's CPU core
( Athlons are a bit faster than P-III's, especially on FP-intensive code ),
i found a 667-750Mhz 21264A to be as fast as a 1Ghz x86-chip on integer code.
In your case, I would determine the size of the data to be fittet best in
the L2 cache, as well as the overall data-size to be transferred back and
forth to mainmem. If you tend to do much calculation on datasets smaller
than 256Kbytes, then i would recommend an x86. Above that, Alpha kills
any x86, since they are not only crippled by their small L2, but also by
the small memory-bandwidth.
Now with budget ;-(
The Alpha Platform sketched above, is API's UP2000, a full-size ATX
Mainboard, capable of holding 2 21264's. For top-performance, try to
fit a UP2000+ with a single 833Mhz 21264 into you budget.
Unluckily, that will almost guaranteed not be possible. Go down to a
750Mhz 8Mbytes L2 21264 in the same system. If that still fails, check
the available 667Mhz parts with 4Mbytes L2. However, for that amount
of money, you will be able to get a Dual Athlon config, clocked at 1.2Ghz
per chip. Since your load can be split among both cpu's, they may be a
better choice here. The dual Athlon will be available, when you spend
the money. The dual boards are about US-$1000, a bit more pricy than
the usual dual P-III, which is not an option ( IMHO ) due to certain
architectural issus ( CPU-mem bus width and clock etc... ).
Linux is ok on the Alpha, as long as you use the compaq compilers, which you
are free to download from their website.
Some random notes: Alpha's can be used headless with a serial console.
That means, they can be build cheap without graphics and monitors, and no
graphics board eats bus cycles. The memory-cost is about the same compared
to the PC's, higher if the PC uses SDR-RAM, lower when the PC's are equipped
with DDR Ram. Memory max is 2Gbyes on the UP2000, and about the same on the
PC's.
I fear, that with you budget, you will end up using a PC, although I suspect
that an Alpha would get your job done quite faster.
Just my $.02. In case of further questions, feel free.... ;-)
--
Thomas Weyergraf kirk@colinet.de
My Favorite IA64 Opcode-guess ( see arch/ia64/lib/memset.S )
"br.ret.spnt.few" - got back from getting beer, did not spend a lot.
^ permalink raw reply [flat|nested] 28+ messages in thread* Re: Advice for number-crunching box
2001-03-20 14:23 Advice for number-crunching box Stephen Cornell
` (4 preceding siblings ...)
2001-03-21 14:04 ` T. Weyergraf
@ 2001-03-26 15:39 ` G. Hugh Song
2001-03-27 16:08 ` John Rowe
` (2 more replies)
5 siblings, 3 replies; 28+ messages in thread
From: G. Hugh Song @ 2001-03-26 15:39 UTC (permalink / raw)
Stephen Cornell wrote:
>
> I have a grant to spend up to about
Here is some of my thoughts.
Now is the time for us number-crunchers to be disappointed.
Digital used to provide the best number-crunchers for the money.
Now Compaq does not deliver their promises. Intel manufactures
1.5GHz CPUs, while Compaq is still struggling around 833MHz.
In the past, Digital's clock speed used to be about twice as fast as
those from Intel.
Then, is Intel any better with that higher speed? No.
Currently, Intel has not provided a Fortran compiler which
utilizes SSE2. Until then, my good old UP2000 is about a factor
of 1.8 faster than 1.4GHz P4.
Between P4 and Athlon, I would choose P4 because of the RAMBUS
DRAM because many of my codes rely on large matrices which
do not fit in any cache structure. I am sure that most
number crunching applications do need such large matrices.
Finally, I hate the cluster technology. I would rather
study physics than all those tricks to use clusters.
Unfortunately, the compaq compiler for ALpha/Linux can't
do SMP.
Regarding the maximum memory config., P4 and UP2100 are about
the same. UP2100 is limited by 2GB. In the P4 side, practically
you cannot buy a RAMBUS DRRAM with size larger than 256MB. So,
practically
you can only go up to 1GB with a P4.
What would I then choose? Currently, I would choose two P4's than
a dual-CPU UP2100, hoping that Lahey or Intel will deliver SSE2-capable
compiler for Linux in the near future. If Compaq delivers a 21364
system right now,
my choice would be different. I would choose a single-CPU 21364
than four or six P4's. (Time is money.) But that does not seem to
happen
in the near future, either.
Too bad.....
My last practical advice: just rely on the SPEC numbers, especially
when you don't have time to benchmark anything. There are not many or
any
better benchmark programs than the SPEC suit. Many people love to say
"run your own code". Well, in my case, I have tons of different kinds.
--
G. Hugh Song
^ permalink raw reply [flat|nested] 28+ messages in thread* Re: Advice for number-crunching box
2001-03-26 15:39 ` G. Hugh Song
@ 2001-03-27 16:08 ` John Rowe
2001-03-27 16:09 ` Stephen Cornell
2001-03-28 18:26 ` Mark Baker
2 siblings, 0 replies; 28+ messages in thread
From: John Rowe @ 2001-03-27 16:08 UTC (permalink / raw)
"G. Hugh Song" <ghsong@nospam.com> writes:
> Between P4 and Athlon, I would choose P4 because of the RAMBUS
> DRAM because many of my codes rely on large matrices which
> do not fit in any cache structure. I am sure that most
> number crunching applications do need such large matrices.
P4s have a very bad reputation for real*8 which is what most people
use.
> Finally, I hate the cluster technology. I would rather
> study physics than all those tricks to use clusters.
Some people find they can do both!
John
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-26 15:39 ` G. Hugh Song
2001-03-27 16:08 ` John Rowe
@ 2001-03-27 16:09 ` Stephen Cornell
2001-03-28 18:26 ` Mark Baker
2 siblings, 0 replies; 28+ messages in thread
From: Stephen Cornell @ 2001-03-27 16:09 UTC (permalink / raw)
"G. Hugh Song" <ghsong@nospam.com> writes:
> utilizes SSE2. Until then, my good old UP2000 is about a factor
> of 1.8 faster than 1.4GHz P4.
Pardon my ignorance, but what is a `UP2000'?
> Finally, I hate the cluster technology. I would rather
> study physics than all those tricks to use clusters.
> Unfortunately, the compaq compiler for ALpha/Linux can't
> do SMP.
For my purposes, I don't have to use `tricks' - just run independent
replicates on different CPU's.
> My last practical advice: just rely on the SPEC numbers, especially
> when you don't have time to benchmark anything. There are not many or
> any
> better benchmark programs than the SPEC suit. Many people love to say
> "run your own code". Well, in my case, I have tons of different kinds.
So do I - I ran benchmarks using several different examples of my own
code, ranging from floating-point to integer-intensive. I looked at
SPEC numbers too, where available. However, high performance on
matrix inversion or CFD code is not especially important for my
purposes.
--
Stephen Cornell cornell@zoo.cam.ac.uk Tel/fax +44-1223-336644
University of Cambridge, Zoology Department, Downing Street, CAMBRIDGE CB2 3EJ
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Advice for number-crunching box
2001-03-26 15:39 ` G. Hugh Song
2001-03-27 16:08 ` John Rowe
2001-03-27 16:09 ` Stephen Cornell
@ 2001-03-28 18:26 ` Mark Baker
2 siblings, 0 replies; 28+ messages in thread
From: Mark Baker @ 2001-03-28 18:26 UTC (permalink / raw)
In article <3ABF62C5.36B7C4D0@nospam.com>,
"G. Hugh Song" <ghsong@nospam.com> writes:
> Between P4 and Athlon, I would choose P4 because of the RAMBUS
> DRAM because many of my codes rely on large matrices which
> do not fit in any cache structure. I am sure that most
> number crunching applications do need such large matrices.
Bear in mind that RDRAM is only fast if accessed sequentially. The high
latency (significantly worse than ordinary SDRAM) makes it slower in many
applications.
And as John says, the P4's FPU is much slower than the P3's, let alone the
Athlon's, so until you get your SSE2 compiler, it looks like being a very
bad choice for numerical work.
^ permalink raw reply [flat|nested] 28+ messages in thread