Questions tagged [sar]

System Activity Report: a Unix/Linux command to display various system loads (Wikipedia).

sar is a widely used system load monitor in POSIX.

Sar shows current status of memory, CPU load and network usage, and it can log the load statistics over time.

64 questions
15
votes
4 answers

sar: enable data collecting

I've just installed the sysstat package on Manjaro. When running sar for the first time I see: Cannot open /var/log/sa/sa21: No such file or directory Please check if data collecting is enabled How do I check whether data collecting is enabled? If…
Tom Hale
  • 1,005
  • 1
  • 12
  • 23
13
votes
3 answers

Relation between disk IOPS and sar tps

I'm trying to estimate IOPS requirements of my application running on 32-bit CentOS 6.2. I started to take some measurement on a machine with SATA disks and I'm quite confused of difference between IOPS and tps measured by sar. According to…
pystole
  • 355
  • 2
  • 3
  • 8
9
votes
1 answer

What does the fields in sar -B output mean?

The sar manpage says : pgpgin/s - Total number of kilobytes the system paged in from disk per second. pgpgout/s - Total number of kilobytes the system paged out to disk per second. fault/s - Number of page faults (major + minor) made by…
rags
  • 328
  • 1
  • 2
  • 6
8
votes
2 answers

How do I see what's in the run queue on GNU/Linux?

The load on my server is very high, even though there doesn't seem to be much disk activity and the CPU is idle. Using sar, I can see the run queue is getting full, but is there any way to see what's in the run queue?
aaronsw
  • 211
  • 1
  • 3
  • 4
7
votes
3 answers

Invalid system activity (sysstat) file on Ubuntu server

I'm periodically getting this message from the daily cron on my server. (I don't get this message every day.) /etc/cron.daily/sysstat: Invalid system activity file: /var/log/sysstat//sa28 Here's some basic info on my server: Ubuntu 12.04.2…
MountainX
  • 681
  • 3
  • 12
  • 25
6
votes
1 answer

How to find what processes were running at a time in the past?

I am asked to investigate a high CPU usage alert which occurred this morning. I used sar -p and saw the high CPU usage showing up at that time Next I used ps -eo pcpu,pid,user,args | sort -r -k1 | less to list the top 10 memory hogs at this hour Now…
juniorbansal
  • 163
  • 1
  • 1
  • 4
5
votes
4 answers

CentOS - High CPU Usage at a particular time in the night

I have a CentOS-5 server that has very little load. A typical output of "sar" command shows like this: 02:20:01 PM CPU %user %nice %system %iowait %steal %idle 02:30:01 PM all 0.63 0.00 1.23 0.31 …
4
votes
3 answers

How to Change sysstat/sar logging folder

I have just enabled sysstat on one of my servers (Ubuntu 12.04), I have noticed it is logging all to /var/log/sysstat/sa04 /var/log/sysstat/sa05 /var/log/sysstat/sar04 How can I change the sysstat logging path to another folder on another…
Onitlikesonic
  • 1,161
  • 4
  • 15
  • 24
4
votes
2 answers

Shell script to notify when CPU usage goes to 100%

sar -u 1 | awk '{print $9}' so this will give me "CPU Idle" value every second. I'd like to get email in this case the value goes to "0" 10 times in a row? What would be the appropriate way to do it? I found a preliminary solution sar -u 1 | awk…
DmitrySemenov
  • 755
  • 2
  • 14
  • 27
4
votes
2 answers

sa2 -A /var/log/sa/sa13: No such file or directory

I have systat version 7.0.2 and the /etc/sysconfig/sysstat has the entry HISTORY=27, this is on a redhat enterprise server 5.6, the cron setup for this is # run system activity accounting tool every minute * * * * * root /usr/lib64/sa/sa1 1 1 #…
user53925
  • 141
  • 1
  • 3
  • 7
3
votes
1 answer

opening sar activity files error "Invalid system activity file"

Note: I opened this question on Stackoverflow first and realized that this is the right place for the question. Just stating that it is not a duplicate, already closed the question on SO. I am new to sar(also new to serverfault) I am getting the…
user624558
  • 135
  • 1
  • 4
3
votes
0 answers

Why are pgpgin/s and majflt/s inconsistent in sar -B?

In sar -B ouptut, I would naively expect pgpgin/s to equal majflt/s multiplied by the system page size. From man sar: pgpgin/s Total number of kilobytes the system paged in from disk per second. Note:…
simonp
  • 131
  • 4
3
votes
2 answers

Reporting historical system activity in FreeBSD

I'd like to record data about system activity under FreeBSD for future analysis. If I were running a SysV system, I'd just sar and its related utilities, but that doesn't exist in the BSDs. (And bsdsar has gone missing.) I don't really care about…
wfaulk
  • 6,828
  • 7
  • 45
  • 75
3
votes
3 answers

High await in sar

My database server has the following sar output for the data device: [postgres@dbsrv07 ~]$ LC_ALL=POSIX sar -d |egrep "await|dev253-2" 00:00:01 DEV tps rd_sec/s wr_sec/s avgrq-sz avgqu-sz await svctm %util 00:10:01 …
xpapad
  • 151
  • 1
  • 1
  • 4
3
votes
1 answer

Sar: Free memory statistics (including buffers, cache)

The free commands gives the amount of free memory in two forms: completely free memory (the Mem line) and disposable memory used for caches and buffers (the -/+ buffers/cache line): -bash-3.2$ free -m total used free …
Adam Matan
  • 12,504
  • 19
  • 54
  • 73
1
2 3 4 5