JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for FSL Archives


FSL Archives

FSL Archives


FSL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

FSL Home

FSL Home

FSL  2003

FSL 2003

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: FSL on multiprocessor machines?

From:

Cinly Ooi <[log in to unmask]>

Reply-To:

FSL - FMRIB's Software Library <[log in to unmask]>

Date:

Fri, 2 May 2003 12:40:44 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (125 lines)

Dear Darren,

(I was writing this email when Stephen Smith replied. The content is
essentially the same but I decided to send this email anyway)

I do not write program code for for FSL, but the explaination below is
from my experience writing program code, and if my assumptions (listed
below) are correct, it came as no surprise.


First, my assumption:
(0)The FSL team haven't written the code for parallel processing. This
is important, if they had parallelize the code, then the result is
really a surprise! (footnote: With reference to Smith's email, I think
they had not parallized the code)
(1)You are using the FSL program as it is, i.e., no attempt to
parallelize the code.

The actual answer to your question is complex, it depends on the design
of the supercomputer you are using.

To answer your question:
from line: 64 CPUs: 98.4% idle,  1.6% usr,  0.0% ker,  0.0% wait,  0.0%
xbrk,
and the breakdown table
Yes, it does looks like 62 CPU are idle,  and either:
(a) one processor working frentically (film_gl, 98.4%) while another was
given the meagre and insignificant job (1.6%) or
(b)most probably, only one processor is working, mening the 63th
processor is also idle.


The litmus test to me is the processing time:  Roughly speaking, for a
truly parallelized program, you will expect the processing time to be
about 1/62 of that with a single processor system. (Its not 1/64 because
of parallization overhead which I genereously taken to be equiavalent to
two processors full time.)

I suspect you find that the processing time is equiavlent to that
running on a single processor system with the same type of processor.

In this case, yes, using a 64 processor system does not speed up your
processing as only only the equivalent of one processor will be working
for your at any one time.

This is not alike the situation I have here: I have a twin processors
system, and for most programs, if I run only one instance of it, I
expect one processor to be sitting idlely.

The reason is that FSL is not written for parallel processing. (As a
matter of fact, neither is BAMM nor the vanilla favour of SPM). To
harness all processors on a single task, in most of the case, the
program code must have explicit instructions on how  to do it. Most of
the time, this requires the programmer to explicit code the
parallization into the program. As parallel programs are not very easy
to write, and that parallel computers are not that common, most
programmers, including me, would not had bothered. It is the problem of
too much work, too little benefit.


A simple solution, exactly like what I do with my twin processors
system, is to actually push 64 film_gl process in parallel through the
supercomputer. In this case, I am pretty confident that that all 64
processors will be working frentically for you. Having said that, why
not just ask your colleagues to loan you their single processor
computers instead of booking time for a supercomputer?

There is another solution suggested to me by Liverpool University
Computing Services when I went up to MARIAC for a job interview. This is
applicable because FSL have a command line interface. It is more
difficult with SPM batch-mode but it is still possible. Assuming you
complete analysis  requires the programs to be run in this sequence
ABCDEF, and each program will output data as files with unique name.
Then, it is a relatively simple task to put the sequence as a pipeline
by  to have all programs listening for its input, and when all inputs
are available, execute the task. With the example sequence, initially
only program A will be processing dataset1, chunking out result1, as
soon as program A completes, program B will read and process result1,
and program A will start processing dataset2 and the process continues.
The idea is to allow one program  occupies one CPU, and to achieve
parallel processing by processing the next dataset before the current
one is completed. However, to fully utilize 64 processors, you will need
64 programs. Also, as a pipeline process, the 6 processors in the
example will only kick in sequentially, meaning the speed of processing
will not be as fast as it would with a truely parallized program. This
means it may not be worthwhile programming this pipeline if you only
have 12 datasets, certainly not if you have less then 6 datasets.

Hope this helps,
Cinly

Darren Schreiber wrote:

> In an attempt to speed things up, I tried using FSL on a supercomputer
> we have on campus.  Here is a view from "top":
>
>
> IRIX64 inire 6.5 IP35          load averages: 1.00 0.71 0.32 03:09:35
> 184 processes: 180 sleeping, 2 zombie, 2 running
> 64 CPUs: 98.4% idle,  1.6% usr,  0.0% ker,  0.0% wait,  0.0% xbrk,
> 0.0% intr
> Memory: 32G max, 31G avail, 20G free, 4096M swap, 4096M free swap
>
> PID          PGRP   USERNAME PRI  SIZE   RES STATE    TIME WCPU% CPU%
> COMMAND
> 122536  122279 dschreib         20  122M  117M run/36   2:00      11.7
>      99.86    film_gl
> 122555  122555 dschreib         20 2288K 1344K run/32  0:00       0.4
>      0.83       top
>
>
> What I find interesting is that I am leaving the 64 processors 98%
> idle, while the CPU% used by film is 99.86%.
>
> Is this because FSL is working hard on one processor, but leaving the
> others inactive?  Is there anything I can do here to speed things up?
>
> As it is, it looks like my happy little laptop can get the first level
> analyses done in about the same amount of time.
>
>        Darren
>
> .
>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager