From cb43e86d167485d7d5aba3331d15fcfa1b18b066 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 25 Sep 2023 15:24:55 +0100 Subject: [PATCH] b2: reduce default --b2-upload-concurrency to 4 to reduce memory usage In v1.63 memory usage in the b2 backend was limited to `--transfers` * `--b2-chunk-size` However in v1.64 this was raised to `--transfers` * `--b2-chunk-size` * `--b2-upload-concurrency`. The default value for this was accidently set quite high at 16 which means by default rclone could use up to 6.4GB of memory! The new default sets a more reasonable (but still high) max memory of 1.6GB. --- backend/b2/b2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/b2/b2.go b/backend/b2/b2.go index 18c860b62..5981a40e8 100644 --- a/backend/b2/b2.go +++ b/backend/b2/b2.go @@ -159,7 +159,7 @@ concurrently. Note that chunks are stored in memory and there may be up to "--transfers" * "--b2-upload-concurrency" chunks stored at once in memory.`, - Default: 16, + Default: 4, Advanced: true, }, { Name: "disable_checksum",