📅 2016-Mar-10 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ nvidia-smi, watch ⬩ 📚 Archive
The greatest power of Unix-like systems comes from its myriad tools that are built for composability. Watch is one such excellent tool that can be used to periodically monitor by repeatedly running a given program. Some programs, like top
, have in-built capability to rewrite the console and show progress with new data. With watch
, you can bring to bear this ability on any tool that writes to the console!
$ sudo apt install procps
nvidia-smi
prints the memory, temperature and frequency of GPUs on a machine. To watch the usage in realtime, updated once every 0.1 second:$ watch -n 0.1 nvidia-smi
Tried with: ProcPs 3.3.9 and Ubuntu 14.04