【发布时间】:2016-10-06 05:46:24
【问题描述】:
我阅读了我们可以使用的 slurm 文档(在设置会计之后)
sacct --format="JobID,AllocCPUS,**ReqGRES** 获取 GRES 请求的统计信息。我还使用 gres.conf 配置了我的 GPU(有 2 个),但是对于 ReqGRES 或 AllocGRES,此命令始终返回 0。有任何想法吗?
提前致谢
【问题讨论】:
我阅读了我们可以使用的 slurm 文档(在设置会计之后)
sacct --format="JobID,AllocCPUS,**ReqGRES** 获取 GRES 请求的统计信息。我还使用 gres.conf 配置了我的 GPU(有 2 个),但是对于 ReqGRES 或 AllocGRES,此命令始终返回 0。有任何想法吗?
提前致谢
【问题讨论】:
我认为你不是 root 用户的原因有很多检查
sacct -a -X --format=JobID,AllocCPUS,Reqgres
它有效。
【讨论】:
我总是发现这些报告对 sreport 很有帮助。只需在 gres.conf slurm.conf 中指定 TRES。
$sreport -tminper cluster utilization --tres="gres/gpu" start=2019-05-01T00:00:00
--------------------------------------------------------------------------------
Cluster Utilization 2019-05-01T00:00:00 - 2019-05-14T23:59:59
Usage reported in TRES Minutes/Percentage of Total
--------------------------------------------------------------------------------
Cluster TRES Name Allocated Down PLND Down Idle Reserved Reported
--------- -------------- ----------------- ----------------- ----------------- ----------------- ----------------- ------------------
gpugrid+ gres/gpu 8186500(70.06%) 17889(0.96%) 0(0.00%) 1289051(22.97%) 0(0.00%) 9693440(100.00%)
您也可以按用户、按 gres 例如:--tres="gres/gpu:v100"(配置 slurm.conf)等。
【讨论】: