实际内存 (slurm -C) 是如何计算的?为什么它与 MemTotal 不同?
How is RealMemory (slurmd -C) calculated? Why does it differ from MemTotal?
SLURM 文档说
RealMemory
Size of real memory on the node in megabytes (e.g. "2048"). The default value is 1. Lowering RealMemory with the goal of setting aside some amount for the OS and not available for job allocations will not work as intended if Memory is not set as a consumable resource in SelectTypeParameters. So one of the *_Memory options need to be enabled for that goal to be accomplished. Also see MemSpecLimit.
我在多个地方看到建议将该值设置为等于 slurmd -C
报告的值,例如:
但是,我对这个值的计算方式以及与其他信息的关系感到困惑,例如 MemTotal
来自 /proc/meminfo
。
RealMem 以 MB 为单位
slurmd -C
RealMemory=193086
MemTotal 以 KB 为单位
cat /proc/meminfo
MemTotal: 197721028 kB
只需将 MemTotal 除以 1024
197721028 / 1024 = 193086
SLURM 文档说
RealMemory
Size of real memory on the node in megabytes (e.g. "2048"). The default value is 1. Lowering RealMemory with the goal of setting aside some amount for the OS and not available for job allocations will not work as intended if Memory is not set as a consumable resource in SelectTypeParameters. So one of the *_Memory options need to be enabled for that goal to be accomplished. Also see MemSpecLimit.
我在多个地方看到建议将该值设置为等于 slurmd -C
报告的值,例如:
但是,我对这个值的计算方式以及与其他信息的关系感到困惑,例如 MemTotal
来自 /proc/meminfo
。
RealMem 以 MB 为单位
slurmd -C
RealMemory=193086
MemTotal 以 KB 为单位
cat /proc/meminfo
MemTotal: 197721028 kB
只需将 MemTotal 除以 1024
197721028 / 1024 = 193086