Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Building a BeagleBone Black Super Cluster
Building a BeagleBone Black Super Cluster

Building a BeagleBone Black Super Cluster: Build and configure your own parallel computing Beowulf cluster using BeagleBone Black ARM systems

Arrow left icon
Profile Icon Andreas J Reichel
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (4 Ratings)
Paperback Nov 2014 156 pages 1st Edition
eBook
Can$12.99 Can$33.99
Paperback
Can$41.99
Subscription
Free Trial
Arrow left icon
Profile Icon Andreas J Reichel
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (4 Ratings)
Paperback Nov 2014 156 pages 1st Edition
eBook
Can$12.99 Can$33.99
Paperback
Can$41.99
Subscription
Free Trial
eBook
Can$12.99 Can$33.99
Paperback
Can$41.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Building a BeagleBone Black Super Cluster

Chapter 2. Building a Beowulf Cluster

A Beowulf cluster is nothing more than a bunch of computers interconnected by Ethernet and running with a Linux or BSD operating system. A key feature is the communication over IP (Internet Protocol) that distributes problems among the boards. The entity of the boards or computers is called a cluster and each board or computer is called a node.

In this chapter, we will first see what is really required for each board to run inside a cluster environment. You will see examples of how to build a cheap and scalable cluster housing and how to modify an ATX power supply in order to use it as a power source. I will then explain the network interconnection of the Beowulf cluster and have a look at its network topology. The chapter concludes with an introduction to the microSD card usage for installation images and additional swap space as well as external network storage.

The following topics will be covered:

  • Describing the minimally required equipment...

Minimal configuration and optional equipment

BBB is a single-board computer that has all the components needed to run Linux distributions that support ARMhf platforms. Due to the very powerful network utilities that come with Linux operating systems, it is not necessary to install a mouse or keyboard. Even a monitor is not required in order to install and configure a new BBB. First, we will have a look at the minimal configuration required to use a single board over a network.

Minimal configuration

A very powerful interface of Linux operating systems is its standard support for SSH. SSH is the abbreviation of Secure Shell, and it enables users to establish an authenticated and encrypted network connection to a remote PC that provides a Shell. Its command line can then be utilized to make use of the PC without any local monitor or keyboard. SSH is the secure replacement for the telnet service. The following diagram shows you the typical configuration of a local area network using SSH for...

Building a scalable board-mounting system

The following image shows you the finished board housing with its key components as well as some installed BBBs. Here, a indicates the threaded rod with the straw as the spacer, b indicates BeagleBone Black, c indicates the Ethernet cable, d indicates 3.5" hard disc cooling fans, e indicates the 5 V power cable, and f indicates the plate with drilled holes.

Building a scalable board-mounting system

The finished casing with installed BBBs

One of the most important things that you have to consider before building a super computer is the space you require. It is not only important to provide stable and practical housing for some BBB boards, but also to keep in mind that you might want to upgrade the system to more boards in the future. This means that you require a scalable system that is easy to upgrade. Also, you need to keep in mind that every single board requires its own power and has to be accessible by hand (reset, boot-selection, and the power button as well as the memory card,...

Using a low-cost power source

I have seen a picture on the Web where somebody powered a dozen older Beagle Boards with a lot of single DC adapters and built everything into a portable case. The result was a huge mess of cables. You should always try to keep your cables well organized in order to save space and improve the cooling performance. Using an ATX power supply with a cable tree can save you a lot of money compared to buying several standalone power supplies. They are stable and can also provide some protection for hardware, which cheap DC adapters don't always do. In the following section, I will explain the power requirements and how to modify an ATX power supply to fit our needs.

Power requirements

If you do not use an additional keyboard and mouse and only onboard flash memory, one board needs around 500 mA at 5 V voltage, which gives you a total power of 2.5 Watts for one board. Depending on the installed memory card or other additional hardware, you might need more.

Note

Please...

Setting up the network backbone

To interconnect BBB boards via Ethernet, we need a switch or a hub. There is a difference in the functionality between a switch and a hub:

  • With hubs, computers can communicate with each other. Every computer is connected to the hub with a separate Ethernet cable. The hub is nothing more than a multiport repeater. This means that it just repeats all the information it receives for all other ports, and every connected PC has to decide whether the data is for it or not. This produces a lot of network traffic and can slow down the speed.
  • Switches in comparison can control the flow of network traffic based on the address information in each packet. It learns which traffic packets are received by which PC and then forwards them only to the proper port. This allows simultaneous communication across the switch and improves the bandwidth. This is the reason why switches are the preferred choice of network interconnection for our BBB Beowulf cluster.

The following table...

The network topology

The typical network topology is a star configuration. This means that every BBB board has its own connection to the switch, and the switch itself is connected to the local area network (LAN). On most Beowulf clusters, there is one special board called the master node. This master node is used to provide the bridge between the cluster and the rest of the LAN. All users (if there are more persons that use the cluster) log in to the master node, and it is only responsible for user management and starting the correct programs on specified nodes. It usually doesn't contribute to any calculation tasks.

However, as BBB only has one network connector, it is not possible to use it as a bridge, because a bridge requires two network ports:

  • One connected to the LAN.
  • The other connected to the switch of the cluster.

Because of this, we only define one node as the master node, providing some special software features but also contributing to the calculations of the cluster. This...

Minimal configuration and optional equipment


BBB is a single-board computer that has all the components needed to run Linux distributions that support ARMhf platforms. Due to the very powerful network utilities that come with Linux operating systems, it is not necessary to install a mouse or keyboard. Even a monitor is not required in order to install and configure a new BBB. First, we will have a look at the minimal configuration required to use a single board over a network.

Minimal configuration

A very powerful interface of Linux operating systems is its standard support for SSH. SSH is the abbreviation of Secure Shell, and it enables users to establish an authenticated and encrypted network connection to a remote PC that provides a Shell. Its command line can then be utilized to make use of the PC without any local monitor or keyboard. SSH is the secure replacement for the telnet service. The following diagram shows you the typical configuration of a local area network using SSH for the...

Building a scalable board-mounting system


The following image shows you the finished board housing with its key components as well as some installed BBBs. Here, a indicates the threaded rod with the straw as the spacer, b indicates BeagleBone Black, c indicates the Ethernet cable, d indicates 3.5" hard disc cooling fans, e indicates the 5 V power cable, and f indicates the plate with drilled holes.

The finished casing with installed BBBs

One of the most important things that you have to consider before building a super computer is the space you require. It is not only important to provide stable and practical housing for some BBB boards, but also to keep in mind that you might want to upgrade the system to more boards in the future. This means that you require a scalable system that is easy to upgrade. Also, you need to keep in mind that every single board requires its own power and has to be accessible by hand (reset, boot-selection, and the power button as well as the memory card, and so...

Left arrow icon Right arrow icon

Description

If you are a programmer, scientist, or someone interested in modern computer technology that goes beyond the typical PC, then this book will show you the outstanding possibilities of cluster computing with modern embedded systems based on ARM architecture. Whether you need a high-speed or low-cost scalable cluster for simulations or want to try something new, this book is the right guide for you.

What you will learn

  • Use the minimal configuration necessary to control your BeagleBone via a network
  • Build your own scalable server rack and lowcost power supply
  • Set up the network backbone and configure the boards for cluster interconnection
  • Use FTP, Samba, or SCP for simple file transfers
  • Configure the OpenMPI Message Passing Interface for cluster communication and ScaLAPACK for distributed calculation of mathematical problems
  • Develop your own simulation software and visualize your data using a highly sophisticated physics simulation package

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 19, 2014
Length: 156 pages
Edition : 1st
Language : English
ISBN-13 : 9781783989447
Category :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Nov 19, 2014
Length: 156 pages
Edition : 1st
Language : English
ISBN-13 : 9781783989447
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Can$ 165.97
BeagleBone Black Cookbook
Can$61.99
Mastering Beaglebone Robotics
Can$61.99
Building a BeagleBone Black Super Cluster
Can$41.99
Total Can$ 165.97 Stars icon
Banner background image

Table of Contents

8 Chapters
1. BeagleBone Black System Board Chevron down icon Chevron up icon
2. Building a Beowulf Cluster Chevron down icon Chevron up icon
3. Operating System Setup and Configuration Chevron down icon Chevron up icon
4. Parallel Computing with OpenMPI and ScaLAPACK Chevron down icon Chevron up icon
5. Advanced Solving of General Equation Systems Chevron down icon Chevron up icon
6. Scientific and Technological Examples of Parallel Computing Chevron down icon Chevron up icon
A. References Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5
(4 Ratings)
5 star 50%
4 star 50%
3 star 0%
2 star 0%
1 star 0%
Amazon Customer Apr 09, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Building a BeagleBone Super Cluster book is a most have for those individuals who needs to have the latest hardware and loves tinkering with electronics. The author focus mainly on the BeagleBone Black but you can build a super cluster by mixing both beaglebone white and beaglebone black boards. I love how the author covered areas on parallel computing and mathematical computation while dedicating a whole chapter to demonstrate how it is used. The author explains each subject clearly and to the point without overwhelming the reader with unnecessary information. The subject complexity starting with Chapter 4 is not for the inexperienced nor considered light reading. Nonetheless the author approach to those subjects stirs the reader’s curiosity for those daring souls and point out other sources where the subject is explained in more detail. It is a great book to get started with cluster and how to use them. The rest is limited by the reader’s imagination.
Amazon Verified review Amazon
CNC guy Mar 31, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The quick storyThis short (<150 page) book shows you how to build a cluster of BeagleBone Blacks in order to solve some complicated problems. It is well written with clear and concise directions. Anyone with a basic understanding of Linux should be able to build their own cluster with this book. It also provides some concrete, real-world examples. I recommend it to anyone remotely interested in multi-processing.The slightly longer storyI was asked to review this book by Packt. I was somewhat skeptical about the book initially, but that quickly vanished once I started to read this book. As a disclaimer, I am an author of another book on the BeagleBone Black (Hacking and Penetration Testing with Low Power Devices, Syngress, 2015) and a reformed physicists currently teaching digital forensics and security at a university. I absolutely loved this book, in part because it involved some pretty cool things you can do with the BeagleBone Black to solve physics and engineering problems, but more importantly because the author does a great job of making something complex easy to understand.The book begins with an overview of the BeagleBone Black. The second chapter tells you how to build the hardware for your cluster. The third and fourth chapters tell you how to install the operating system and also how to setup the multiprocessing software with clear and detailed instructions. The final two chapters walk you through several examples that are best solved with parallel computing.Recommended audienceAnyone interested in parallel computingFans of the BeagleBone family of boardsPeople who like to tinker with hardware (cheaply in this case)Anyone who likes to solve complex math problems
Amazon Verified review Amazon
Norbert Varga Feb 21, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
I’ve got the chance to read this very good quality book from PacktPub. Nice intro to the BeagleBone and cluster computing even for those who are not into Linux and embedded hw & sw. I think they are the target audience. I didn’t know much about open source cluster computing software, know I know the basics, and I’m happy that there are nice and easy solutions for dealing with multiple processes running on multiple machines.
Amazon Verified review Amazon
GrahamH Jan 12, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
The covers pretty much everything that you need to know to build a Linux "Beowulf" cluster using as many Beaglebone Black computers as you want to use. The limitation will be the size and bandwidth of the Ethernet switch that connects all the boards. The communications and management architecture is discussed and you are pointed to repositories containing the software to run it. Building such a cluster using Beaglebone Blacks is probably more an educational exercise than a practical "Super Computer." The individual Beaglebone Black computers are each approximately the computational power of an old Pentium III CPU. The cluster talks between the boards using 100 Mb Ethernet, which may or may not be a restriction in use, depending upon the problem being solved.The book pretty much answered my questions and curiosity concerning how you would build a Linux computer cluster. I don't think I will actually build one.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.