Skip to content

LN2_LAYERS requires a lot of RAM during with whole brain 0.25 isotropic resolution input #95

@marcobarilari

Description

@marcobarilari

Hi there,

I want to report that during "layerificaiton" with LN2_LAYERS I had a problem with too much RAM used with the consequence of the system killing the running process.

To give you more info:

  • Data nature:

rim derived by recon-all (freesurfer) on a 0.75 mm iso MP2RAGE, then upsampled to 0.25 mm iso (weight: 875 MB gzipped)

  • Computer specs:

linux crunch machine (aka the "labMonster") with 64 GB of ram

  • LAYNII version:

2.3.0

  • Command:
acqID='r0p25'

nb_layers=3

LN2_LAYERS \
    -rim sub-${subID}_acq-${acqID}_space-individual_desc-freesurferseg_label-AverageAseg_mask_rim.nii.gz \
    -nr_layers $nb_layers \
    -equivol \
    -thickness \
    -output sub-${subID}_acq-${acqID}_space-individual_desc-${nb_layers}layers_label-AveragewholeBrain_mask.nii.gz

My workaround was to increase the swap memory to 200 GB and it is working, with ~40 min of CPU time and ~ 120 of memory space (RAM + swap) occupied. As far as I get, on macs and windows this swapping thing is by default so it is possible that the problem might occur on Linux machines or macs/windows with almost full HD.

Do you have any suggestions? Does it make sense?

Marco

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions