In this recipe, we are going to see how to analyze the memory load for a previous day in the week.
The commands used in this recipe have been performed on a CentOS Linux machine. The command output may vary in other Linux and Unix-based operating systems.
When it comes to analyzing memory statistics, we need to check for both paging statistics as well as swapping statistics.
We can use the sar command in conjunction with the -B
switch to report on paging statistics, along with the -f
switch to report on statistics for different days of the month. As mentioned in the previous recipe, the files that the sar
command uses to report statistics for different days of the month are located in the /var/log/sa
directory, where the files have a naming convention of sadd
, where dd
represent the numeric date of the month, and where these values are in the range from 01 to 31.
For instance, to report on the paging statistics for the fifth of the...