Kerrighed Trunk 4977 Installation on Debian GNU/Linux

There are 5 steps to do basic research on cluster computing with kerrighed: system and applications installation, building, testing, profiling cluster, and comparing the results.

Requirements

Hardware

Software

automake, libtool, pkg-config, lsb-release, libncurses5-dev1)

kernel-package if you want to package the kernel into debian package

Compilation and Installation Steps

  1. sha256sum -c krg-20090203.tar.bz2.sha256
  2. Change directory to /usr/src/
    cd /usr/src/
  3. tar jxf /home/stwn/krg-20090203.tar.bz2
  4. cd krg-20090203
  5. ./autogen.sh
  6. Configure source with your system, don't –enable-tests, it's broken
    ./configure --enable-tests
    ********************************************************************
      Kerrighed tests configuration is now complete
    ********************************************************************
    
        - apps                               : yes
        - proc                               : yes
        - ktp                                : yes
        - benchmark                          : yes
    ********************************************************************
      Kerrighed configuration is now complete
    ********************************************************************
    
        - Sources dir            : /usr/src/krg-20090203
        - Kernel source dir      : /usr/src/krg-20090203/kernel
        - Kernel version         : 2.6.20-krg (already patched)
        - Kernel configuration   : none. Run manually 'make *config' in kernel source tree
        - Kerrighed module       : yes
        - libkerrighed           : yes
        - Kerrighed tools        : yes
        - Kerrighed tests        : yes
    
    ********************************************************************
  7. Save default configuration for kerrighed
    make defconfig
  8. Configure kernel if you want to add some network drivers you use in cluster
    # cd kernel
    # make menuconfig

    I added support for many network cards available in 2.6.20 as module and configure built-in kernel for network card I use in cluster like sis900[*] e1000e[*] and [M] for others type which aren't selected as default. [ Device Drivers - Network device support - Ethernet (10 or 100Mbit|Ethernet 1000Mbit ] FIXME

  9. Compile the kernel
    cd ..
    make kernel

    or

    sudo vim /etc/kernel-pkg.conf
    make-kpkg --initrd --revision=2.6.20-svn-022009-1 kernel_image kernel_headers
  10. Install kernel
    make kernel-install

    or

    cd ..
    sudo dpkg -i linux-image-2.6.20-krg_2.6.20-svn-022009-1_i386.deb
  11. Compile kerrighed modules, tool and libkerrighed
    make

    NOTES: kerrighed modules are compiled with version 2.6.20-krg, if you want to append-version with make-kpkg, just change the version in kerrighed-2.2.1.

  12. Install kerrighed tool and libkerrighed
    make install
  13. Remove default kernel in Debian, if you want to :)
    dpkg -P linux-image-2.6.26-1-686 linux-image-2.6-686
  14. Reboot

Configuration

terdapat satu komputer yang akan menyimpan image sistem dan aplikasi dan juga media penyimpan dan lain-lain seperti repo, wiki, demo, hasil

Head Node

Kerrighed

TFTP & PXE Server

DHCP Server

NFS Server & NFSROOT

NFS akan mencoba me-resolve alamat IP ke domain jika ada entri di /etc/hosts<code>/krg-system/ krg*(rw,no_root_squash,no_subtree_check,sync,fsid=1)
Apa yang dilakukan di sistem server network booting, lakukan juga pada NFSROOT

Compute Node

Boot with PXE or gPXE, suite to your network card. Download compiled gPXE/etherboot from rom-o-matic.net
tg3, sis900, rtl8139

Testing

Kerrighed

groupadd nobody
fork-test

Cpuburn

apt-get install cpuburn
chroot /NFSROOT/kerrighed/
apt-get install cpuburn
burnMMX & # 3-4 times :-)

Blender

Blender+OpenMP
copy install/ blender to $HOME
apt-get install libjpeg62
mencoder -mf on:w=640:h=480:fps=12 -ovc copy -o output.avi \*.jpg

MPI

vim cpi.c

gcc cpi.c
vim Pi.c 
mpicc Pi.c
./a.out 
mpirun -np 24 ./a.out 
mpirun -np 2 ./a.out 
mpirun -np 4 ./a.out 

OpenMP

OpenMP support in Kerrighed is unknown, people from NCHC said there is no support for OpenMP in Kerrighed
based-on reply email from Renauld Lottiaux

Loop

This simple loop program will test the process migration feature of Kerrighed with kernel 2.6.20.

Kerrighed Commands List

Status

krgadm nodes status

Start-Stop

krgadm cluster start
krgadm cluster reboot/poweroff
krgadm nodes poweroff -n 13

Lain-Lain

top ps free 'cat /proc/*'

kerrighed_nodes
kerrighed_session

Problems

Tips

Reading List

1)
if you want to configure kernel with make menuconfig
2)
dosfstools mtools syslinux syslinux-common
3)
dhcp-client libevent1 libgssglue1 libkeyutils1 libkrb53 libldap-2.4-2 libnfsidmap2 librpcsecgss3 nfs-common nfsbooted portmap ucf