Linux command
dstat 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
dstat
Example
dstat 5 4
Example
dstat -c -m
List
dstat --list
Example
dstat --top-mem --top-cpu
Example
dstat --battery --battery-remain
说明
dstat is a versatile system resource statistics generator that unifies the functionality of vmstat, iostat, netstat, and ifstat in a single tool. It provides real-time monitoring of CPU, memory, disk I/O, network, processes, and other system resources with colorful, easy-to-read output. The tool's plugin architecture allows for extensible monitoring capabilities beyond the standard metrics. Users can display top CPU and memory consumers, battery information, and custom statistics through third-party plugins. Output updates at configurable intervals, making it suitable for both quick system checks and continuous monitoring. dstat's strength lies in its ability to correlate metrics across different subsystems in one view. For example, you can simultaneously monitor CPU usage, disk I/O, and network traffic to understand system bottlenecks. Important note: dstat is deprecated and no longer maintained. The Python 2 codebase has not been updated for modern systems. Users should consider alternatives like dool (a maintained fork), or use the traditional sysstat tools (vmstat, iostat, sar) which continue to be actively maintained.
参数
- -c, --cpu
- CPU statistics
- -m, --mem
- Memory statistics
- -d, --disk
- Disk statistics
- -n, --net
- Network statistics
- --top-cpu
- Process using most CPU
- --top-mem
- Process using most memory
- --list
- List available plugins
FAQ
What is the dstat command used for?
dstat is a versatile system resource statistics generator that unifies the functionality of vmstat, iostat, netstat, and ifstat in a single tool. It provides real-time monitoring of CPU, memory, disk I/O, network, processes, and other system resources with colorful, easy-to-read output. The tool's plugin architecture allows for extensible monitoring capabilities beyond the standard metrics. Users can display top CPU and memory consumers, battery information, and custom statistics through third-party plugins. Output updates at configurable intervals, making it suitable for both quick system checks and continuous monitoring. dstat's strength lies in its ability to correlate metrics across different subsystems in one view. For example, you can simultaneously monitor CPU usage, disk I/O, and network traffic to understand system bottlenecks. Important note: dstat is deprecated and no longer maintained. The Python 2 codebase has not been updated for modern systems. Users should consider alternatives like dool (a maintained fork), or use the traditional sysstat tools (vmstat, iostat, sar) which continue to be actively maintained.
How do I run a basic dstat example?
Run `dstat` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c, --cpu do in dstat?
CPU statistics