Hello Neurostars,
I was trying to batch process a large dataset of resting state and structural scans with fmriprep, but was running into some resource allocation issues. In brief, I have one server with 40 cores and I used the following syntax
docker run --rm -v /home/jamielh:/opt/freesurfer/license.txt:ro -v /home/jamielh/Volumes/Hanson/NKI_HealthyBrainNetwork/RU/R1/:/data:ro -v /home/jamielh/Volumes/Hanson/NKI_HealthyBrainNetwork/RU/R1/derivatives/:/out -v /usr/share/fsl/5.0/data/standard/MNI152_T1_2mm_brain.nii.gz:/imports/MNI152_T1_2mm_brain.nii.gz:ro poldracklab/fmriprep:1.0.3 /data /out participant --participant_label ${i} --output-space T1w --no-freesurfer --ignore fieldmaps --output-space template T1w --use-aroma --ignore-aroma-denoising-errors --nthreads 1 --output-grid-reference /imports/MNI152_T1_2mm_brain.nii.gz --work-dir /home/jamielh/Volumes/Hanson/NKI_HealthyBrainNetwork/RU/R1/derivatives/working
I have my qsub queue limited to run 31 subjects simultaneously, but my server resources get ramped up (and then a few things go to hell), e.g., the load goes incredibly high… ~120-130; and a few times recently my qsub sun grid engine has stopped working. In general, it looks like antsRegistration is using a fair amount of cpu (here’s some pasting from top)
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
181850 root 20 0 2576912 1.877g 30876 R 651.0 1.5 131:33.62 antsRegistratio
I thought the ‘–nthreads 1’ flag above would have limited fmriprep’s resource utilization? Is there something I’m doing incorrectly? (Is it a positional argument?) Has anyone else run into this issue?
Thanks much,
Jamie.