[Eeglablist] How much RAM?

Cedric Cannard ccannard at protonmail.com
Mon Jul 21 10:32:30 PDT 2025


Hi Georges,

Are you experiencing crashes? if so, doing what?

In theory, running low on RAM should just make things slower as the system begins using virtual memory (i.e., swap space on disk). However, in practice, MATLAB and EEGLAB can run out of memory and crash for several reasons: if large contiguous memory blocks are required, duplicate structure copies (especially if created across parallel workers), fallback to disk-based memory not necessarily handled efficiently. 16 GB of RAM is often sufficient for most basic EEGLAB uses—such as preprocessing, standard ICA (e.g., Infomax, PICARD), ERP analysis, spectral analysis, and standard parametric or even robust nonparametric statistics (permutation/bootstrap) on typical datasets. However, if you start running out of memory, try optimizing MATLAB first before upgrading hardware. Clear unused variables with < clearvars -except EEG >, disable EEGLAB’s undo history using eeglab('memory','off'), convert large arrays to single precision when double is unnecessary, avoid duplicating large variables, and process long recordings in smaller segments. In parallel computing, reduce the number of workers to lower memory overhead.

If memory issues persist, upgrading to 32 or 64 GB RAM is a good next step, especially for advanced tasks like AMICA, source reconstruction, connectivity analysis, or machine learning on large EEG datasets. For the CPU, at least a modern 6-core processor (e.g., Intel i7 or AMD Ryzen 5/7, 12th gen or newer) with high single-thread performance. More cores help with parallel processing, but ensure sufficient RAM per core for best performance.

Hope this helps,


Cedric



On Thursday, July 17th, 2025 at 5:20 PM, Ghorayeb, George Ryan via eeglablist <eeglablist at sccn.ucsd.edu> wrote:

> If I run out of memory, how much RAM should I usually add for eeglab to perform well?
>
> Best wishes,
> George
>
>
> _____________________
>
> George Ryan Ghorayeb
>
> He/him/his
>
> Research Assistant II, Division of Cognitive and Behavioral Neurology
>
> Center for Brain/Mind Medicine
>
>
>
> Brigham and Women’s Hospital
>
> 60 Fenwood Road, 9016D, Boston, MA 02115
>
> T 6177328825, F 8573075461
>
> brighamandwomens.org
>
>
>
> [A blue and black logo Description automatically generated]
>
>
> The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://urldefense.com/v3/__https://www.massgeneralbrigham.org/complianceline__;!!Mih3wA!H3FF_doTx732rsDPK0EMLMK8yzg2XaBRh2_EQnwUVcMN2gzwM6CEPILwnxGReJ9pyRPSe8B6j2OQ4EaDQvy4Pww_xh-GDDKX$ <https://urldefense.com/v3/__https://www.massgeneralbrigham.org/complianceline__;!!Mih3wA!H3FF_doTx732rsDPK0EMLMK8yzg2XaBRh2_EQnwUVcMN2gzwM6CEPILwnxGReJ9pyRPSe8B6j2OQ4EaDQvy4Pww_xh-GDDKX$ > .
>
> _______________________________________________
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu or visit https://sccn.ucsd.edu/mailman/listinfo/eeglablist .


More information about the eeglablist mailing list