LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2004, 09:06 AM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
how to take advantage of openMOSIX ?


Im confused about how to program a task that will properly utlise an openMOSIX Linux cluster.

i am writing an AI program to solve a rubix cube problem,
i have a cluster computer of 3 mchines,

if i spawn 3 pthreads, will they become migration condidates ? or does each migration candidate need to be fork()ed process ?

also, if 2 different proccessors / threads are migrated, will the usual inter process comunication still work ?
 
Old 12-17-2004, 12:10 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
BUMP....
still looking for advice, thanX
 
Old 12-20-2004, 10:14 AM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
yet anouther bump.....
anyone ?
 
Old 12-20-2004, 11:48 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Hmmm, it's been awhile since I looked closely at Mosix, but I don't think it's pthreads aware, since pthreads have to share the same memory space, and thus cannot be easily moved between execution hosts. This may have been fixed in more recent versions, though. You could fork off the requisite number of processes. Another option is to learn the MPI library -- there's a nice OSS implementation called MPICH (google on it). MPI will give you something roughly approximating threads programming, but on multiple machines. I've been learning a bit of it recently, and it's really quite interesting to use. If you do use it, remember to tell MOSIX not to migrate any of the MPI processes, I think it wouldget quite confused if they started moving about .

Good luck!
 
Old 12-21-2004, 06:46 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
it seems the MPI and MPICH is for MOXIX (the origonal) not OpenMOSIX ?
anyways, thanks for the help.

I dont want to break compatability with other machines which do not have OpenMOSIX installed, so i guess that means i will have t stick with forking anyways.

thanks
 
Old 01-14-2005, 04:39 AM   #6
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu, Debian Buster Stable, Windoze 7
Posts: 684

Rep: Reputation: 56
I just analyzed MOSIX and find it fascinating. To answer your question:
No, threads cannot be migrated, only whole processes (as much as I understand it, since I am not that much into programming).
Since threads share address space, they cannot be moved. I guess it is worth it to risk the overhead of a fork to utilize the power of migration to another node with MOSIX.

Fascinating subject!

Markus
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any advantage of openswan over OpenVPN? ddaas Linux - Security 4 11-26-2007 07:22 AM
Apache advantage? linuxhippy Slackware 12 08-31-2005 08:44 PM
advantage of primary over logical abunsair Linux - Hardware 4 07-04-2005 05:37 PM
mandrake gui advantage paoloto2 Linux - Software 5 03-11-2004 06:25 AM
openmosix clustering done, what should i do next after the setting up openmosix? kublador Linux - General 3 01-01-2004 09:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration