Linux command
powerstat 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
powerstat
Example
powerstat [10] [20]
Example
powerstat -R [10] [20]
Example
powerstat -H [10] [20]
Example
powerstat -a [10] [20]
说明
powerstat measures system power consumption using battery discharge rate or Intel's RAPL (Running Average Power Limit) interface. It provides statistical analysis of power usage over time. The tool is useful for evaluating power efficiency of applications, kernel settings, or hardware configurations on laptops and servers.
参数
- interval
- Seconds between measurements (default: 10)
- samples
- Number of measurements (default: 10)
- -a
- Enable all statistics gathering
- -H
- Show histogram of measurements
- -R
- Use Intel RAPL interface instead of battery
- -d
- Show distribution statistics
- -z
- Show zero/idle power estimate
FAQ
What is the powerstat command used for?
powerstat measures system power consumption using battery discharge rate or Intel's RAPL (Running Average Power Limit) interface. It provides statistical analysis of power usage over time. The tool is useful for evaluating power efficiency of applications, kernel settings, or hardware configurations on laptops and servers.
How do I run a basic powerstat example?
Run `powerstat` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does interval do in powerstat?
Seconds between measurements (default: 10)