Hygon DCU
hy-smi-exporter를 통해 Hygon DCU / HCU 가속기의 연산 사용률, VRAM 및 GTT, 온도, 전력, 전압, 클록 주파수, PCIe 링크 및 ECC/RAS 오류 모니터링 메트릭을 수집합니다.
설정¶
사전 요구 사항¶
- 대상 노드에 Hygon 가속기 드라이버(
hydcu/hycu)와 DTK 도구 모음이 설치되어 있어야 합니다. 호스트에서 읽기 전용 명령hy-smi(일반적으로/opt/hyhal/bin/hy-smi또는/usr/bin/hy-smi)를 실행할 수 있어야 합니다. - DataKit이 설치되어 있어야 하며 DataKit 호스트에서
hy-smi-exporter가 수신하는:9584/metrics엔드포인트에 접근할 수 있어야 합니다.
hy-smi-exporter 배포¶
di-matrix-ai/hy-smi-exporter에서 바이너리를 받거나 Go 1.23 이상으로 빌드합니다:
git clone https://github.com/di-matrix-ai/hy-smi-exporter.git
cd hy-smi-exporter
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o hy-smi-exporter ./cmd/hy-smi-exporter
Hygon DCU / HCU가 탑재된 노드에서 hy-smi-exporter를 시작합니다. --hy-smi.collect-1s-stats=true를 활성화하여 코어 및 메모리 컨트롤러 사용률을 수집하고 hy-smi -a 텍스트 상세 정보만 지원하는 드라이버 버전에서도 전체 메트릭을 파싱합니다:
./hy-smi-exporter \
--web.listen-address=:9584 \
--hy-smi.path=/opt/hyhal/bin/hy-smi \
--hy-smi.timeout=10s \
--hy-smi.collect-1s-stats=true \
--log.level=info
시작 후 상태 검사 및 메트릭 엔드포인트를 확인합니다:
DataKit 설정¶
DataKit 설치 디렉터리에서 prom 수집기 설정을 복사합니다:
conf.d/prom/hy_smi.conf를 수정하고 <host>와 <env>를 실제 노드 주소 및 환경 식별자로 바꿉니다. metric_name_filter = ["^hy_smi_"]를 사용하여 Hygon 가속기 메트릭만 유지합니다:
[[inputs.prom]]
urls = ["http://<host>:9584/metrics"]
source = "hy_smi"
interval = "15s"
timeout = "10s"
measurement_name = "hy_smi"
keep_exist_metric_name = true
metric_name_filter = ["^hy_smi_"]
election = false
[inputs.prom.tags]
service = "hygon_dcu"
env = "<env>"
DataKit 다시 시작¶
메트릭¶
측정 집합: hy_smi.
| MetricName | MetricDescribe | Dimensions | Unit |
|---|---|---|---|
hy_smi_bad_pages_retired_total |
가속기의 사용 중지된 불량 페이지 누적 수 | gpu, host, instance, service, env |
- |
hy_smi_boost_level_info |
가속기의 현재 Boost 수준 정보. 값은 항상 1이며 수준은 level 태그에 기록됨 | gpu, level, host, instance, service, env |
- |
hy_smi_clock_hertz |
가속기의 각 클록 도메인 현재 작동 주파수(sclk/mclk/socclk) | domain, gpu, host, instance, service, env |
Hz |
hy_smi_clock_max_hertz |
가속기에서 지원하는 최대 클록 주파수 상한(sclk) | domain, gpu, host, instance, service, env |
Hz |
hy_smi_clock_min_hertz |
가속기에서 지원하는 최소 클록 주파수 하한(sclk) | domain, gpu, host, instance, service, env |
Hz |
hy_smi_cu_utilization_ratio |
가속기 연산 유닛(CU) 웨이브프런트 사용률 비율(0–1) | gpu, host, instance, service, env |
- |
hy_smi_devices |
최근 성공한 수집에서 발견한 Hygon 가속기 장치 총수 | host, instance, service, env |
- |
hy_smi_df_bandwidth_mbytes_per_second |
가속기 Data Fabric(DF) 온칩 연결 읽기/쓰기 대역폭 | gpu, host, instance, service, env |
MB/s |
hy_smi_ecc_correctable_errors_total |
가속기의 수정 가능한 ECC 오류 누적 수 | gpu, host, instance, service, env |
- |
hy_smi_ecc_uncorrectable_errors_total |
가속기의 수정 불가능한 ECC 오류 누적 수 | gpu, host, instance, service, env |
- |
hy_smi_gtt_total_bytes |
가속기 GTT(Graphics Translation Table) 메모리 총용량 | gpu, host, instance, service, env |
B |
hy_smi_gtt_used_bytes |
가속기 GTT 메모리 사용량 | gpu, host, instance, service, env |
B |
hy_smi_hcu_utilization_ratio |
가속기 HCU 코어 활성 시간 사용률 비율(0–1) | gpu, host, instance, service, env |
- |
hy_smi_health_info |
가속기 상태 검사 정보. 값은 항상 1이며 상태는 level 태그에 기록됨 | gpu, level, host, instance, service, env |
- |
hy_smi_info |
가속기 식별 및 펌웨어 정보. 값은 항상 1이며 모델, 일련번호, 드라이버, 상태, 작동 모드 및 VBIOS는 태그에 기록됨 | bus, device_id, driver, gpu, hcu, health, mode, product_name, serial, unique_id, vbios, host, instance, service, env |
- |
hy_smi_memory_utilization_ratio |
가속기 메모리 컨트롤러 활성 사용률 비율(0–1) | gpu, host, instance, service, env |
- |
hy_smi_pcie_bandwidth_mbytes_per_second |
가속기 PCIe 링크 송수신 총대역폭 | gpu, host, instance, service, env |
MB/s |
hy_smi_pcie_link_speed_gts |
가속기의 현재 PCIe 링크 전송 속도 | gpu, host, instance, service, env |
GT/s |
hy_smi_pcie_link_width |
가속기의 현재 PCIe 링크 레인 폭(Lanes) | gpu, host, instance, service, env |
- |
hy_smi_performance_level_info |
가속기의 현재 DPM 전력 성능 수준 정보. 값은 항상 1이며 수준은 level 태그에 기록됨 | gpu, level, host, instance, service, env |
- |
hy_smi_power_cap_watts |
가속기에 현재 설정된 패키지 전력 한도 | gpu, host, instance, service, env |
W |
hy_smi_power_max_watts |
가속기에 허용되는 최대 패키지 전력 한도 | gpu, host, instance, service, env |
W |
hy_smi_power_watts |
가속기의 현재 평균 패키지 전력 | gpu, host, instance, service, env |
W |
hy_smi_ras_errors_total |
가속기의 RAS 오류 누적 수 | gpu, host, instance, service, env |
- |
hy_smi_temperature_celsius |
가속기 위치별 센서 온도(edge/junction/mem) | gpu, sensor, host, instance, service, env |
°C |
hy_smi_umc_bandwidth_mbytes_per_second |
가속기 통합 메모리 컨트롤러(UMC) 읽기/쓰기 대역폭 | gpu, host, instance, service, env |
MB/s |
hy_smi_up |
최근 hy-smi 수집 성공 여부(1=성공, 0=실패) | host, instance, service, env |
- |
hy_smi_voltage_volts |
가속기 코어 전압 레일 측정값 | gpu, rail, host, instance, service, env |
V |
hy_smi_vram_available_bytes |
가속기의 현재 가용 VRAM 용량 | gpu, host, instance, service, env |
B |
hy_smi_vram_total_bytes |
가속기 VRAM 총용량 | gpu, host, instance, service, env |
B |
hy_smi_vram_used_bytes |
가속기의 현재 VRAM 사용량 | gpu, host, instance, service, env |
B |
hy_smi_vram_utilization_ratio |
가속기 VRAM 사용률 비율(0–1) | gpu, host, instance, service, env |
- |
hy_smi_wave_utilization_ratio |
가속기 연산 유닛 웨이브프런트 상주율 비율(0–1) | gpu, host, instance, service, env |
- |
hy_smi_xhcl_bandwidth_mbytes_per_second |
가속기 카드 간 고속 연결(XHCL/HSL) 대역폭 | gpu, host, instance, service, env |
MB/s |