Re: Forked Processes Won't Migrate, Perl & ForkManager

James Wagner <jwagner-I/[email protected]> Mon, 24 Jul 2006 14:04:28 -0400
Newsgroups gmane.linux.cluster.openmosix.general
Message-ID <[email protected]>
Hi Lars

Thanks for the response, but I'm not certain how I would do this from 
within perl, nor why I should have to.  Currently, I'm simply using the 
ForkManager to spawn new perl processes, each of which inherits the same 
environment and data space as the parent.

I could re-write the record processing routine to be a stand-alone 
program and run that program passing the data in as a parameter with a 
method as you suggest instead of using ForkManager, but then I run into 
the problems of having to balance the load among the machines manually, 
as well as some type of control mechanism to examine the process status 
space and prevent all the processes from spawning at once.

If I can't figure out how to make it work the way it should, I may go 
this route, but I'd much rather determine why it is that openMosix is 
not migrating the processes to idle nodes.

Jim

Lars O. Grobe wrote:

>Hi,
>
>especially if you start lots of processes on a machine at once, it may
>take a time until they are distributed over the cluster. The processes I
>start take usually days, not seconde, so the migration delay does not
>matter for me. You might have more success if you explicitely start the
>processes on a specific node (as mosrun or runon do). Your controlling
>app can use the information in the /proc filesystem to find out the
>number of nodes, their openmosix id's etc, and decide based on this
>information how many processes to start at once and on which nodes.
>
>CU Lars (beware - not a developer!).
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys -- and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>openMosix-general mailing list
>openMosix-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/openmosix-general
>
>  
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV