From fb05fad698930e50d8c2ac241e1ac75c305b7901 Mon Sep 17 00:00:00 2001 From: Alexander Wagner Date: Thu, 2 Nov 2023 19:24:39 +0100 Subject: [PATCH] controller: Add flag to en-/disable ram mgmt --- controller.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/controller.py b/controller.py index 1e656ad..760ea46 100755 --- a/controller.py +++ b/controller.py @@ -729,8 +729,11 @@ def controller( break if ( - mem_limit_calc(mem_max, len(p_list), queue_output.qsize(), time_max) - < max_ram + ( + not args.enable_ram_mgmt + or mem_limit_calc(mem_max, len(p_list), queue_output.qsize(), time_max) + < max_ram + ) and len(p_list) < num_workers and itter < len(faultlist) and queue_output.qsize() < queuedepth @@ -921,6 +924,12 @@ def get_argument_parser(): action="store_true", required=False, ) + parser.add_argument( + "--enable-ram-mgmt", + help="Use with caution, may lead to drastic performance decrease", + action="store_true", + required=False, + ) return parser