Professional Documents
Culture Documents
Paralel Programing Dengan Mpich Di Ubuntu Server 10.10
Paralel Programing Dengan Mpich Di Ubuntu Server 10.10
10
Langkah Awal
Master Slave
Spesifikasi Server
Prosessor Intel Centrino Duo @1.8Ghz RAM 256MB HDD 3GB VGA Default
./ifconfig
Ip master
# The primary network interface auto eth0 iface eth0 inet static address netmask network broadcast gateway 172.16.8.131 255.255.255.0 172.16.8.0 172.16.8.255 172.16.8.2
./ifconfig
Ip slave
# The primary network interface auto eth0 iface eth0 inet static address netmask network broadcast gateway 172.16.8.132 255.255.255.0 172.16.8.0 172.16.8.255 172.16.8.2
host-config
/etc/host (master) 127.0.0.1 localhost 172.16.8.131 cluster1 172.16.8.132 cluster2 /etc/hosts (slave)
./nfs
Server
Client
Auto-auth ssh
Master
ssh-keygen -t rsa ssh root@cluster2 mkdir -p .ssh cat /root/.ssh/id_rsa.pub | ssh root@cluster2 'cat >> /root/.ssh/authorized_keys' ssh-keygen -t rsa ssh root@cluster2 mkdir -p .ssh cat /root/.ssh/id_rsa.pub | ssh root@cluster1 'cat >> /root/.ssh/authorized_key'
Slave
./config mpich
Pengujian
./config daemon
Master
pico /etc/mpd.conf
secretword=toor
Slave
Pico /etc/mpd.conf
secretword=toor
testing-daemon
testing-all-cluster
testing-parralel-program