Download Day Day Up

Transcript
int foo(int,int);
int main( void )
{
int i,j;
for (i=1; i<100000; i++)
for (j=1; j<100000; j++)
foo(i,j);
return 0;
}
int foo(int x, int y)
{
return(x+y);
}
This program does nothing useful, but it will take several minutes to complete on most machines.
(You can adjust the loop count if it doesn't run long enough to suit you.) By compiling this (without
optimizations) and then starting several copies running in the background, you'll have a number of
processes you can watch.
While timing will confirm that you are actually getting a speedup, you'll get a better idea of what is
going on if you run mosmon. With mosmon, you can watch process migration and load balancing as it
happens.
If you are running a firewall on your machines, the most likely problem you will have is getting
connection privileges correct. You may want to start by disconnecting your cluster from the Internet
and disabling the firewall. This will allow you to confirm that openMosix is correctly installed and that
the firewall is the problem. You can use the command netstat -a to identify which connections you
are using. This should give you some guidance in reconfiguring your firewall.
Finally, an openMosix stress test is available for the truly adventurous. It can be downloaded from