tldr: Is there a way to find out how much memory the computer has? There are environment variables for the processor properties, so something similar?
So why do I want to do this?
I’ve got a big file of data which I need to process sequentially. I have to do it in batches but want to minimize the number of reads from disk because that’s the bottleneck. So I want to read as much as fits, process that, repeat. But that requires me to know how much RAM is available.
Thanks for your help.