LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 01-12-2004, 10:20 AM   #1
Stephanie
LQ Addict
 
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Rep: Reputation: 45
Cluster vs. Dual CPU


Those new Shuttle cube sized PC's are pretty cool, and I was thinking that if you hooked several together, you can set up a cluster, which I know someone has done.

But then you could get a dual processor Hypterthreaded board.

So my question is, what would be faster: 4-5 Shuttles, or a dual hyper threaded machine?

Basically I am going to be doing mathematical/graphical computations if that helps.
 
Old 01-12-2004, 10:54 AM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
I don't know much in the way of technical details on this subject, but one advantage of a cluster is easy expansion: you can increase its processing power just by adding more machines. With a dual-CPU machine, it's a little harder to upgrade. Don't know which would be faster initially, but the cluster has the potential to be faster.
 
Old 01-12-2004, 10:58 AM   #3
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
If it were optimized right I would say the cluster. Each processor would not have to share memory for one thing... Of course a lot of it depends on how good you are at parralellization of your tasks. The better you are at splitting up the tasks the better the cluster will be.

Edit:
Just felt the need to throw in the hole example...
It takes a man 1 minute to dig a hole.
If you have 30 men and need to dig 30 holes how long would it take you?
If you had to dig 1 hole and had 30 men how long would it take you?

Last edited by Blinker_Fluid; 01-12-2004 at 11:01 AM.
 
Old 01-12-2004, 11:04 AM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"So my question is, what would be faster: 4-5 Shuttles, or a dual hyper threaded machine?"

Part of the answer is dependent on how your application is set up. How many daemons does your application spawn? If it is just a single daemon then hyperthreading will not increase your speed because you will only use one CPU at a time anyway.

Clustering has an application program that breaks your application program into chunks and submits chunks to all the CPUs in the cluster so that all of the CPUs are kept busy simultaneously. Here is a good, short explanation of calculating pi on a cluster computer.

http://home.attmil.ne.jp/a/jm/

The other factors to consider in judging the speed difference bewteen clusters and SMP machines are the number of CPUs, the speed of the CPUs, and the overhead involved in breaking up your application so that it can be solved in parallel.

If instead of a single CPU intensive application you want to run several independent CPU intensive applications simultaneously then the SMP would be far easier to set up than the cluster.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 01-12-2004 at 11:06 AM.
 
Old 01-13-2004, 12:20 AM   #5
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
here are some typical results using multi-threaded code with LAM-MPI 6.5.6:

# nodes------Gflops
1---------------3.4
2---------------5.9
4---------------9.6

this implies that performance scales with ~0.75(#nodes) for a small cluster running appropriate code. thus the proposed shuttle cluster would outperform a dual-cpu board with proper coding and equivalent processors, but you will get better performance/$ with the single-machine approach.

Last edited by bdp; 01-13-2004 at 12:22 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cluster question: Is it possible to make a bulletproof cluster? ValidiusMaximus Linux - Software 1 09-06-2005 02:07 PM
Dual CPU? yelrah Slackware 5 08-05-2005 12:28 PM
Setting up a cluster with pxe and cluster knoppix bucovaina78 Linux - Networking 1 05-15-2005 11:29 PM
Linux cluster Vs 1 good CPU sponsii Linux - Hardware 8 11-12-2004 12:24 PM
Dual CPU zer0snr Linux - Newbie 1 04-25-2004 07:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration