Skip to content

Commit

Permalink
docs: add gpu docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xzchaoo committed May 6, 2023
1 parent 15735c8 commit 111f373
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/en/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
- [Test](dev-guide/test/README.md)
- [Test scenes](dev-guide/test/test-scenes.md)
- [Log](dev-guide/log/README.md)
- [Internals]()
- [Internals](dev-guide/internals/README.md)
- [Log multiline](dev-guide/internals/log-multiline.md)
- [GPU](dev-guide/internals/gpu.md)

# Operations
- [Deployment]()
Expand Down
2 changes: 2 additions & 0 deletions docs/src/en/dev-guide/internals/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# HoloInsight Internals
This directory contains HoloInsight internal details or uncategorized documentation.
43 changes: 43 additions & 0 deletions docs/src/en/dev-guide/internals/gpu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# GPU
HoloInsight-Agent uses a query on the [nvidia-smi](https://developer.nvidia.com/nvidia-system-management-interface) binary to pull GPU stats including memory and GPU usage, temp and other.

This GPU plugin is automatically activated if `nvidia-smi` is present.

This plugin does not require any configuration.

![GPU dashboard](../../../resources/images/dev-guide/internals/dashboard-gpu.png)
![GPU dashboard](../../../resources/images/dev-guide/internals/app-gpu.png)

# nvidia-smi commands

List all GPUs
```bash
nvidia-smi -L
```

Query GPU,memory utilization
```bash
nvidia-smi --query-gpu=index,utilization.gpu,utilization.memory --format=csv
```

> nvidia-smi --help-query-gpu
Query memory usage
```bash
nvidia-smi --query-gpu=index,memory.used,memory.free,memory.total --format=csv
```

Query version and driver
```bash
nvidia-smi --query-gpu=index,name,vbios_version,driver_version --format=csv
```

Query temperature,power,clocks
```bash
nvidia-smi --query-gpu=index,power.draw,temperature.gpu,clocks.current.sm,clocks.current.memory,fan.speed --format=csv
```

Query GPU used memory of pids
```bash
nvidia-smi --query-compute-apps=gpu_uuid,pid,used_memory --format=csv
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 111f373

Please sign in to comment.