1
0
mirror of https://github.com/newnius/YAO-agent.git synced 2025-12-15 22:06:43 +00:00

update, add monitor scripts

This commit is contained in:
2020-07-03 15:04:36 +08:00
parent e03c5bbfb9
commit fe963127c5
2 changed files with 34 additions and 0 deletions

9
bin/monitor_gpu_util.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
while true
do
utils=`nvidia-smi -q -x | grep gpu_util | awk '{print $1}' | awk -F'>' '{print $2}' | xargs echo`
echo "$(date):${utils}"
sleep 1
done