"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
docs: add FAQ entry about rclone using too much memory
Nick Craig-Wood64fb4effa7ec
diff --git a/docs/content/faq.md b/docs/content/faq.mdindex b060bfe57..2e822948a 100644--- a/docs/content/faq.md+++ b/docs/content/faq.md@@ -195,3 +195,19 @@ It is likely you have more than 10,000 files that need to besynced. By default rclone only gets 10,000 files ahead in a sync so asnot to use up too much memory. You can change this default with the[--max-backlog](/docs/#max-backlog-n) flag.++### Rclone is using too much memory or appears to have a memory leak++Rclone is written in Go which uses a garbage collector. The default+settings for the garbage collector mean that it runs when the heap+size has doubled.++However it is possible to tune the garbage collector to use less+memory by [setting GOGC](https://dave.cheney.net/tag/gogc) to a lower+value, say `export GOGC=20`. This will make the garbage collector+work harder, reducing memory size at the expense of CPU usage.++The most common cause of rclone using lots of memory is a single+directory with thousands or millions of files in. Rclone has to load+this entirely into memory as rclone objects. Each Rclone object takes+0.5k-1k of memory.