Untitled conversation
- User
[root@localhost ~]# npu-smi info +---------------------------+---------------+----------------------------------------------------+ | NPU Name | Health | Power(W) Temp(C) Hugepages-Usage(page)| | Chip | Bus-Id | AICore(%) Memory-Usage(MB) HBM-Usage(MB) | +===========================+===============+====================================================+ | 0 910B1 | OK | 93.2 42 0 / 0 | | 0 | 0000:C1:00.0 | 0 0 / 0 3692 / 65536 | +===========================+===============+====================================================+ | 1 910B1 | OK | 95.9 44 0 / 0 | | 0 | 0000:01:00.0 | 0 0 / 0 3691 / 65536 | +===========================+===============+====================================================+ | 2 910B1 | OK | 93.5 41 0 / 0 | | 0 | 0000:C2:00.0 | 0 0 / 0 3683 / 65536 | +===========================+===============+====================================================+ | 3 910B1 | OK | 98.6 44 0 / 0 | | 0 | 0000:02:00.0 | 0 0 / 0 3683 / 65536 | +===========================+===============+====================================================+ | 4 910B1 | OK | 94.5 41 0 / 0 | | 0 | 0000:81:00.0 | 0 0 / 0 3683 / 65536 | +===========================+===============+====================================================+ | 5 910B1 | OK | 101.6 41 0 / 0 | | 0 | 0000:41:00.0 | 0 0 / 0 3691 / 65536 | +===========================+===============+====================================================+ | 6 910B1 | OK | 97.7 42 0 / 0 | | 0 | 0000:82:00.0 | 0 0 / 0 3691 / 65536 | +===========================+===============+====================================================+ | 7 910B1 | OK | 97.1 43 0 / 0 | | 0 | 0000:42:00.0 | 0 0 / 0 3682 / 65536 | +===========================+===============+====================================================+ +---------------------------+---------------+----------------------------------------------------+ | NPU Chip | Process id | Process name | Process memory(MB) | +===========================+===============+====================================================+ | 0 0 | 506010 | python3.7 | 358 | +===========================+===============+====================================================+ | 1 0 | 506011 | python3.7 | 358 | +===========================+===============+====================================================+ | 2 0 | 506012 | python3.7 | 358 | +===========================+===============+====================================================+ | 3 0 | 506013 | python3.7 | 358 | +===========================+===============+====================================================+ | 4 0 | 506014 | python3.7 | 358 | +===========================+===============+====================================================+ | 5 0 | 506015 | python3.7 | 358 | +===========================+===============+====================================================+ | 6 0 | 506016 | python3.7 | 358 | +===========================+===============+====================================================+ | 7 0 | 506017 | python3.7 | 358 | +===========================+===============+====================================================+ 帮我写一个python脚本ssh监控一系列ip的NPU使用情况,包括(空闲卡数/总卡数),卡上的运行进程。每个ip的卡名可能不同。
- Assistant