Skip to content
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

Feature/ram mgmt #81

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading