all-smi
all-smi is a command-line utility for monitoring GPU hardware across multiple systems. It provides a real-time view of GPU utilization, memory usage, temperature, power consumption, and other metrics. The tool is designed to be a cross-platform alternative to nvidia-smi, with support for NVIDIA GPUs, NVIDIA Jetson platforms, Apple Silicon GPUs, and Tenstorrent NPUs.
The application presents a terminal-based user interface with cluster overview, interactive sorting, and both local and remote monitoring capabilities. It also provides an API mode for Prometheus metrics integration.


Installation
Option 1: Install via Homebrew (macOS/Linux)
The easiest way to install all-smi on macOS and Linux is through Homebrew:
Option 2: Install from Cargo
Install all-smi through Cargo:
After installation, the binary will be available in your $PATH as all-smi.
Option 3: Download Pre-built Binary
Download the latest release from the GitHub releases page:
- Go to https://github.com/inureyes/all-smi/releases
- Download the appropriate binary for your platform
- Extract the archive and place the binary in your
$PATH
Option 4: Build from Source
See Building from Source in the developer documentation.
Usage
Command Overview
# Show help
# Local monitoring (requires sudo on macOS)
# Remote monitoring
# API mode
View Mode (Interactive Monitoring)
The view mode provides a terminal-based interface with real-time updates.
Local Mode
# Monitor local GPUs (requires sudo on macOS)
# With custom refresh interval
Remote Monitoring
Monitor multiple remote systems running in API mode:
# Direct host specification
# Using host file
Host file format (CSV):
http://gpu-node1:9090
http://gpu-node2:9090
http://gpu-node3:9090
Features
GPU Monitoring
- Real-time Metrics: Displays comprehensive GPU information including:
- GPU Name and Driver Version
- Utilization Percentage with color-coded status
- Memory Usage (Used/Total in GB)
- Temperature in Celsius (or Thermal Pressure for Apple Silicon)
- Clock Frequency in MHz
- Power Consumption in Watts (2 decimal precision for Apple Silicon)
- Multi-GPU Support: Handles multiple GPUs per system with individual monitoring
- Interactive Sorting: Sort GPUs by utilization, memory usage, or default (hostname+index) order
- Platform-Specific Features:
- NVIDIA: PCIe info, performance states, power limits
- NVIDIA Jetson: DLA utilization monitoring
- Apple Silicon: ANE power monitoring, thermal pressure levels
- Tenstorrent NPUs: Real-time telemetry via luwen library, board-specific TDP calculations
CPU Monitoring
- Comprehensive CPU Metrics:
- Real-time CPU utilization with per-socket breakdown
- Core and thread counts
- Frequency monitoring (P+E format for Apple Silicon)
- Temperature and power consumption
- Apple Silicon Enhanced:
- P-core and E-core utilization tracking
- P-cluster and E-cluster frequency monitoring
- Integrated GPU core count
Memory Monitoring
- System Memory Tracking:
- Total, used, available, and free memory
- Memory utilization percentage
- Swap space monitoring
- Linux: Buffer and cache memory tracking
- Visual Indicators: Color-coded memory usage bars
Process Monitoring
- Enhanced GPU Process View:
- Process ID (PID) and Parent PID
- Process Name and Command Line
- GPU Memory Usage with per-column coloring
- CPU usage percentage
- User and State Information
- Advanced Features:
- Mouse click sorting on column headers
- Multi-criteria sorting (PID, memory, GPU memory, CPU usage)
- Per-column color coding for better visibility
- Full process tree integration
Cluster Management
- Cluster Overview Dashboard: Real-time statistics showing:
- Total nodes and GPUs across the cluster
- Average utilization and memory usage
- Temperature statistics with standard deviation
- Total and average power consumption
- Live Statistics History: Visual graphs showing utilization, memory, and temperature trends
- Tabbed Interface: Switch between "All" view and individual host tabs
- Adaptive Update Intervals:
- Local monitoring: 1 second (Apple Silicon) or 2 seconds (others)
- 1-10 remote nodes: 3 seconds
- 11-50 nodes: 4 seconds
- 51-100 nodes: 5 seconds
- 101+ nodes: 6 seconds
Cross-Platform Support
- Linux:
- NVIDIA GPUs via NVML and nvidia-smi (fallback)
- CPU monitoring via /proc filesystem
- Memory monitoring with detailed statistics
- Tenstorrent NPUs (Grayskull, Wormhole, Blackhole) via luwen library
- Furiosa NPUs via furiosactl (infrastructure ready)
- macOS:
- Apple Silicon GPUs via powermetrics and Metal framework
- ANE (Apple Neural Engine) power tracking
- Thermal pressure monitoring
- P/E core architecture support
- NVIDIA Jetson:
- Special support for Tegra-based systems
- DLA (Deep Learning Accelerator) monitoring
Remote Monitoring
- Multi-Host Support: Monitor up to 256+ remote systems simultaneously
- Connection Management: Optimized networking with:
- Connection pooling (200 idle connections per host)
- Concurrent connection limiting (64 max)
- Automatic retry with exponential backoff
- TCP keepalive for persistent connections
- Connection staggering to prevent overload
- Storage Monitoring: Disk usage information for all hosts
- High Availability: Resilient to connection failures with automatic recovery
Interactive UI
- Enhanced Controls:
- Keyboard: Arrow keys, Page Up/Down, Tab switching
- Mouse: Click column headers to sort (process view)
- Sorting: 'd' (default), 'u' (utilization), 'g' (GPU memory), 'p' (PID), 'm' (memory), 'c' (CPU)
- Interface: '1'/'h' (help), 'q' (quit), ESC (close help)
- Visual Design:
- Color-coded status: Green (≤60%), Yellow (60-80%), Red (>80%)
- Per-column coloring in process view
- Responsive layout adapting to terminal size
- Double-buffered rendering for flicker-free display
- Help System: Context-sensitive help with all keyboard shortcuts
Development & Testing
- Mock Server: Built-in mock server for testing and development
- Simulates realistic GPU clusters with 8 GPUs per node
- Configurable port ranges for multiple instances
- Failure simulation for resilience testing
- Platform-specific metric generation (NVIDIA, Apple Silicon, Jetson, Tenstorrent)
- Background metric updates with realistic variations
- Performance Optimized:
- Template-based response generation
- Efficient memory management
- Minimal CPU overhead
API Mode (Prometheus Metrics)
Expose hardware metrics in Prometheus format for integration with monitoring systems:
# Start API server
# Custom update interval (default: 3 seconds)
# Include process information
Metrics are available at http://localhost:9090/metrics and include comprehensive hardware monitoring for:
- GPUs: Utilization, memory, temperature, power, frequency (NVIDIA, Apple Silicon, Tenstorrent)
- CPUs: Utilization, frequency, temperature, power (with P/E core metrics for Apple Silicon)
- Memory: System and swap memory statistics
- Storage: Disk usage information
- Processes: GPU process metrics (with --processes flag)
For a complete list of all available metrics, see API.md.
Quick Start with Make Commands
For development and testing, you can use the provided Makefile:
# Run local monitoring
# Run remote monitoring with hosts file
# Start mock server for testing
# Build release version
# Run tests
Development
For development documentation including building from source, testing with mock servers, architecture details, and technology stack information, see DEVELOPERS.md.
Contributing
Contributions are welcome! Areas for contribution include:
- Platform Support: Additional GPU vendors or operating systems
- Features: New metrics, visualization improvements, or monitoring capabilities
- Performance: Optimization for larger clusters or resource usage
- Documentation: Examples, tutorials, or API documentation
Please submit pull requests or open issues for bugs, feature requests, or questions.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Changelog
Recent Updates
- v0.6.1 (2025/07/19): Fixed multi-node view hanging, improved hostname handling, optimized network fetch, and updated Ubuntu release workflows
- v0.6.0 (2025/07/18): Added Tenstorrent NPU support, improved UI alignment and terminal resize handling, modularized API metrics, and enhanced disk filtering
- v0.5.0 (2025/07/12): Enhanced Apple Silicon support with ANE power in watts, P+E frequency display, thermal pressure text, interactive process sorting, and configurable PowerMetrics intervals
- v0.4.3 (2025/07/11): Fix P-CPU/E-CPU gauges for all Apple Silicon variants including M1 Pro hybrid format
- v0.4.2 (2025/07/10): Eliminate PowerMetrics temp file growth with in-memory buffer, Homebrew installation support
- v0.4.1 (2025/07/10): Mock server improvements, efficient Apple Silicon and NVidia GPU support
- v0.4.0 (2025/07/08): Architectural refactoring, Smart sudo detection and comprehensive unit testing
- v0.3.3 (2025/07/07): CPU, Memory, and ANE support, and UI fixes
- v0.3.2 (2025/07/06): Cargo.toml for publishing and release process
- v0.3.1 (2025/07/06): GitHub actions and Dockerfile, and UI fixes
- v0.3.0 (2025/07/06): Multi-architecture support, optimized space allocation, enhanced UI
- v0.2.2 (2025/07/06): GPU sorting functionality with hotkeys
- v0.2.1 (2025/07/05): Help system improvements and code refactoring
- v0.2.0 (2025/07/05): Remote monitoring and cluster management features
- v0.1.1 (2025/07/04): ANE (Apple Neural Engine) support, page navigation keys, and scrolling fixes
- v0.1.0 (2024/08/11): Initial release with local GPU monitoring