OK, here we go again: dynamic preview RAM allocation and impact on rendering times. The discussion started 6 years ago and is still unfinished.
I have 64 GB or RAM and 16 cores / 32 threads available. Ran a few tests of rendering times with different Dynamic RAM Preview settings. The findings are strange and counter intuitive, but in line with previous findings.
RAM Setting in MB --- Render times (libav H264)
200 --- 3:18 OPTIMAL SETTING
0 --- 5:30
64 --- 3:40
128 --- 3:18 (OPTIMAL AGAIN)
5000 ---- 3:47
30000 --- 3:22
At 30,000 MB I checked memory allocation: it was a linear increase during the rendering and stopped at exactly 30.8 GB. After that it does not move at all, even after rendering. Now comes a discovery: I immediately tried rendering AGAIN thinking that it had stored a lot of good stuff in memory and that it would be faster. Result:
30000 Second run --- 4:02
Surprise! It performed worse. It was probably very busy REPLACING stuff in memory while keeping the memory level constant. During the whole rendering it kept memory at 30.8 GB.
The system was not bottlenecked anywhere: processors were running at 38%, GPU at 20%, memory at 48% and disk around 0%.
In conclusion: leave your dynamic RAM Preview Max at 200 MB and don't waste time in benchmarking :)