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

"Daniel 'Fremen' Llewellyn" <diddledan-gM/[email protected]> Mon, 24 Jul 2006 21:53:08 +0100
Newsgroups gmane.linux.cluster.openmosix.general
Message-ID <[email protected]>
On 24/07/06, James Wagner <jwagner-I/[email protected]> wrote:
> 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

I haven't used ForkManager, so cannot verify whether it works or not,
but I did write a simple perl benchmark tool for oM clusters. The
forking is managed quite simply. Check it out (I'll direct you to a
less complicated earlier version that just does the forking and
processing with no graphical dohickery) at
http://www.xyz-network.com/ombenchmark.html/downloads/2.00+/mosixtest-2.02.download
the latest version (3.00) has tk and curses user interfaces if you
have the relevent modules installed; though the curses version was
broken last time I looked at it.

-- 
Regards,
    Daniel "Fremen" Llewellyn

PS. For others that may be interested in the benchmark tool, the base
page is at http://www.xyz-network.com/ombenchmark.html

-------------------------------------------------------------------------
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