commands
sar — Report system activity
Report sampled system activity; historical reports require prior collection. Requires sysstat. Use a fresh private workspace; No production workload is required.
Formal Syntax & Structure
linux syntaxlinux
sar -u 1 3Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -u | option | CPU statistics |
| interval | operand | Seconds |
| count | operand | Number of reports |
Return Value
exit status and output
The bounded CPU sampling form prints activity statistics for its intervals. Inspect diagnostics if collection is unavailable and interpret the reported metrics, not just status, when judging load.
Working Example
Example Snippetlinux
sar -u 1 3