Score:0

How to use sar to monitor cpu and memory usage over a period of time?

cn flag

First, my top/htop shows that the uptime is:

23 days

Then I do:

 ls -l /var/log/sa/ | wc -l
60

My first question is, is each file under /var/log/sa directtory storing utilization data for each day? If that is the case, why is there 60 files, but the machine uptime is only 23 days?

If I do:

sar -f /var/log/sa/sa26

Does this check cpu usage for a particular day? How can I get a summary of cpu usage over the past month or week?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.