Sponsor for PC Pals Forum

Author Topic: Basic Parallelisation in Bash  (Read 1676 times)

Offline sam

  • Administrator
  • *****
  • Posts: 19977
Basic Parallelisation in Bash
« on: February 28, 2010, 05:17 »
Quote
I have recently started writing some quite CPU intensive code and since we have a nice cluster here (without any management software on it) I decided that it would be best for me to take advantage of the number of cores on them. Actually, this works nicely on my desktop which has four cores anyway (and 4GB of RAM). Essentially, I'm lazy and this basically runs my pipeline in parallel for different sources by sending off different jobs to different cores (to the maximum number that you specify)... and then when they finish runs then next few... and so on until they are all done. No longer do I have to worry about waiting for the jobs to finish and wasting time by missing their finishing point. I also no longer have to have lots of [screen] sessions or loads of terminals open... bliss... 

http://www.krioma.net/blog/2010/02/basic_parallelisation_in_bash.php
- sam | @starrydude --

Offline Simon

  • Administrator
  • *****
  • Posts: 77923
  • First to score 7/7 in Quiz of The Week's News 2017
Re: Basic Parallelisation in Bash
« Reply #1 on: February 28, 2010, 10:19 »
:clever:
Many thanks to all our members, who have made PC Pals such an outstanding success!   :thumb:

Offline Rik

  • Former Admin
  • *****
  • Posts: 26506
  • Ceud mille failte
Re: Basic Parallelisation in Bash
« Reply #2 on: February 28, 2010, 11:47 »
But does it work in Windows? :)
Slainthe!

Rik

Offline sam

  • Administrator
  • *****
  • Posts: 19977
Re: Basic Parallelisation in Bash
« Reply #3 on: February 28, 2010, 15:31 »
if you install cygwin it will... (i.e. linux inside windows)
- sam | @starrydude --

Offline Rik

  • Former Admin
  • *****
  • Posts: 26506
  • Ceud mille failte
Re: Basic Parallelisation in Bash
« Reply #4 on: February 28, 2010, 15:33 »
Now tell me how it would help me, Sam. ;)
Slainthe!

Rik

Offline sam

  • Administrator
  • *****
  • Posts: 19977
Re: Basic Parallelisation in Bash
« Reply #5 on: February 28, 2010, 15:36 »
unless you are writing your own scripts it probably wont... though if you are processing movies it might. You have to be a linux person really to benefit from this... thus the place it is posted in.
- sam | @starrydude --

Offline Rik

  • Former Admin
  • *****
  • Posts: 26506
  • Ceud mille failte
Re: Basic Parallelisation in Bash
« Reply #6 on: February 28, 2010, 15:46 »
I'm Scots, does that count? ;D
Slainthe!

Rik

Offline sam

  • Administrator
  • *****
  • Posts: 19977
Re: Basic Parallelisation in Bash
« Reply #7 on: February 28, 2010, 15:52 »
no.  ;)
- sam | @starrydude --


Show unread posts since last visit.
Sponsor for PC Pals Forum