Skip to content

Commit fd788f8

Browse files
committed
Added safeguard for not taking 100% of system memory when plugin_arg 'memory_gb' not specified
1 parent 79d1988 commit fd788f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __init__(self, plugin_args=None):
137137
non_daemon = True
138138
self.plugin_args = plugin_args
139139
self.processors = cpu_count()
140-
self.memory_gb = get_system_total_memory_gb()
140+
self.memory_gb = get_system_total_memory_gb()*0.9 # 90% of system memory
141141

142142
# Check plugin args
143143
if self.plugin_args:

0 commit comments

Comments
 (0)