Slashdot Mirror


Ask Slashdot: Parallel Cluster In a Box?

QuantumMist writes "I'm helping someone with accelerating an embarrassingly parallel application. What's the best way to spend $10K to $15K to receive the maximum number of simultaneous threads of execution? The focus is on threads of execution as memory requirements are decently low e.g. ~512MB in memory at any given time (maybe up to 2 to 3X that at the very high end). I've looked at the latest Tesla card, as well as the four Teslas in a box solutions, and am having trouble justifying the markup for what's essentially 'double precision FP being enabled, some heat improvements, and ECC which actually decreases available memory (I recognize ECC's advantages though).' Spending close to $11K for the four Teslas in a 1U setup seems to be the only solution at this time. I was thinking that GTX cards can be replaced for a fraction of the cost, so should I just stuff four or more of them in a box? Note, they don't have to pay the power/cooling bill. Amazon is too expensive for this level of performance, so can't go cloud via EC2. Any parallel architectures out there at this price point, even for $5K more? Any good manycore offerings that I've missed? e.g. somebody who can stuff a ton of ARM or other CPUs/GPUs in a server (cluster in a box)? It would be great if this could be easily addressed via a PCI or other standard interface. Should I just stuff four GTX cards in a server and replace them as they die from heat? Any creative solutions out there? Thanks for any thoughts!"

36 of 205 comments (clear)

  1. AMD by Anonymous Coward · · Score: 2, Informative

    Why not use AMD and OpenCL?

    1. Re:AMD by tempest69 · · Score: 4, Insightful

      Because it's new, and finding someone who's done it to get some pointers is really hard.
      CUDA has been around a while, figuring it out isn't such a rough learning curve.

      Overall I'm a little suspicious of someone looking to use a GPU for more threads on a problem. As going the GPU route is a really committed step, and the programming gets a new level of complicated. Using multiple cards has some odd issues in CUDA, ie. If you exceed the card index it defaults to card-0, rather than crashing. There are more places to screw up with a GPU- transferring memory- getting blocks, threads, and weaves organized(if done properly it hides all sorts of latency in calculations, done poorly it's worse than a CPU)- avoiding memory contention (the memory scheme isn't bad, but it needs to be understood).

      So in most cases I'd first start with this chart http://www.cpubenchmark.net/cpu_value_available.html and tell them to cut their teeth on a GPU with a smaller(cheaper) test case.

    2. Re:AMD by Anonymous Coward · · Score: 2, Insightful

      Why not use AMD and OpenCL?

      Sure use two AMD 6990 with 3072 stream units each, for a total of 6144 ALUs per box (DP FPU) with OpenCL 1.1.
      Cost about $2500 per box! $700 per card plus $1000 for a CPU system with 1000W PSU.

    3. Re:AMD by Anonymous Coward · · Score: 2, Insightful

      That's why you would use OpenCL instead. It's a bit newer, and is still a little rough around the edges, but it works on CPU's and GPU's, and in windows or 'nix.

    4. Re:AMD by sneakyimp · · Score: 3, Interesting

      I wonder if QuantumMist must take into account the cost of development. To say that the application is "embarassingly parallel" and at the same time that "memory requirements are decently low" suggests that s/he has an existing application that has been run on some box and perhaps belies a bit of ignorance about the nature of parallelism. Last time I checked, more threads required more memory. If the plan is to get the maximum number of threads possible, the amount of memory required could vary enormously. Additionally, the nature of the parallelism is not discussed. What does each thread do? If it's not something a GPU does then GPUs are not going to help. Also, will a GPU even fit in a 1u box that already contains a server? I doubt it.

      In my very limited experience in writing multithreaded code, I have found that simply increasing the number of threads spawned doesn't necessarily equate to better performance. On the contrary, spawning too many can bring your application to a halt as an enormous number of threads vie for limited resources (network, disk, memory) and your application gets nothing done because it's too busy context switching between a huge number of resource-starved threads that do nothing while the threads that hold the resources never get scheduled to do valuable work.

      I'd also like to point out that simply buying GPUs doesn't mean your application will suddenly spawn an ability to take advantage of even one GPU. The software development effort required to add GPU detection and utilization could easily chew up that $10-15k budget in no time.

      If QuantumMist already has this application written and it's running but NOT GPU-enabled, then the best approach might be to just get the hottest multi-socket traditional CPU machine s/he can afford built on a dual LGA 1366 mobo or quad g34 mobo. Or, depending on the nature of this parallelism, it might be better to budget for some CUDA software development and a machine with a couple of GPUs.

  2. Nothing special by Anonymous Coward · · Score: 2, Informative

    Just put bunch of GTX cards to nice, big server case with enough fans. You are hardly going to find any cheaper alternative.
    When choosing cards, look for tests like this one:
    http://www.behardware.com/articles/840-13/roundup-a-review-of-the-super-geforce-gtx-580s-from-asus-evga-gainward-gigabyte-msi-and-zotac.html
    The IR thermal photos are great when choosing well cooled card.
    Also use SW to control card fans to keep them running at 100% fan speed.
    Noisy? Yes. But who cares, unless you plan putting it in your bedroom.
    You can easily keep these cards at ~70C with full load.

    1. Re:Nothing special by TWX · · Score: 4, Informative

      It would have been nice if he'd given us more information about the form factor he needs to put this into. Since the client isn't paying the electric or cooling bill then I have to assume that it's colocated, so there might be some real rack unit restrictions that prevent this from adequately working well. It also would have been nice to know storage demands too, as there are tradeoffs in front-accessible drive arrays for cooling and airflow purposes. Most of the cases with tons of hot-swap drives in front lack good front ventilation. If he only needs a few drives then that opens him up to a simple 3U or 4U chassis with a mostly open-grille of a front to make airflow a lot less restrictive.

      --
      Do not look into laser with remaining eye.
  3. SuperMicro MicroCloud w/ 8 NVidia GPUs? by Anonymous Coward · · Score: 2, Interesting

    If the off-the-shelf GTX cards work, you'd have 8 * Xeon + 8 * NVidia GPU's in 3U, all entirely parallel (I.E. 8 separate machines) to avoid the main CPU's being any kind of bottleneck. Stock each node w/ 2GB of RAM on the cheap and some cheaper SATA drives, you'd likely end up under $10k for the whole thing and have an 8-node cluster you can use for other tasks later.

    I've noticed that "embarrassingly parallel" tasks, if you take the low-hanging fruit too far, end up running into some other unforeseen bottleneck. Thus me suggesting something faux-bladeish instead.

  4. PS3 by History's+Coming+To · · Score: 2, Interesting

    PlayStation 3s have proved a cost efficient way of setting up large scale parallel processing systems. Of course you'll have to find your way around Sony's blocks on the OtherOS system, and you'll need to keep it off the internet or firewalled in some way, but you essentially get cheap processing subsidised by the games that you don't need to buy.

    --
    Please consider this account deleted, I just can't be bothered with the spam anymore.
    1. Re:PS3 by Anonymous Coward · · Score: 2, Informative

      I wouldn't give Sony a dollar of my business if they had the cure for cancer and I was a week away from death.

    2. Re:PS3 by Anonymous Coward · · Score: 5, Informative

      PlayStation 3s have proved a cost efficient way of setting up large scale parallel processing systems. Of course you'll have to find your way around Sony's blocks on the OtherOS system, and you'll need to keep it off the internet or firewalled in some way, but you essentially get cheap processing subsidised by the games that you don't need to buy.

      Back-of-the-envelope comparison of PS3 and GTX:

      A cluster of three PS3s: 920 GFLOPS. Price: about $800.

      A PC with 3 GTX 460 cards: 2200 GFLOPS. Price: about $800.

      Each of those GTX cards also has significantly more memory than the PS3, and are cheaper to develop for.

    3. Re:PS3 by QuantumRiff · · Score: 3, Informative

      actually, you can run up to 16 PCIe slots in an external chassis for heavy processing:
      http://www.dell.com/us/business/p/poweredge-c410x/pd

      --

      What are we going to do tonight Brain?
  5. can you write GPU code? by zeldor · · Score: 5, Insightful

    do you or them know how to program on a GPU?
    if its really embarrassingly parallel EC2 spot instances and the gnu program 'parallel' will work quite nicely.
    But if coding changes are required then the hardware is the least of your expenses.
     

    --
    If I could walk that way I wouldnt need cologne.
  6. Die of heat? by TheSHAD0W · · Score: 2

    > Should I just stuff four GTX cards in a server and replace them as they die from heat?

    It'd be more cost-efficient to improve the air flow or add liquid cooling. Yay mineral oil baths.

  7. 3k - 64cores + 54+GB of ram. by Anonymous Coward · · Score: 4, Interesting

    You can easily build a 64core 1U system with opterons using the quad socket setup, or 128 core using the quad socket with extension setup, that will only run you about 5k. These are general 128 cores, 2ghz+, you don't have to change the program to run on these, you do not need to obfuscate things as you would programming and dealing with gpus... Or you can wait for knights corner, or get the Tile64s.

    1. Re:3k - 64cores + 54+GB of ram. by Anonymous Coward · · Score: 2, Informative

      NewEgg. The 4 socket and extension boards are below 1k together. And the low-avg speed 16 core opterons are about 300-400, so 350*8 + 700 (board+extension) = 3.5k. The other 1.5k are power, 1333ghz ram, and the 1u container.

      You can of course spend a lot more if you want the fastest opterons, but the return goes down quickly, the 2.2Ghz are fast, cheap, 16core cpus.

    2. Re:3k - 64cores + 54+GB of ram. by dch24 · · Score: 4, Informative
      Just took a look. They have 4 choices for a 16-core opteron listen:
      • AMD Opteron 6262 HE Interlagos 1.6GHz Socket G34 85W 16-Core Server Processor OS6262VATGGGU - OEM $539.99
      • AMD Opteron 6272 Interlagos 2.1GHz Socket G34 115W 16-Core Server Processor OS6272WKTGGGUWOF $539.99
      • AMD Opteron 6274 Interlagos 2.2GHz Socket G34 115W 16-Core Server Processor OS6274WKTGGGUWOF $659.99 out of stock
      • AMD Opteron 6274 Interlagos 2.2GHz Socket G34 115W 16-Core Server Processor OS6274WKTGGGU - OEM $659.99 out of stock

      I'm going to keep looking, but I don't see any in the 300-400 range.

  8. Need more information by pem · · Score: 3, Informative

    If, for example, it's embarrassing parallel DSP operations, you might try some dedicated DSP engines, or even some Xilinx FPGAs.

  9. U of I by TheGreatOrangePeel · · Score: 4, Informative
    Try getting in touch with the folks doing parallel processing research or the people with NCSA at U of I. I imagine one or both would have a few tips for you assuming they're open to doing that kind of collaboration.
    • http://parallel.illinois.edu/
    • http://www.ncsa.illinois.edu/
  10. Do you need it in a box? by Tom+Goodale · · Score: 2

    If it's really embarrassingly parallel, just run it on whatever CPUs you have hanging about or can scrounge cheaply. As long as the application is written portably they don't even need to be the same architecture or operating system, although that would help with deployment. The only reason to try to scrunch everything in one box would be if you have space limitations.

  11. many AMD CPUs unless the GPU port is done already by Anonymous Coward · · Score: 2, Interesting

    You can get 48 real AMD Magny-Cours CPU cores with full DP floating point support and ~64GB ECC memory in a box for under 10K(EUR!) from e.g. Tyan and supermicro.
    I run my embarassingly parallel stuff on that, and it works great. Depending on your application 64 Bulldozer cores which come in the same package for only slightly more money may perform better or not. I have not seen many realworld applications in which one GPU is actually faster than 12 to 16 server-class CPU cores.
    Of course this depends a lot on wether you have done the GPU porting already or are just planning to, which you unfortunately don't state in your post

  12. Definitely GPU. by pla · · Score: 4, Interesting

    Others have pointed it out, but if you can run this on a GPU, you don't need to look any further than that.

    Specifically, check out some of the BitCoin mining rigs people have built, like 4x Radeon 6990s in a single box. For comparison, a single 6990 easily beats a top-of-the-line modern CPU by a factor of 50 (as in, not 50%, but 5000%). You can build such a box for well under $5k.

  13. commodity HPC depends on your code by Haven · · Score: 5, Informative

    In HPC we call it "pleasantly parallel," nothing is embarrassing about it! =]

    If your code:
    -scales to OpenCL/CUDA easily.
    -does not require high concurrent memory transfers
    -is fault tolerant (ie a failed card doesn't hose a whole day/week of runs)
    -can use single precision flops

    Then you can use commodity hardware like the gtx series cards. I'd go with the gtx 560ti (GF114 gpu).

    Make nodes with:
    quad core processors (amd or intel)
    whatever ram is needed (8GB minimum)
    2 x gtx560ti (448) run in SLI (or the 560ti dual from EVGA)

    Basically a scaled down Cray XK6 node. http://www.cray.com/Assets/PDF/products/xk/CrayXK6Brochure.pdf

    It all depends on your code.

  14. rent a botnet by Lazy+Jones · · Score: 3, Funny
    --
    "I love my job, but I hate talking to people like you" (Freddie Mercury)
  15. How does it parallelize? by darkjedi521 · · Score: 4, Informative

    How does the app parallelize? Is each process/thread dependent on every other process/thread or is it a 1000 processes flying in close formation that all need to complete at the same time but don't interact with each other? How embarrassingly parallel is embarrassingly parallel? Is that 512MB requirement per process or the sum of all processes?

    GPUs might not be the right solution for this. GPUs are excellent for parallelizing some operations but not others. Have you done any benchmarks? Throwing lots of CPU at the problem may be the right solution depending on the algorithms used and how well they can be adapted for a GPU, if they can be adapted for a GPU.

    For the $10K-$15K USD range, I'd look at Supermicro's offerings. You have options ranging from dual socket 16 core AMD systems with 2 Teslas to quad socket AMD systems to quad socket Intel solutions to dual socket Intel systems with 4 Tesla cards.

    Do some testing of your code in various configurations before blindly throwing hardware at the problem. I support researchers who run molecular dynamics simulations. I've put together some GPU systems and after testing, it was discovered that for the calculations they are doing, the portions that could be offloaded to their code only accounted for at most 10% of the execution time, with the remainder being operations that the software packages could only do on CPU.

    1. Re:How does it parallelize? by Jimbookis · · Score: 2

      Right, do the computations actually need floating point at all or can you do fixed point maths (hence just use the integer units in the CPU) instead? Plenty of DSP oriented stuff certainly doesn't need floats. If you have integer/fixed point maths only then an AMD CPU might be a ripper for the money.

  16. Beowulf cluster! by TWX · · Score: 5, Funny

    Why not a beowulf clust---

    I'm sorry, I just can't. I searched the ~35 posts, browsing at -1, and no reference to a Beowulf cluster anywhere, let alone Natalie Portman or Grits.

    Slashdot! You're slipping! I lament the days when even our trolls were amusing and somewhat topical to the discussion at hand! We've fallen so far!

    --
    Do not look into laser with remaining eye.
  17. Beowulf clusters by G3ckoG33k · · Score: 3, Informative

    Yes, I haven't seen any references here or anywhere else either lately.

    From http://en.wikipedia.org/wiki/Beowulf_cluster: "The name Beowulf originally referred to a specific computer built in 1994 by Thomas Sterling and Donald Becker at NASA. [...] There is no particular piece of software that defines a cluster as a Beowulf. Beowulf clusters normally run a Unix-like operating system, such as BSD, Linux, or Solaris, normally built from free and open source software. Commonly used parallel processing libraries include Message Passing Interface (MPI) and Parallel Virtual Machine (PVM). Both of these permit the programmer to divide a task among a group of networked computers, and collect the results of processing. Examples of MPI software include OpenMPI or MPICH. There are additional MPI implementations available. Beowulf systems are now deployed worldwide, chiefly in support of scientific computing."

    Apparently, Beowuld clusters may be around, it is just that they don't go by that name any longer. I wonder what would be the latest buzzword for essentially the same thing?

  18. Why, mini-cluster, of course! by Noryungi · · Score: 2

    http://www.mini-itx.com/projects/cluster/?p

    The example at the URL above is quite old, but a good starting point. Just use a dozen cheap mini-itx cards with -- let's say -- Intel Core i5 and voilà! Probably the cheapest way to go, and, also much easier to program than using CUDA and nVidia. Hook the whole thing in a gigabit switch

    I'll let the experts debate the best CPU for that job, but AMD should also have some nice products on offer.

    --
    The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
  19. We built a ~9.1 TFLOPS system for $10k last year. by Arakageeta · · Score: 4, Interesting

    What does SLI give you in CUDA? The newer GeForce cards support direct GPU-to-GPU memory copies, assuming they are on the same PCIe bus (NUMA systems might have multiple PCIe buses).

    My research group built this 12-core/8-GPU system last year for about $10k: http://tinyurl.com/7ecqjfj

    The system has a theoretical peak ~9.1 TFLOPS, single precision (simultaneously maxing out all CPUs and GPUs). I wish the GPUs had more individual memory (~1.25GB each), but we would have quickly broken our budget had we gone for Tesla-grade cards.

  20. Don't buy GTX's by MetricT · · Score: 4, Informative

    We have several racks full, purchased because "they're cheaper than Tesla's".

    Except the Tesla's have, as pointed out, ECC memory and better thermal management, and the GTX's have several useful features (like the GPU load level in nvidia-smi) disabled.

    The former cause the compute nodes to crash regularly. What you save on cards, you'll lose in salary for someone to nursemaid them. The latter makes it harder to integrate into a scheduler environment (we're using Torque).

    Yes, this is primarily marketing discrimination, and there probably isn't $10 worth of real difference between the two. I hope the marketing droid who thought that scheme up burns. It's a total aggravation, but paying for Teslas is worthwhile.

    1. Re:Don't buy GTX's by Khyber · · Score: 2

      Plenty of hacks to enable GPU load level. Probably several already out there as-is. The ECC memory is a different beast, though.

      --
      Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
  21. Try looking at the cheap end... by JoeMerchant · · Score: 2

    I've played this parallel cost analysis game several times, and if you don't need high bandwidth communication between the threads, I usually come up with the Google solution: a big farm of cheap machines. AMD chips start looking good compared to Intel because you're not after a single thread finishing as fast as possible, you're after as many FLOPS per $ as you can get. We even did the analysis for an extreme Apple fanboi: MacPros vs MacMinis back in 2007, and a stack of 25 minis came out way more powerful than the 3 or 4 Pros you could get for the same money.

  22. Do your homework before going GPU by PatDev · · Score: 3, Informative

    As someone who has done some GPU programming (specifically CUDA) be aware that there is more to the GPU parallelism model than just "lots of threads". Many embarrassingly parallel problems translate very poorly to CUDA. The primary things to consider is that:

    1. GPUs are *data parallel*. This means that you need to have an algorithm in which each and every thread will be executing the same instruction at the same time (just on different data). For a cheap way to evaluate it, if you can't speed up your program by vectorizing it then the GPU won't help. Of course, you can have divergent "threads" on GPUs, but as soon as you do you've lost all benefit to using a GPU, and have essentially turned your GPU into an expensive but slow computer.

    2. Moving data onto or off of the GPU is *slow*. So if you can leave all the data on the GPUs and none of the GPUs need to communicate with each other, then this will work well. If the threads need to frequently globally sync up, you're going to be in trouble.

    That said, if you have the right kind of data parallel problem, GPUs will blow everything else out of the water at the same price point.

  23. Re:Embarrassingly parallel problems... by MickLinux · · Score: 2

    Yes I do. He's extending the calculations begun by Lewis Carroll in the imaginary space (through the looking glass), to see the effects as the ultimate limit increases.

    What's

      1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+ 1+1+1+1+1+1+ 1+1+1+1+1+1+ 1+1+1+1+1+1+
      1+1+1+1+1+1+1+1+1+1+1+1

    As I said, embarrassingly parallel. Get 7 computers working on it in parallel, with 1 for backup:

    What's 1+1+1+1+1+1 (after some calculation, 6)
    So that all is 42.

    the ultimate answer is

      1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+ 1+1+1+1+1+1+ 1+1+1+1+1+1+ 1+1+1+1+1+1+
      1+1+1+1+1+1+1+1+1+1+1+1=42.

    I should note that this mathematical calculation was also attempted by Douglas Adams, using genetic algorithms.

    --
    Correct Horse Battery Staple: 72 bits of entropy. Enter "Correct H" into google. When it generates the phrase, that's
  24. TI DSP cards? by Mr+Z · · Score: 2

    There's some high-powerd PCI cards filled with TI DSPs that you can get. Here's an article describing some of them. In terms of power efficiency per unit of work, the DSPs blow the doors off the main processor and the GPUs. Each DSP on the chip can do 16 single precision or 4 double precision floating point operations per cycle, at around 1GHz, and they're programmable in C/C++.

    Relevant quote:

    Kenneth Nesteroff, business development manager for multicore processors at IT's DSP Systems unit, tells El Reg that in the first quarter, Advantech will come out with a full-length PCI-Express card that will deliver around 1 teraflops of single precision performance at a cost of around $2,000 and within a 110 watt thermal envelope.

    Buy 5 of these and you're only at 550W, $10,000 and 5 TFLOPs.