NviWatch is a graphical (gpui-based) application for monitoring NVIDIA GPU devices and processes. Built with Rust, it provides real-time insights into GPU performance metrics, including temperature, utilization, memory usage, and power consumption, with per-process memory attribution and process management.
- Real-Time Monitoring: View real-time data on GPU temperature, utilization, memory usage, and power consumption.
- Process Management: Monitor processes running on the GPU and terminate them directly from the interface.
- Memory Graph: Stacked per-GPU memory graph separating LLM (compute) processes from other graphics processes.
- Column Sorting: Click a column header to sort the process list.
- Customizable Refresh Rate: Set the refresh interval for updating GPU metrics.
-
Go to the project's GitHub repository.
-
Navigate to the "Releases" section.
-
Download the latest binary release for linux.
-
Once downloaded, open a terminal and navigate to the directory containing the downloaded binary.
-
Make the binary executable with the following command:
chmod +x nviwatch -
You can now run the tool using:
./nviwatch
If you have Rust and Cargo installed on your system, you can easily install NviWatch directly from crates.io:
-
Open a terminal and run the following command:
cargo install nviwatch
-
Once the installation is complete, you can run NviWatch from anywhere:
nviwatch
Note: Ensure you have the NVIDIA Management Library (NVML) available on your system before running NviWatch. On Windows, cargo install nviwatch builds and runs as well.
NviWatch is also available from conda-forge:
-
With Conda (after activating an environment):
conda install -c conda-forge nviwatch
-
With Mamba (after activating an environment):
mamba install -c conda-forge nviwatch
-
With Pixi (user-global install):
pixi global install --channel conda-forge nviwatch
-
Once the installation is complete, you can run NviWatch from anywhere:
nviwatch
To build and run NviWatch, ensure you have Rust and Cargo installed on your system. You will also need the NVIDIA Management Library (NVML) available.
-
Clone the repository:
git clone https://github.com/msminhas93/nviwatch.git cd nviwatch -
Build the project:
cargo build --release
-
Run the application:
chmod +x ./target/release/nviwatch ./target/release/nviwatch
NviWatch provides a command-line interface with one option:
-w, --watch <MILLISECONDS>: Set the refresh interval in milliseconds. Default is 300 ms.
Basic example:
# Run with default settings
./nviwatch
# Run with a custom refresh rate
./nviwatch --watch 500- q: Quit the application
- ↑/↓: Navigate through the list of processes (mouse click also selects)
- x: Terminate the selected process
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
- Built with Rust and gpui.
- Utilizes the NVIDIA Management Library (NVML) via the nvml_wrapper crate.