Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource monitor files being emitted to output directory #2864

Open
effigies opened this issue Sep 27, 2022 · 1 comment
Open

Resource monitor files being emitted to output directory #2864

effigies opened this issue Sep 27, 2022 · 1 comment
Labels
Milestone

Comments

@effigies
Copy link
Member

effigies commented Sep 27, 2022

What happened?

Possibly starting in fMRIPrep 22.0, resource monitor files like .proc-14893_time-1660632638.9472053_freq-1.00 are being dumped directly in the output directory. We should look into the behavior with --resource-monitor enabled to verify/correct this behavior.

What command did you use?

Part of the TACC openneuro run (script here):

reproman run -r local --sub slurm --orc datalad-no-remote \
	--bp sub="$sub_list" \
	--jp num_processes="$processes" --jp num_nodes="$nodes" \
	--jp walltime="$walltime" --jp queue="$queue" --jp launcher=true \
	--jp job_name="${raw_ds}-${software}" --jp mail_type=END --jp mail_user="$user_email" \
	--jp "container=code/containers/bids-${software}" --jp \
	killjob_factors="$killjob_factors" sourcedata/raw \
	"$derivatives_scratch_path" participant --participant-label '{p[sub]}' \
	-w "$work_dir/${raw_ds}_sub-{p[sub]}" -vv "${command[@]}"

What version of fMRIPrep are you running?

22.0.0

How are you running fMRIPrep?

Singularity

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

No

Please copy and paste any relevant log output.

No response

Additional information / screenshots

No response

@effigies effigies added the bug label Sep 27, 2022
@effigies effigies added this to the 22.0.3 milestone Sep 27, 2022
@oesteban
Copy link
Member

This is where the MRIQC resource monitor was added -> nipreps/mriqc#984

The code is here: https://github.com/nipreps/mriqc/blob/master/mriqc/instrumentation/resources.py

and I think I first called MRIQC, visually checked the PID, and then did something like:

python -m mriqc.instrumentation <MRIQC_PID>

there's probably an easy bash pipe to first trigger the command line you want to run and pass the PID to some other command.

Then the mriqc.instrumentation.viz has some code for plotting.

@effigies effigies modified the milestones: 22.0.3, 23.2.0 Nov 21, 2023
@effigies effigies modified the milestones: 23.2.0, 24.0.0 Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants