使用手册
摩尔线程数据中心GPU管理接口 (dcgmi)
摩尔线程数据中心GPU管理器(MTDCGM)包含用户开箱即用的命令行工具DCGMI,它是一款可以在数据中心环境管理和监控GPU资源的软件。安装完成后,用户不需要做太多的操作就可以直接使用,以下是DCGMI的使用帮助。
环境依赖
mt-dcgm v1.1.6 版本支持以下平台。
| 处理器 | 处理器架构 | 操作系统 | GPU | 驱动和MUSA Toolkit版本 | MTML版本 | MTBIOS版本 |
|---|---|---|---|---|---|---|
| Intel | X86_64 | Ubuntu 22.04.4 | Alinux | Debian | OpenEuler 22.03 | VesselOS 2.0 | Mthreads Server GPU | MUSA SDK >= 4.3.5 | 2.4.2 | S5000 >= 4.3.44 |
| AMD | X86_64 | Ubuntu 22.04.4 | Mthreads Server GPU | MUSA SDK >= 4.3.5 | 2.4.2 | S5000 >= 4.3.44 |
dcgmi版本信息
dcgmi version: v1.1.6
community version: 3.3.6
依赖
dcgmi依赖mt-hostengine后台服务,使用时,确保mt-hostengine已在后台运行或者有使用MTDCGM api实现的后台服务运行。
如果需要运行诊断功能,则需要配置MTDCGM和MUSA toolkit环境变量,诊断功能需要在运行mt-hostengine之前配置该环境变量
export LD_LIBRARY_PATH=/usr/local/musa/lib:${LD_LIBRARY_PATH}
export PATH=/usr/local/musa/bin:${PATH}
export PATH=/usr/local/mtdcgm/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/mtdcgm/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}
命令参考
mt-hostengine使用命令
mt-hostengine作为MTDCGM的后台服务程序,为dcgmi或者其他需要连接到服务的程序提供后台服务。使用方法可参考如下的帮助命令:
mt-hostengine -h
mt-hostengine -t -p <PORT> -d <SOCKET_PATH> -n -b <IP_ADDRESS> --pid <FILENAME> --log-level
<LEVEL> -f <FILENAME> --log-rotate --denylist-modules <MODULEID[,MODULEID...]>
--service-account <USERNAME> --home-dir <Diagnostic home> -- --version -h
Where:
[-t | --term]: Terminates Host Engine [Best Effort]
[-p | --port]: Specify the port for the Host Engine
[-d | --domain-socket]: Specify the Unix domain socket path for host engine.
No TCP listening port is opened when this option is specified.
[-n | --no-daemon]: Tell the host engine not to daemonize on start-up
[-b | --bind-interface]: Specify the IP address of the network interface that the host engine should listen on.
ALL = bind to all interfaces.
Default: 127.0.0.1.
[--pid]: Specify the PID filename mt-hostengine should use to ensure that only one instance
is running.
[--log-level]: Specify the logging level. Default: ERROR
NONE - Disable logging
FATAL - Set log level to FATAL only
ERROR - Set log level to ERROR and above
WARN - Set log level to WARNING and above
INFO - Set log level to INFO and above
DEBUG - Set log level to DEBUG and above
[-f | --log-filename]: Specify the filename mt-hostengine should use to dump logging information.
Default: /var/log/mt-hostengine.log
[--log-rotate]: Rotate the log file if the log file with the same name already exists.
[--denylist-modules]: DCGM modules that should be added to the Denylist so they aren't run by the hostengine.
Pass a comma-separated list of module IDs like 1,2,3.
Module IDs are available in dcgm_structs.h as DcgmModuleId constants.
[--service-account]: Service account that will be used for unprivileged processes.
Usually this should be set to the default mthreads-dcgm account
[--home-dir]: The full path to the directory that the DCGM diagnostic should be launched from. This
becomes the default output directory for DCGM diagnostic log and stats
files.
[-- | --ignore_rest]: Ignores the rest of the labeled arguments following this flag.
[--version]: Displays version information and exits.
[-h | --help]: Displays usage information and exits.
dcgmi使用帮助
dcgmi的使用帮 助信息不依赖后台服务。如果需要查看subsystem功能,则需要以在dcgmi后面接subsystem,然后再接-h查看具体的使用说明。dcgmi的使用帮助命令如下:
dcgmi -h
Usage:
dcgmi subsystem
dcgmi -v Flags:
-v --vv Get DCGMI version information
subsystem The desired subsystem to be accessed.
Subsystems Available:
diag System Validation/Diagnostic [dcgmi diag –h for more info]
health Health Monitoring [dcgmi health –h for more info]
group GPU Group Management [dcgmi group –h for more info]
fieldgroup Field Group Management [dcgmi fieldgroup –h for more info]
discovery Discover GPUs on the system [dcgmi discovery –h for more
info]
dmon Stats Monitoring of GPUs [dcgmi dmon –h for more info]
-- ignore_rest Ignores the rest of the labeled arguments following this
flag.
--version Displays version information and exits.
-h --help Displays usage information and exits.