文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>omdiscd是openMosix的一个节点管理工具,在主服务..

omdiscd是openMosix的一个节点管理工具,在主服务..

时间:2006-12-27  来源:k1000j1000

ownload clusterKNOPPIX_V3.6-2004-08-16-EN-cl1.iso ~ 598MB from http://bofh.be/clusterknoppix/

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

相关阅读 更多 +
排行榜 更多 +
武士刀之战

武士刀之战

休闲益智 下载
闲置肥皂切割

闲置肥皂切割

休闲益智 下载
大航海时代2

大航海时代2

休闲益智 下载