LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2013, 01:32 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Rep: Reputation: 9
Running a program on two devices


Hi,

I have a laptopn Dell E6510. It has four real CPUs and 8GiB memory. I also have a PC it also has 4 CPUs and 8 GiB ram. On my laptop, I have fedora 19 and mpich. On the PC I have centos and mpich.

I want to know if there is any possibility that I can use the facilities of these two computers simultaneously for running my program. I mean is it possible to use 8 CPUs and 16GiB ram of these two devices together in parallel at the same time?
 
Old 10-02-2013, 01:42 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Yes, there are a lot of different solutions (I met with one of them in 1996 on HP-UX). Actually would be better to specify what do you really need. There are two different ways: 1. you can split your job into several tasks and you can execute those tasks on different hosts. 2. you will try to implement functions and invoke them (something like remote procedure call, RPC). Using C++ or java you can use a corba implementation (especially jacorb for java).
 
Old 10-02-2013, 01:46 AM   #3
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Original Poster
Rep: Reputation: 9
1996!!! So, there must be plenty of solutions right now. I'm happy.

The code I am running is written with fortran. I use mpich (mpif90 - mpirun), blas, lapack, blacks and scalapck to run it in parallel. I believe there is nothing I can do to split the job. So, I have to choose the second solution. Will you let me know about the sources I can read about this?
 
Old 10-02-2013, 01:54 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
http://www.zdv.uni-mainz.de/cms-exte...d/prodg196.htm
You need to follow links (and need to be familiar with idl)
 
1 members found this post helpful.
Old 10-03-2013, 04:02 AM   #5
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Original Poster
Rep: Reputation: 9
About my question above, someone told me that using memory across machines is often a failure and the speed would drop dramatically.
Does that mean, it is not worth the pain to try running a code on two machines?

Last edited by sryzdn; 10-03-2013 at 04:07 AM.
 
Old 10-03-2013, 04:11 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
yes, there is an overhead (looking for the available hosts, open connection and handle communication, etc). It is useful only if the original job is long enough (for example runs 2 hours on one host, but will run only 1 hour on two hosts. Overhead will require only a few seconds, minutes).
Of course it depends on the real situation therefore I cannot say what to do in your case.
Memory cannot be shared across machines.
 
Old 10-03-2013, 05:00 AM   #7
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by pan64 View Post
Memory cannot be shared across machines.
That's why I should quit thinking about this method. I need more ram. I'm sad
 
Old 10-03-2013, 05:08 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
probably you misunderstood. You can invoke the same function on both hosts (from one single process) and the result will be returned to the same process. Also you can use multithreading to use not only one but all the CPUs you have. Actually it is not memory sharing across machines but allowing to access all of the resources like memory and cpu (on both hosts). Probably you need to redesign your code to be able to use these advantages, but I'm not really sure about that.
 
  


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
Running Windows Applications On Linux or other devices dotz02x Linux - Software 7 05-10-2012 06:56 PM
Shell Script to start a program either not running or kill if running avataratar Linux - Newbie 1 03-29-2012 02:45 AM
LXer: 10 Coolest Devices Running Linux LXer Syndicated Linux News 0 08-10-2008 04:10 PM
Running program from terminal with & does nothing, program stops DittoAlex Linux - General 1 10-05-2007 01:35 AM
LXer: Wind River Launches Trade-In Program for Companies Currently Shipping Devices Running MontaVista Linux LXer Syndicated Linux News 0 04-06-2006 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:18 PM.

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