From 5548527261f922e4e1305f41baffcd2220030f97 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Khan Date: Thu, 13 Mar 2025 10:45:45 -0700 Subject: [PATCH] bump memory limit for higher target throughput --- source/s3_client.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/s3_client.c b/source/s3_client.c index 7bfc396f8..efe707c8d 100644 --- a/source/s3_client.c +++ b/source/s3_client.c @@ -318,9 +318,13 @@ struct aws_s3_client *aws_s3_client_new( mem_limit = GB_TO_BYTES(1); } #else - if (client_config->throughput_target_gbps > 75.0) { + if (client_config->throughput_target_gbps >= 200.0) { + mem_limit = GB_TO_BYTES(24); + } else if (client_config->throughput_target_gbps >= 100.0) { + mem_limit = GB_TO_BYTES(16); + } else if (client_config->throughput_target_gbps >= 75.0) { mem_limit = GB_TO_BYTES(8); - } else if (client_config->throughput_target_gbps > 25.0) { + } else if (client_config->throughput_target_gbps >= 25.0) { mem_limit = GB_TO_BYTES(4); } else { mem_limit = GB_TO_BYTES(2);