Skip to content

Commit

Permalink
controller: Add flag to en-/disable ram mgmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Mar 5, 2024
1 parent a7615da commit d7e7b8e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit d7e7b8e

Please sign in to comment.