Re: migrate bash process
Barry Rowlingson <[email protected]> Wed, 30 Aug 2006 12:08:38 +0100
| Newsgroups | gmane.linux.cluster.openmosix.general |
|---|---|
| Message-ID | <[email protected]> |
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? If your process is doing mostly Input/Output then OpenMosix will decide its not worth migrating since most of its work is being done on the home node. If you can stick some calculations in there then it might become CPU intensive enough to warrant migrating - in fact if you get rid of the 'echo' command that might suffice. Barry ------------------------------------------------------------------------- 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