Re: migrate bash process
James Wagner <jwagner-I/[email protected]> Wed, 30 Aug 2006 10:52:41 -0400
| Newsgroups | gmane.linux.cluster.openmosix.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Enrico If I understand the migration mechanism correctly, I believe that you have to fork separate processes in order for the load to be balanced out. Simply creating a loop does not work, as the variables inside the loop will change as the loop iterates. Migrating each loop iteration will not migrate because the program has no idea what variables will be changed in the loop, so it doesn't know how to process each one on a different node. Jim enrico mastrostefano wrote: >Hi, >I wrote the following simple bash script >just to show a friend how processes migrates: > >#!/bin/bash >for ((i=0; i<10000; i++)) >do > for ((j=0; j<10000; j++)) > do > echo $j > /dev/null > done >done > >Maybe it 's obviuos that bash child can't migrate, >but I never faced it and I can't understand why it >happens. >Does anybodies knows this behaviour? > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >openMosix-general mailing list >openMosix-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >https://lists.sourceforge.net/lists/listinfo/openmosix-general > > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642