2017-10-11 16:12:11 +05:30
|
|
|
# sar
|
|
|
|
|
|
|
|
> Monitor performance of various Linux subsystems.
|
2022-03-22 03:07:48 +10:00
|
|
|
> More information: <https://manned.org/sar>.
|
2017-10-11 16:12:11 +05:30
|
|
|
|
2025-03-09 14:03:08 +02:00
|
|
|
- Report I/O and transfer rate issued to physical devices, one per second (press `<Ctrl c>` to quit):
|
2017-10-11 16:12:11 +05:30
|
|
|
|
|
|
|
`sar -b {{1}}`
|
|
|
|
|
|
|
|
- Report a total of 10 network device statistics, one per 2 seconds:
|
|
|
|
|
|
|
|
`sar -n DEV {{2}} {{10}}`
|
|
|
|
|
|
|
|
- Report CPU utilization, one per 2 seconds:
|
|
|
|
|
|
|
|
`sar -u ALL {{2}}`
|
|
|
|
|
|
|
|
- Report a total of 20 memory utilization statistics, one per second:
|
|
|
|
|
|
|
|
`sar -r ALL {{1}} {{20}}`
|
|
|
|
|
|
|
|
- Report the run queue length and load averages, one per second:
|
|
|
|
|
|
|
|
`sar -q {{1}}`
|
|
|
|
|
|
|
|
- Report paging statistics, one per 5 seconds:
|
|
|
|
|
|
|
|
`sar -B {{5}}`
|