Skip to content

Commit a74f6a5

Browse files
committed
fix unit of default memory limit
This was in bytes which lead to overscription on some systems. Now corrected to be in MB.
1 parent 2964a14 commit a74f6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MC/bin/o2_dpg_workflow_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
parser.add_argument('--rerun-from', help='Reruns the workflow starting from given task (or pattern). All dependent jobs will be rerun.')
4343
parser.add_argument('--list-tasks', help='Simply list all tasks by name and quit.', action='store_true')
4444

45-
parser.add_argument('--mem-limit', help='Set memory limit as scheduling constraint', default=max_system_mem)
45+
parser.add_argument('--mem-limit', help='Set memory limit as scheduling constraint (in MB)', default=0.9*max_system_mem/1024./1024)
4646
parser.add_argument('--cpu-limit', help='Set CPU limit (core count)', default=8)
4747
parser.add_argument('--cgroup', help='Execute pipeline under a given cgroup (e.g., 8coregrid) emulating resource constraints. This m\
4848
ust exist and the tasks file must be writable to with the current user.')

0 commit comments

Comments
 (0)