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

FSL March 2008

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: memory allocation

From:

Sebastian Moeller <[log in to unmask]>

Reply-To:

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

Date:

Tue, 11 Mar 2008 15:14:39 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (358 lines)

Hi Donna,

again, let me begin with a disclaimer, while I do lurk on the FSL list I 
only use a few selected fsl tools, so my experience is somewhat limited...

Donna Lloyd wrote:
> Dear Sebastian,
> 
> Thank you for your very helpful e-mail. I have since tried to run the analysis using 64bit FSL on a 64bit system with 4Gb of RAM and 2Gb of swap and still get the same error at the same point:
> 
> /usr/local/fsl/bin/fslmaths /home/user/MUS_pilot_v2.feat/filtered_func_data prefiltered_func_data
> Total original volumes = 560
> 
> /usr/local/fsl/bin/fslroi prefiltered_func_data example_func 280 1
> 
> /usr/local/fsl/bin/fslmaths prefiltered_func_data filtered_func_data
> 
> /usr/local/fsl/bin/fslmaths filtered_func_data -Tmin -bin mask -odt char
> 
> /usr/local/fsl/bin/fslstats filtered_func_data -k mask -R | awk '{ print  }' -
> terminate called after throwing an instance of 'std::bad_alloc'
>   what():  std::bad_alloc
> 
> /usr/local/fsl/bin/fslmaths filtered_func_data -Tmean mean_func
> 
> /bin/rm -rf prefiltered_func_data*
> 
> Running top I can see that at this point it's using the entire available RAM and almost all its available swap. Would increasing the swap partition help do you think or is something else going on?
>
	Well, it depends ;). Please try the following:
start a new terminal window and the inside do the following:
	start top
	press f (to add an additional field to the display)
	press p (to add the field describing how much swap a process is 	using)
	press enter (to go back to the on-line display)

then start your fsl analysis either from the gui or from a different 
terminal. The just monitor what happens in the customized top in the 
first terminal. If your analysis will use around 100% of the MEM column 
and around 2G of the swap column increasing the swap should help. You 
can just add a swap file into the running system, no need for a swap 
partition ("man mkswap" gives some ideas, but let me know if you need help).
	It might also be a good idea to check that you are actually running the 
latest version of FSL (to rule out known bugs).
	The big question is (and one I probably can not help you with) should 
your analysis eat that much memory. From my cursory look over the output 
you give above and the (terse) online help of the fsl* commands, I doubt 
that I can make any sense, as the commands seem to be incomplete...
	Maybe you post a description of your analysis (including numbers of 
runs and analysis steps) to this list. Hopefully somebody actually using 
fsl will be able to elucidate whether the observed memory use is 
reasonable or not.

anyway, good luck
	Sebastian


> Thanks, Donna  
> 
> Dr. Donna Lloyd
> Lecturer in Psychology
> School of Psychological Sciences
> The University of Manchester
> Oxford Road
> Manchester M13 9PL
> U.K.
> Tel: +44 (0) 161 275 2573
> Fax: +44 (0) 161 275 2685/2588
>  
> 
> -----Original Message-----
> From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf Of Sebastian Moeller
> Sent: 06 March 2008 12:04
> To: [log in to unmask]
> Subject: Re: memory allocation
> 
> Hi Donna,
> 
> if you know you are running 64bit FSL on a 64bit system, please ignore
> the following...
> 
> 
> 
> Donna Lloyd wrote:
>> Hi,
>>
>> I'm following-up on a message I posted a while ago about suspected memory allocation problems. I've since installed FSL 4.0 on a desktop with 4Gb of RAM and 2Gb of swap running OpenSuse 10.3. Pre-stats completes but now FILM is crashing (report_log attached) because of memory problems.
>>
>> Running top I can see that the machine only seems to be using half its available RAM, about 10% of its available swap and 100% CPU. I know this is not a software problem but I was hoping someone might be able to advise me how to improve the way the machine uses its available memory and swap to see if that enables FILM to run.
>>
> 	First obstacle, are you running a 32bit or 64bit kernel and userspace.
> Try "uname -a".
> A 64bit system will report something containig x86_64, like in the
> following example
> Linux son-of-kong 2.6.24.1-6-default #1 SMP 2008/02/22 15:49:32 UTC
> x86_64 x86_64 x86_64 GNU/Linux
> A 32bit system (or a 64bit system with 32bit userspace) will look like
> the following:
> Linux son-of-kong 2.6.24.1-6-default #1 SMP 2008/02/22 15:49:32 UTC i686
> i686 i386 GNU/Linux
> (it might be that it says i586 instead of i686).
> If your result is not x86_64, that is your problem, as the address space
> for user programs is 2 to 3GB for 32bit userspace (4GB being the
> absolute theoretical maximum). You should consider going 64bit.
> 
> 	Secondly, maybe you are running 32bit FSL (on your 64bit system). The
> following will tell you about the FSL binaries (I arbitrarily picked
> flirt to test assuming that a 64bit flirt bionary is the hallmark of a
> 64bit FSL, experts please correct me):
> file `which flirt`
> the result should be similar to:
> /opt/local/fsl/bin/flirt: ELF 64-bit LSB executable, x86-64, version 1
> (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), not
> stripped
> The important information being: ELF 64-bit LSB executable, a 32bit
> binary will give ELF 32-bit LSB executable at that position. So if you
> run 32bit userspace on a 64bit system consider to change this too.
> 
> 	
> 
> ahoi & hope that helps.
> 	Sebastian
> 
> 
>> Many thanks,
>>
>> Donna
>>
>> Dr. Donna Lloyd
>> Lecturer in Psychology
>> School of Psychological Sciences
>> The University of Manchester
>> Oxford Road
>> Manchester M13 9PL
>> U.K.
>> Tel: +44 (0) 161 275 2573
>> Fax: +44 (0) 161 275 2685/2588
>>
>>
>> -----Original Message-----
>> From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf Of Matthew Webster
>> Sent: 30 January 2008 16:37
>> To: [log in to unmask]
>> Subject: Re: error report on pre-stats
>>
>> Hi,
>>       Is your system low on RAM - it looks like an fslmaths call is
>> failing due to a bad_alloc?
>>
>> Regards
>>
>> Matthew
>>
>>> Hi,
>>>
>>> I get an error message when running pre-stats in Feat but don't
>>> know what the problem is. Would you be able to take a look at the
>>> attached report and give me a diagnosis?
>>>
>>> Thanks, Donna
>>>
>>> Dr. Donna Lloyd
>>> Lecturer in Psychology
>>> School of Psychological Sciences
>>> The University of Manchester
>>> Oxford Road
>>> Manchester M13 9PL
>>> U.K.
>>> Tel: +44 (0) 161 275 2573
>>> Fax: +44 (0) 161 275 2685/2588
>>>
>>> <report_log.html>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>>     Progress Report / Log
>>>
>>> Started at Wed Mar 5 17:26:59 GMT 2008
>>>
>>> Feat main script
>>>
>>>
>>> /bin/cp /tmp/feat_hyX6vR.fsf design.fsf
>>>
>>> /usr/local/fsl/bin/feat_model design
>>>
>>> /usr/local/fsl/bin/fsl_sub -T 56 -l logs -N feat2_pre   /usr/local/fsl/bin/feat /home/donna/MUS_pilot_v2.feat/design.fsf -D /home/donna/MUS_pilot_v2.feat -I 1 -prestats
>>> 3592
>>>
>>> /usr/local/fsl/bin/fsl_sub -T 896 -l logs -N feat3_film -j 3592  /usr/local/fsl/bin/feat /home/donna/MUS_pilot_v2.feat/design.fsf -D /home/donna/MUS_pilot_v2.feat -film
>>> 5385
>>>
>>> /usr/local/fsl/bin/fsl_sub -T 32 -l logs -N feat4_post -j 5385  /usr/local/fsl/bin/feat /home/donna/MUS_pilot_v2.feat/design.fsf -D /home/donna/MUS_pilot_v2.feat -poststats 0 0
>>> 5521
>>>
>>> /usr/local/fsl/bin/fsl_sub -T 1 -l logs -N feat5_stop -j 3592,5385,5521  /usr/local/fsl/bin/feat /home/donna/MUS_pilot_v2.feat/design.fsf -D /home/donna/MUS_pilot_v2.feat -stop
>>> ------------------------------------------------------------------------
>>> Prestats
>>>
>>> /usr/local/fsl/bin/fslmaths /home/donna/MUS_rawdata/dl__3_1 prefiltered_func_data
>>> Total original volumes = 560
>>>
>>> /usr/local/fsl/bin/fslroi prefiltered_func_data example_func 280 1
>>>
>>> /usr/local/fsl/bin/mcflirt -in prefiltered_func_data -out prefiltered_func_data_mcf -mats -plots -refvol 280 -rmsrel -rmsabs
>>>
>>> /bin/mkdir -p mc ; /bin/mv -f prefiltered_func_data_mcf.mat prefiltered_func_data_mcf.par prefiltered_func_data_mcf_abs.rms prefiltered_func_data_mcf_abs_mean.rms prefiltered_func_data_mcf_rel.rms prefiltered_func_data_mcf_rel_mean.rms mc
>>>
>>> /usr/local/fsl/bin/fsl_tsplot -i prefiltered_func_data_mcf.par -t 'MCFLIRT estimated rotations (radians)' -u 1 --start=1 --finish=3 -a x,y,z -w 640 -h 144 -o rot.png
>>>
>>> /usr/local/fsl/bin/fsl_tsplot -i prefiltered_func_data_mcf.par -t 'MCFLIRT estimated translations (mm)' -u 1 --start=4 --finish=6 -a x,y,z -w 640 -h 144 -o trans.png
>>>
>>> /usr/local/fsl/bin/fsl_tsplot -i prefiltered_func_data_mcf_abs.rms,prefiltered_func_data_mcf_rel.rms -t 'MCFLIRT estimated mean displacement (mm)' -u 1 -w 640 -h 144 -a absolute,relative -o disp.png
>>>
>>> /usr/local/fsl/bin/bet prefiltered_func_data_mcf prefiltered_func_data_bet -F
>>>
>>> /usr/local/fsl/bin/fslmaths prefiltered_func_data_bet -thrp 15 -Tmin -bin mask -odt char
>>>
>>> /usr/local/fsl/bin/fslmaths prefiltered_func_data_bet -mas mask prefiltered_func_data_bet
>>>
>>> /usr/local/fsl/bin/fslmaths mask -kernel gauss 2.12314225053 -fmean mask_weight -odt float
>>>
>>> /usr/local/fsl/bin/fslmaths prefiltered_func_data_bet -kernel gauss 2.12314225053 -fmean -div mask_weight -mas mask filtered_func_data -odt float
>>>
>>> /usr/local/fsl/bin/fslmaths filtered_func_data -ing 10000 filtered_func_data -odt float
>>>
>>> /usr/local/fsl/bin/fslmaths filtered_func_data -bptf 16.7785234899 -1 filtered_func_data -odt float
>>>
>>> /usr/local/fsl/bin/fslhd -x filtered_func_data | sed 's/  dt = .*/  dt = '2.98'/g' | /usr/local/fsl/bin/fslcreatehd - filtered_func_data
>>>
>>> /usr/local/fsl/bin/fslmaths filtered_func_data -Tmean mean_func
>>>
>>> /bin/rm -rf prefiltered_func_data*
>>> ------------------------------------------------------------------------
>>> Stats
>>>
>>> mkdir -p custom_timing_files ; /bin/cp /home/donna/VT_hits.txt custom_timing_files/ev1.txt
>>>
>>> mkdir -p custom_timing_files ; /bin/cp /home/donna/VT_misses.txt custom_timing_files/ev2.txt
>>>
>>> mkdir -p custom_timing_files ; /bin/cp /home/donna/V_FAs.txt custom_timing_files/ev3.txt
>>>
>>> mkdir -p custom_timing_files ; /bin/cp /home/donna/V_rejections.txt custom_timing_files/ev4.txt
>>>
>>> mkdir -p custom_timing_files ; /bin/cp /home/donna/T_hits.txt custom_timing_files/ev5.txt
>>>
>>> mkdir -p custom_timing_files ; /bin/cp /home/donna/T_misses.txt custom_timing_files/ev6.txt
>>>
>>> mkdir -p custom_timing_files ; /bin/cp /home/donna/catch_FAs.txt custom_timing_files/ev7.txt
>>>
>>> mkdir -p custom_timing_files ; /bin/cp /home/donna/catch_rejections.txt custom_timing_files/ev8.txt
>>>
>>> /usr/local/fsl/bin/film_gls -rn stats -sa -ms 5 -sp /usr/local/fsl/bin/susan_smooth filtered_func_data design.mat 1500.0
>>> Log directory is: stats
>>> Uncaught exception!
>>> Error: FILM did not complete - it probably ran out of memory
>>> ------------------------------------------------------------------------
>>> Post-stats
>>>
>>> /usr/local/fsl/bin/contrast_mgr  stats design.con
>>> ** ERROR (nifti_image_read): failed to find header file for 'stats/sigmasquareds'
>>> ** ERROR: nifti_image_open(stats/sigmasquareds): bad header info
>>> Error: failed to open file stats/sigmasquareds
>>> Error:: FslGetDim: Null pointer passed for FSLIO
>>> Rendering using zmin=2.3 zmax=8
>>> couldn't open "tmpreport_poststats.html": no such file or directory
>>>     while executing
>>> "open tmp${pagename} r "
>>>     (procedure "feat5:report_insert_stop" line 4)
>>>     invoked from within
>>> "feat5:report_insert_stop report_poststats.html poststatspics"
>>>     (procedure "feat5:proc_poststats" line 384)
>>>     invoked from within
>>> "feat5:proc_poststats $RERUNNING $STDSPACE "
>>>     ("-poststats" arm line 6)
>>>     invoked from within
>>> "switch -- [ lindex $argv $argindex ] {
>>>
>>> 	-I {
>>> 	    incr argindex 1
>>> 	    set session [ lindex $argv $argindex ]
>>> 	}
>>>
>>> 	-D {
>>> 	    incr argindex 1
>>> 	    set..."
>>>     ("for" body line 2)
>>>     invoked from within
>>> "for { set argindex 1 } { $argindex < $argc } { incr argindex 1 } {
>>>     switch -- [ lindex $argv $argindex ] {
>>>
>>> 	-I {
>>> 	    incr argindex 1
>>> 	    set ses..."
>>>     (file "/usr/local/fsl/bin/feat" line 137)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
> 
> 
> --
> Sebastian Moeller
> 
> Tel.: 04 21 - 2 18 - 78 38 oder 96 91
> Fax.: 04 21 - 2 18 - 90 04
> GSM:  0 15 77 - 1 90 31 41
> [log in to unmask]
> 
> AG Kreiter / FB 2
> Institut fuer Hirnforschung III
> Abteilung Theoretische Neurobiologie
> Universitaet Bremen
> Biogarten
> Hochschulring 16a
> Postfach 33 04 40
> 28359 Bremen


-- 
Sebastian Moeller

Tel.: 04 21 - 2 18 - 78 38 oder 96 91
Fax.: 04 21 - 2 18 - 90 04
GSM:  0 15 77 - 1 90 31 41
[log in to unmask]

AG Kreiter / FB 2
Institut fuer Hirnforschung III
Abteilung Theoretische Neurobiologie
Universitaet Bremen
Biogarten
Hochschulring 16a
Postfach 33 04 40
28359 Bremen

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