check historical memory or swap utilization with sar in linux

Examples:

Memory – sar -r -f /var/log/sa/sa31 -s 10:00:00

Swap – sar -S -f /var/log/sa/sa31 -s 10:00:00

Advertisements

Check Linux performance with sar

sar -q  run queue and load average
sar -r  memory free and used
sar -n ALL  network statistics
sar -u CPU
sar -b  overall I/O
sar -d  individual block device I/O
sar -w context switches
sar -S -f /var/log/sa/sa07   swap space historical
sar -s  start time