Skip to content

[ENH] Set maxtasksperchild in MultiProc Pool #2284

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

Merged
merged 2 commits into from
Nov 16, 2017

Conversation

oesteban
Copy link
Contributor

To avoid the workers to grow too big. Offer one new plugin_args to modify this option.

Now testing if this alleviates in any ways the memory issues we are experiencing in nipreps/fmriprep#833.

To avoid the workers to grow too big. Offer one new plugin_args to modify this option.
@codecov-io
Copy link

codecov-io commented Nov 16, 2017

Codecov Report

Merging #2284 into master will increase coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2284      +/-   ##
==========================================
+ Coverage   67.49%   67.49%   +<.01%     
==========================================
  Files        1189     1189              
  Lines       59151    59156       +5     
  Branches     8510     8510              
==========================================
+ Hits        39922    39927       +5     
  Misses      18153    18153              
  Partials     1076     1076
Flag Coverage Δ
#smoketests 67.49% <66.66%> (ø) ⬆️
#unittests 64.97% <66.66%> (-0.01%) ⬇️
Impacted Files Coverage Δ
nipype/pipeline/plugins/multiproc.py 77.55% <66.66%> (+0.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update edaf222...cfdf07f. Read the comment docs.

@oesteban oesteban requested a review from effigies November 16, 2017 17:54
@@ -82,6 +82,10 @@ Optional arguments::
exceed the total amount of resources available (memory and threads), when
``False`` (default), only a warning will be issued.

maxtasksperchild : refresh the workers after this specific number of nodes
run (default: 10).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this could be clearer. Perhaps: "number of nodes to run on each worker before refreshing (default: 10)."

@oesteban
Copy link
Contributor Author

This shouldn't be harmful. Merging...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants