omdiscd是openMosix的一个节点管理工具,在主服务..
时间:2006-12-27 来源:k1000j1000
insert cdrom,boot from cdrom.
step1: ifconfig eth0 192.168.1.2
step2: route add -net 0.0.0.0 gw 192.168.1.1
step3: omdiscd
step4: openmosixview
step5: test1
# for i in 'ls /proc/hpc/nodes/'; do awk 'BEGIN {for(i=0;i<100000;i++)for(j=0;j<100000;j++);}' & done
step6: test2
// testapp.c Script for testing load-balancing clusters
#include <stdio.h>
int main() {
unsigned int o = 0;
unsigned int i = 0;
unsigned int max = 255 * 255 * 255 * 128;
// daemonize code (flogged from thttpd)
switch ( fork() ) {
case 0:
break;
case -1:
// syslog( 1, "fork - %m" );
exit( 1 );
default:
exit( 0 );
}
// incrementing counters is like walking to the moon
// its slow, and if you don't stop, you'll crash.
while (o < max) {
o++;
i = 0;
while (i < max) {
i++;
}
}
return 0;
}
#gcc testapp.c -o testapp
#./testapp