如何在 slurm 中设置 RealMemory?

How to set RealMemory in slurm?

slurm.conf 应将节点的 RealMemory 设置为小于或等于节点中可用内存的值。否则节点将被设置为耗尽状态。

我如何知道 slurm 从 OS 获取的内存并与 RealMemory 进行比较以确定是否应该耗尽节点?

您可以在计算节点上运行 slurmd -C。来自 man page:

-C
Print actual hardware configuration and exit. The format of output is 
the same as used in slurm.conf to describe a node's configuration 
plus it's uptime.