Print

Print


Dear Gabriela et al,

first, maybe slightly controversial, but RAM is rather cheap these days
so if you've got little memory, buying some won't ruin you and will make
your life much easier.

That said, SPM should try to accommodate with the amount of memory you
have so maybe you can have a look at the suggestions here:
http://www.mathworks.com/support/tech-notes/1100/1106.html
http://www.mathworks.com/support/tech-notes/1100/1107.html
And if you consider you have a fair amount of memory (as it happens in
another post sent 20mn before that one), then it's worth investigating
further, feature('memstats') or memory on Windows platforms might help.

At last, just a word on defaults maxmem in spm_defaults.m. This value is
only used when estimating a GLM to see how much data can fit in memory
at the same time but it can never be more than a slice. It is not used
by any other processing. If you have out of memory errors when
estimating a GLM (rather unlikely), you would then rather decrease that
value. On the other hand, if you have lots of RAM and would like to have
SPM fitting more than a slice at a time, you can try to edit spm_spm.m
l.570 and remove "nbz = 1;".

Best regards,
Guillaume.

Brahim HAMADICHAREF wrote:
> Increase the value of the variable defaults.stats.maxmem in
> spm_defaults.m  
>  
> to look at your system's memory capabilities, from the MATLAB prompt try
>>> feature('memstats')
>  
> Brahim HAMADICHAREF 
>  
> ------------------------------------------------------------------------
> Date: Wed, 10 Feb 2010 11:22:42 -0600
> From: [log in to unmask]
> Subject: Re: [SPM] Matlab memory problems with SPM8
> To: [log in to unmask]
> 
> Try:
> 
> File --> Preferences --> Workspace
> 
> Change the "element and smaller arrays show statistics" to a much larger
> value. That sometimes helps.
> 
> ALSO, you could do one of the following:
>     Windows:    Increase virtual memory by using System in the Control
> Panel.
>     Unix:       Ask your system manager to increase your Swap Space.
> 
> Best Regards, Donald McLaren
> =================
> D.G. McLaren
> University of Wisconsin - Madison
> Neuroscience Training Program
> Office: (608) 520-0586
> =====================
> 
> 
> On Wed, Feb 10, 2010 at 11:01 AM, HOSSU Gabriela <[log in to unmask]
> <mailto:[log in to unmask]>> wrote:
> 
>     Dear all,
> 
>      
> 
>     I’m beginning in fMRI post processing and I have a problem with
>     Matlab memory. I work with SPM8 on Windows and Linux systems.
> 
>      
> 
>     So, this is my problem : if I don’t do a clear command in Matlab
>     between after each “job” (eg “Dicom Import”, “Realign”…) in the
>     Batch Editor I have the following message :
> 
>     Failed  ‘THE JOB’
> 
>     Out of memory. Type HELP MEMORY for your options.
> 
>      
> 
>     Does anyone know what is wrong? How can I solve this problem?
> 
>      
> 
>     Thanks for any response,
> 
>      
> 
>     Gabriela Hossu.


-- 
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG