Docsity

OpenMosix: A Load-Balancing Solution for Linux Clusters, Slides of Parallel Computing and Programming

Toggle sidebar
bg1
3
What makes clusters hard ?
Setup (administrator)
setting up a 16 node farm by hand is prone to errors
Maintenance (administrator)
ever tried to update a package on every node in the farm?
Running jobs (users)
running a parallel program or set of sequential programs
requires the users to figure out which hosts are available
and manually assign tasks to the nodes, or use software
tools based on static process allocation (queue managers)
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download OpenMosix: A Load-Balancing Solution for Linux Clusters and more Slides Parallel Computing and Programming in PDF only on Docsity!

3

What makes clusters hard ?Setup^ (administrator)^ ^ setting up a 16 node farm by hand is prone to errorsMaintenance^

(administrator)  ever tried to update a package on every node in the farm?

Running jobs

(users)  running a parallel program or set of sequential programsrequires the users to figure out which hosts are availableand manually assign tasks to the nodes, or use softwaretools based on static process allocation (queue managers)

4

What is OpenMosix ?DescriptionOpenMosix is an

OpenSource^ enhancement to the Linux kernel

providing adaptive (on-line) load-balancing between x86 Linuxmachines. It uses preemptive process migration to assign andreassign the processes among the nodes to take the bestadvantage of the available resourcesOpenMosix moves processes around the Linux farm to balancethe load, using less loaded machines firstURLhttp://www.openmosix.org

6

OpenMosix architecture

Network transparencythe interactive user and the application level programs are provided bya virtual machine that looks like a single MP machinePreemptive process migrationany user’s process, trasparently and at any time, can migrate to anyavailable node.The migrating process is divided into two contexts: ^ system context (deputy) that may not be migrated from “home”workstation (UHN); ^ user context (remote) that can be migrated on a diskless node;

7

OpenMosix architecture

Preemptive process migration^ master node

diskless node

9

OpenMosix architecture

Memory sharing ^ places the maximal number of processes in the farm main memory,even if it implies an uneven load distribution among the nodes ^ delays as much as possible swapping out of pages ^ makes the decision of which process to migrate and where to migrateit is based on the knoweldge of the amount of free memory in othernodesEfficient kernel communication ^ is specifically developed to reduce the overhead of the internal kernelcommunications (e.g. between the process and its home site, when itis executing in a remote site) ^ fast and reliable protocol with low startup latency and high throughput

10

OpenMosix architecture

Probabilistic information dissemination algorithms ^ provide each node with sufficient knowledge about availableresources in other nodes, without polling ^ measure the amount of the available resources on each node ^ receive the resources indices that each node send at regularintervals to a randomly chosen subset of nodes ^ the use of randomly chosen subset of nodes is due for support ofdynamic configuration and to overcome partial nodes failuresDecentralized control and autonomy ^ each node makes its own control decisions independently and there is nomaster-slave relationship between nodes ^ each node is capable of operating as an independent system; thisproperty allows a dynamic configuration, where nodes may join or leavethe farm with minimal disruption

12

Diskless farm setup

traditional method (1/2)

Traditional method ^ Server^ ^ BOOTP^ server^ ^ NFS server^ ^ separate root directory for each client ^ Client^ ^ BOOTP to obtain IP^ ^ TFTP to load “tagged kernel” image^ ^ rootNFS to load root filesystem

13

Diskless farm setup

traditional method (2/2)

Traditional method – Problemsseparate root directory structure for each node ^ hard to set up^ ^ lots of directories with slightly different contents ^ difficult to maintain^ ^ changes must be propagated to each directory

15

ClusterNFS featuresClusterNFS allows all machines (including server) to share theroot filesystem^ ^ all files are shared by default^ ^ files for all clients are named

filename$$CLIENT$$ ^ files for specific client are named^ filename$$IP=xxx.xxx.xxx.xxx$$

or filename$$HOST=host.domain.com$$

16

Diskless farm setup

with ClusterNFS (1/2)

ClusterNFS method ^ Server^ ^ DHCP and TFTP server^ ^ ClusterNFS

server  single root directory for server and clients ^ Clients^ ^ DHCP to obtain IP^ ^ TFTP to load PXE boot loader and then kernel image^ ^ rootNFS to load root filesystem

18 VIRGO experiment

(Jun 2001)

VIRGO is the collaboration between Italian and French research teams, forthe realization of an interferometric gravitational wave detector;The main goal of the VIRGO project is the first direct detection ofgravitational waves emitted by astrophysical sources;Interferometric gravitational wave detectors produce a large amount of“raw” data that require a significant computing power to be analysed.To satisfy such a strong requirement of computing power we decided tobuild a Linux cluster running MOSIX (and now OpenMosix)

VIRGO experiment

(Jun 2001)

Data Switch

Internal Switch SM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GBSM 6010H^ 18 GB

Alpha Server^4100 144 GB VIRGO Lab Switch^

HardwareLAN Farm nodes SuperMicro6010H- Dual Pentium III 1Ghz- RAM: 512Mbyte- HD: 18Gbyte- 2 Fast Ethernet interfaces- 1 Gbit Ethernet interface- (only on master-node) Storage Alpha Server 4100HD: 144GB

21 VIRGO experiment

(Jun 2001)

30,00 25,00 20,00 15,00 10,00 5,00^ 0,00^1 4

12 16 20

24 speed-up^ Num ber of processors

measured speed-uptheoretical speed-up The increase of computing speed respect to the number of processors doesn’t follow an exactlylinear curve; this is mainly due to the growth of communication time, spent by the computing nodesto transmit data over the local area network.

speed-up of repeated Matched Filter executions

22 ARGO experiment

(Jan 2002)

The aim of the ARGO-YBJ

experiment is to study cosmic rays, mainly cosmic gamma-radiation, at an energy threshold of ~100 GeV, by meansof the detection of small size air showers.This goal will be achieved by operating a full coverage array in theYangbajing Laboratory (Tibet, P.R. China) at 4300m a.s.l.As we have seen for the Virgo experiment, the analysis of data producedby Argo requires a significant amount of computing power.To satisfy this requirement we decided to implement an OpenMOSIXcluster.