element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Raspberry Pi server clusters
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 96 replies
  • Subscribers 682 subscribers
  • Views 12152 views
  • Users 0 members are here
Related

Raspberry Pi server clusters

morgaine
morgaine over 13 years ago

One of my current intentions is to play with server clustering once the Raspberry Pi is in volume production and the 1-per-person restrictions are lifted.  I have a long-term background in parallelism and concurrency --- my doctoral research was in the topic, and I lectured on it later as well, so it's quite dear to my heart.  The very low price of the board makes this feasible with a monetary outlay far below anything else, so I'm really looking forward to an Rpi clustering project.

 

I'm sure that I'm not the only one thinking about Rpi+clustering. image  If anyone here has this kind of application in mind, or just general interest in the subject, please keep in touch and post any interesting links you may find on the topic.  Once there are millions of the boards around, this could be a very popular area. image

 

Morgaine.

  • Sign in to reply
  • Cancel
Parents
  • jardino
    jardino over 13 years ago

    Hello!

     

    I've been interested in building a cluster of computers ever since I read "How to Build a Beowulf" many years ago, but had neither time nor resources to do so until now.

     

    The thinking in that book was that as Personal Computers became more powerful, so less powerful ones should drop in price. However, that didn't happen - they just disappeared from the market. So unless you

    were lucky to find an organisation that was about to dump dozens of PCs, it was difficult to collect enough machines to get started. And then there were considerations about maintainability, power consumption

    and waste heat removal...

     

    However, now that Raspberry Pi's are readily available from Farnell and others, I've built myself a 4-node Beowulf, following on from the starting instructions given by Professor Cox of Southampton University

    ( http://www.southampton.ac.uk/~sjc/raspberrypi/ ). I'm now able to compile and run sample programs in C and Fortran, using MPI, and have started to write my own programs.

     

    I aware of the reasons for a RPi Beowulf never being able to be a true "supercomputer", but my objectives at the moment are simply to learn about parallel processing, so performance is not a key issue for me at the moment.

     

    I plan to add an Rpi node at the rate of one or two a month as my budget permits. Soon I'll have to address the hardware engineering issues as my litle Beowulf simply lives in a plastic Tesco storage box at the moment!

     

    I've shared my learning so far on the raspberrypi.org forum at

    http://www.raspberrypi.org/phpBB3/viewtopic.php?f=41&t=548 , but interest there seems to have died out.

     

    I hope it's not going to do the same here, although the discussion about clusters seems to have moved away lately from RPi's to more exotic architectures.

     

    Alan.   

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 13 years ago in reply to jardino

    Hi Alan!  Welcome to Element 14. image

     

    It was great to read your experiences with setting up a small cluster of Pi boards.  I read your posts on the RPF forum too, detailing your voyage of discovery.  Your writeup will probably be quite helpful to other people who want to follow the same path.

     

    Although the Pi is clearly the wrong board to use if one's goal is HPC (even Eben Upton said as much), as long as "This is not for HPC" is clearly implanted in one's skull then the low price of Pi certainly makes cheap experimentation with clusters viable on a shoestring.  What's more, since nodes run headless and connected only by their Ethernet ports, this is an application that can probably run unaffected by the Pi's USB hardware problems.

     

    I have to take issue with the dear Prof calling his project "Steps to make a Raspberry Pi Supercomputer".  It's not a supercomputer and never can be, it's simply a cluster.  Profs should not lower themselves to riding on hype bandwagons and claiming something which they know full well to be untrue.

     

    Using such a cluster for non-HPC applications should certainly be interesting though, as we discussed at some length earlier in this thread.  A high availability web server would be one such application, focussing not on performance but on resilience.  The front ends would be easy to set up because they don't need to communicate with each other when serving web pages, but clustering your back-end database would certainly be interesting, and even challenging to do well.

     

    It should be mentioned that while Pi is not directly useful for HPC, the picture starts to change when more modern ARM SoCs are considered.  In particular, the newly released Freescale i.MX6 SoC such as used on the Wandboard provides not only the extra power of Cortex-A9 cores but also on-SoC gigabit Ethernet and apparently OpenCL as well, so it certainly seems to be a candidate for modest HPC applications.

     

    I look forward to reading more as your project progresses, especially if you add High Availability features.  It's worth pointing out that much of this material is relevant whichever ARM boards are used in a cluster.

     

    Keep up the good work! image

     

    Morgaine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rew
    rew over 13 years ago in reply to morgaine

    The Raspberry pi is quite good for high performance computing, but we need someone with a lot of time on his hands and some technical talent to get mad at the VideoCore graphical processor. We have a whole bunch of "sample code" out in the open. Once someone reverse engineers that and writes an assembler/compiler, we'll be able to do gigaflops on the raspberry pi.

     

    @coder27: network booting unavailable? I was just thinking about this  yesterday. It should be easy/possible to make a  program that acts as an pxe boot rom. Store it as "kernel.img" on the SD card, and off you go! This one is easier. It's just that someone needs to have this "itch" to make him scratch it. I've been crashing my kernel like tens of times on monday. So I couldn't copy over the newer kernel.img to the running system. Out comes the SD card, into the reader, update kernel, and back to the pi.  But after ten or twenty iterations you find what crashes your kernel (it was the printk, NOT the actual code I added that crashed the kernel. So I was under the impression that it kept crashing even when I removed all the code that did something.... )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jardino
    jardino over 13 years ago in reply to morgaine

    Hi Morgaine:

     

    Thanks for the welcome and kind words!

     

    Yes, the "dear Prof" got me started on my Beowulf, then left me high and dry after showing how to run a pre-compiled C program. The learning curve to getting my own programs to compile and run on a 2-node system was quite steep, but fun. He also failed to address (or tell us about) aspects such as program version control on multiple nodes and system management. For instance, it takes me about 20 minutes to create a cloned SD card on my netbook, so re-building a 64-node system using his method would take nearly three 8-hour days! (Personally, I think his announcement was just for publicity purposes. I mean, tiny computers, supercomputers, Lego and a six-year-old child presses lots of hot buttons in the press. I wonder if he will get his cluster to do anything useful.)

     

    I'm still going to focus on scientific / mathematical programming for a while, since that's my main interest. However, I'll delve into High Availability systems at some point.

     

    Regards,

    Alan. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to rew

    >Once someone reverse engineers that and writes an assembler/compiler

     

    There is a very early attempt here:

    https://github.com/hermanhermitage/videocoreiv/wiki/VideoCore-IV-Programmers-Manual

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 13 years ago in reply to rew

    >Once someone reverse engineers that and writes an assembler/compiler

     

    There is a very early attempt here:

    https://github.com/hermanhermitage/videocoreiv/wiki/VideoCore-IV-Programmers-Manual

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube