Search:  
Gentoo Wiki

HOWTO_OpenMosix-Cluster

This article is still a Stub. You can help Gentoo-Wiki by expanding it.

OpenMosix seems to have disappeared from portage... looks like you'll have to go get the sources yourself.

Contents

What is OpenMosix?

(Description taken from http://openmosix.sourceforge.net/)

openMosix is a Linux kernel extension for single-system image (usually identical computers, not necessarily always) clustering. This kernel extension turns a network of ordinary computers into a supercomputer for Linux applications.

Once you have installed openMosix, the nodes in the cluster start talking to one another and the cluster adapts itself to the workload. Processes originating from any one node, if that node is too busy compared to others, can migrate to any other node. openMosix continuously attempts to optimize the resource allocation.

There is no need to program applications specifically for openMosix. Since all openMosix extensions are inside the kernel, every Linux application automatically and transparently benefits from the distributed computing concept of openMosix. The cluster behaves much as does a Symmetric Multi-Processor, but this solution scales to well over a thousand nodes which can themselves be SMPs.

LiveCDs for nodes

An easy way to get a cluster running or add nodes to a cluster is to use a LiveCD (no install to hard drive, runs off CD/DVD-ROM) such as the "instant clusters" available at http://openmosix.sourceforge.net/instant_openmosix_clusters.html .

Configure OpenMosix kernel

NOTE: The sources are no longer in portage. Just go fetch the sources yourself from sourceforge (http://openmosix.sourceforge.net), and then proceed as usual...

# cd /usr/src/linux
# make menuconfig


OpenMosix + Kernel 2.4.30

Follow the Gentoo Handbook and use the 2.4 kernel instructions.

Enable the following options in menuconfig:

Linux Kernel Configuration: 2.4.30
Code maturity level options ---> 
    Prompt for development and/or incomplete code/drivers
openMosix --->
    [*] openMosix process migration support
    [ ] Support clusters with a complex network topology
    [*] Stricter security on openMosix ports
    (1) Level of process-identity disclosure (0-3)
    [ ] Poll/Select exceptions on pipes
    [ ] Disable OOM Killer
    [ ] Load Limit
Code maturity level options  --->
    [*] Prompt for development and/or incomplete code/drivers
Networking options --->
    <*> Packet socket
    [ ]   Packet socket: mmapped IO
    < > Netlink device emulation
    [ ] Network packet filtering (replaces ipchains)
    [ ] Socket Filtering
    <*> Unix domain sockets
    [*] TCP/IP networking
    [*]   IP: multicasting
File systems --->
   [*] /proc file system support
   [*] /dev file system support (EXPERIMENTAL)
   [*]   Automatically mount at boot

Make sure that the root filesystem is loaded in and that you emerge the filesystem tools. Then

# make dep
# make clean bzImage modules modules_install
(Make sure /boot is mounted before copying to it)
# cp arch/i386/boot/bzImage /boot/bzImage-openmosix

OpenMosix + 2.6 kernel

Be sure to enable the following:

HPC options--->
:Enable OpenMosix clustering

Set up cluster

# emerge openmosix-user
# rc-update add openmosix default
# nano -w /etc/openmosix.map

The /etc/openmosix.map file contains the all the configuration information for your cluster. Edit this file to configure your cluster or delete this file to use autoconfiguration ("rm /etc/openmosix.map" causes autodiscovery).

Starting the cluster

/etc/init.d/openmosix start


More information to come! Try reading the OpenMosix howto at http://howto.x-tend.be/openMosix-HOWTO/ .

Links

More information about OpenMosix on Gentoo is available at http://howto.x-tend.be/openMosixWiki/index.php/Install%20openMosix%20on%20Gentoo%20Linux http://www.gentoo.org/doc/en/openmosix-howto.xml http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml

Retrieved from "http://www.gentoo-wiki.info/HOWTO_OpenMosix-Cluster"

Last modified: Mon, 08 Sep 2008 06:38:00 +0000 Hits: 13,730