I am well aware on how to drop (e.g. /sbin/sysctl vm.drop_caches=3 ) caches in Linux, but for benchmarking I'd like to do the reverse, fill up the caches up to 100% RAM if possible. How would I do that pragmatically?
Here's how to consume RAM for 5 minutes (300 seconds).
Open two terminals / shells;
Note you might have to adjust the amount of seconds (5 min = 300, 1 hour = 3600)