I'm working in HPC environment and I'm using SLURM to submit my job to the queue. I'm writing my own memory caching mechanism and hence I want to know how much memory is available per node so that I can expand or reuse space.
Is there a way to know how much memory is available. Does SLURM sets up any environment variables.