I work with large Parquet files and regressions in R, and regularly run into the 32GB RAM limit on a 13th-generation i9 laptop. I also have access to a desktop with a 12th-generation i9 and 128GB of RAM, reported at around 3300 to 3600 MT/s. The laptop RAM runs at 4800 MT/s. Is the desktop likely to be better for this work?
Is 128GB of slower RAM better for large R workloads than 32GB of faster RAM?
Answers
For workloads that don't fit comfortably in 32GB, the extra capacity is likely to matter much more than the RAM speed difference. Once the laptop starts relying heavily on storage as virtual memory, it can slow down dramatically. A job may also fail if it can't get enough memory.
The desktop isn't guaranteed to make every operation faster, but having room for the data and intermediate objects is a pretty compelling reason to try it.
Reply to this answer
Since you have both machines available, run a representative job on each and compare the elapsed time. Pick something that loads a typical dataset and runs one of your regressions, not just a RAM benchmark.
Watch memory use and disk activity during the run too. That should help distinguish a capacity problem from a CPU or storage bottleneck. For smaller jobs that fit in 32GB, the result could be different.
Reply to this answer
Don't compare the transfer rates as if 4800 versus 3300 means the laptop will be proportionally faster. Actual performance depends on the CPU, memory configuration and what the code is doing. The two i9 generations and the desktop versus laptop power limits complicate that comparison too.
Also worth checking the desktop's actual configured memory speed. The reported figure might be 3600 rather than 3300 MT/s, but either way capacity is the bigger question when you are running out.
Reply to this answer
Add your answer
Answers are reviewed before publication.
2c!afterimage_73:
Keep the R environment and package versions comparable for the test, and note whether either machine is doing other work at the same time.