They are many many > 100 more small files under 5 MB each. My folder keep a constant rate of ~600+ files at --transfers 100. Like I said they are all very small files.
Is there a way to have --transfers 300 at acceptable RAM usage? Or how much RAM is recommended ?
I don’t really have an idea of how much ram each connection will take, but if you want it to use the minimum memory then set --buffer-size 0 otherwise each transfer will use up to 16MB of RAM in read-ahead buffer. For small files the read-ahead buffer is mostly useless anyway so you won’t lose a lot disabling it.
Drive chunks aren’t buffered in RAM so you don’t need to set this.
Something weird is happening then, because after setting -drive-chunk-size 1024k I can do up to --transfers 800 without any issues and never uses more than 3 GB of ram.
Where before that flag --transfers 300 would crash my machine.
For files below the buffer size, we don’t do buffering. For files above the buffer size we use that much extra memory as a read ahead buffer. So if all your small files are below 16MB it won’t make any difference.
Tweak down --buffer-size. Setting it too low will impact the performance though.