Questions tagged [sar]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
37 views

enough memory for downscale ubuntu server?

Management decided to downscale prod server. Current size: Standard B16ms (16 vcpus, 64 GiB memory) Desired size: Standard B8ms (8 vcpus, 32 GiB memory) CPU is mostly idle (output is from sar -u)...
user avatar
  • 115
0 votes
1 answer
109 views

sar service has stopped collecting data

We had sar working on our Ubuntu server, but did some work on the server and now it's stopped logging to the day's logfile. sar -b 5 5 This indicates that sar is alive, and monitoring data, but ...
user avatar
0 votes
0 answers
104 views

High I/O wait in apache tomcat server

Facing high I/O wait in apache tomcat server when the load increases. Suspecting disk I/O is less when tomcat is running however. disk IO seems drops drastically when tomcat is running along with the ...
user avatar
0 votes
0 answers
59 views

Total CPU Utilisation % from SAR on Ubuntu

When I run sar 1 1 to monitor CPU usage, I get the following output: username@my-server:~$ sar 1 1 Linux 5.4.0-84-generic (my-server) 10/18/21 _x86_64_ (80 CPU) 19:50:45 CPU %user ...
user avatar
1 vote
1 answer
103 views

How to write pidstat output to a sadc file for analysis later (sar)

How can I write the output of pidstat to a file for analysis later? In sar, you can monitor usage and write-out to a file for later analysis using the -o argument. From the man page: If ...
user avatar
0 votes
1 answer
908 views

sar and top show high cpu usage, but vmstat and ps show low cpu usage. Why?

I'm diagnosing a high CPU usage event, and I found a weird difference between numbers from ps/vmstat, which show almost 0%, and sar/top, which show almost 100% (user + system): sar 1 5 Linux 2.6.9-67....
user avatar
0 votes
1 answer
567 views

Stop sysstat sar

How to stop sar collecting system activity without uninstalling sysstat? I have used systemctl stop sysstat but as I understand from running sar it continues collecting system activity.
user avatar
1 vote
1 answer
117 views

Control-C sends control-alt-delete to my Ubuntu server over ssh

On my Ubuntu VM: Linux xxxxxxx 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux to which I am connected over SSH, I am running this command: sar ...
user avatar
  • 11
0 votes
1 answer
520 views

sar + get network info from sar

this syntax give the network info on sa1 file sar -n DEV -f /var/log/sa/sa1 how to get the info only from UDP protocol ? we try also sar -n UDP -f /var/log/sa/sa1 Requested activities not ...
user avatar
  • 451
0 votes
0 answers
447 views

sar -dp reports individual disks higher than their devicemapper logical volume

I am trying to figure out how sysstat is reporting the utilization of the device mapper logical volume, lower than the individual disks that make up the logical volume. I keep trying to do the math ...
user avatar
  • 46
1 vote
1 answer
306 views

Update sa reports every 6 hours

On SuSE Linux the default cron-job for sa/sar looks like this: # /etc/cron.d/sysstat # Activity reports every 10 minutes everyday */10 * * * * root [ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/...
user avatar
  • 3,054
0 votes
0 answers
60 views

reducing tps in kafka disks on linux

we're using kafka brokers with: 24 HT cores 256GB RAM 16 X 7.2K RPM NLSAS disks configured in RAID-10 and replication factor 3. the sar -q command the runq-sz reached ~40 on average, load average ...
user avatar
-1 votes
1 answer
637 views

After installing sysstat on an AWS EC2 instance: kernel: ena: Feature 27 isn't supported

After installing and enabling sysstat on an AWS EC2 instance I get the following log entries everytime sysstat is run (from the cronjob in /etc/cron.d/sysstat) in my /var/log/syslog file on Debian: ...
user avatar
  • 5,239
0 votes
2 answers
2k views

How does sar collect/calculate disk utilization %?

I'm pretty sure sar's disk utilization % shows how much of the disk is being utilized at any given time, but how does it calculate that? I found: %util Percentage of CPU time during which I/O ...
user avatar
  • 399
0 votes
1 answer
919 views

How is rxkB/s and wxkB/s calculated in SAR -n DEV command?

sar -n DEV 1 1 command gives the stats rxkB/s(Number of kilobytes read from the device per second.) and wxkB/s (Number of kilobytes written to the device per second.) Is it possible to calculate ...
user avatar
13 votes
4 answers
16k views

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 ...
user avatar
  • 957
1 vote
1 answer
108 views

Take all sadc (sar) data from production, and analyze it on another machine

sadc is running on the production server. When a incident happens, I want the admin to give me all the data (going back in the past as far as possible) so that I can analyze the incident and also ...
user avatar
0 votes
1 answer
388 views

How to view historical usage metrics, per process?

My first inclination here would be something built into SAR, or the sysstat package in general. If that is indeed the case however, I can't seem to find this solution. What I would like to see, and ...
user avatar
  • 815
0 votes
1 answer
2k views

How to find network latency for network interfaces using SAR on linux environment

I want to get the network latency for network interfaces using SAR on linux environment. sar -n command provides following output: 10:00:13 AM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s ...
user avatar
0 votes
2 answers
998 views

What's the caculation for network speed reported with sar-n DEV output?

I am confused about the network speed outputs: If the report says: sar -n DEV 1 1 Linux 2.6.18-194.el5PAE (dev-db) 03/26/2011 _i686_ (8 CPU) 01:11:13 PM IFACE rxpck/s txpck/s ...
user avatar
  • 599
0 votes
1 answer
283 views

sar-like Utility For File Access

I'm troubleshooting a linux server's performance degradation from last night. I have sysstat installed on the server and it's polling every 2 minutes. At around the time the event happened, there ...
user avatar
  • 479
0 votes
0 answers
380 views

runqueue length in vmstat and sar

i am looking at the vmstat output to assess certain performance degradation on our systems, specifically for long runqueue. i find frequently it looks like this on a 8 CPU m/c: Mon Jun 13 12:14:02 ...
user avatar
  • 1
1 vote
1 answer
399 views

What is the best way to analyze data captured from sar?

I've got some sysstat data that has been captured from servers with SAR, and I'm unsure what is the best way to analyze that data. I've found ksar, but it seems to be quite old and out of date. I'd ...
user avatar
1 vote
0 answers
209 views

Does an NFS client incur read/write page faults proportional to bytes read to/written from server?

Perhaps my knowledge of virtual memory has been supplanted by too much other junk. Recently I ran some database benchmark tests where all data was to be stored on an NFS server and accessed via NFSv3 ...
user avatar
  • 81
6 votes
1 answer
28k views

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 | ...
user avatar
2 votes
1 answer
243 views

HP UX iostat on File System

I have a server running HP UX 11 OS and I'm trying to have I/O statistics for File System and not disk. For example, I have 50 disk attached to the server when I type iostat (here under output of ...
user avatar
  • 21
0 votes
2 answers
769 views

Shell Script to check CPU Utilisation

I am trying to write a shell script which will check free memory of the server. I am trying below code top -M -n1 | grep "Mem" | awk '{print 0 + $7}' | awk '{ print $1 / 1024 }' | awk '{if ($1 < ...
user avatar
  • 1
1 vote
0 answers
626 views

how to filter sar -d disk output tidily

sar -D output-I would like a suitable command to run alongside stress -hdd but this is the output which sar -D 1 10 gives. I have filtered it using both awk |'NR > 1 {printf "%4s%8s%8s\n",$13,$14,$...
user avatar
  • 11
0 votes
0 answers
1k views

Why top output different from sar output?

This is SLES11sp3 system. The command top shows the load average of 17+, as shown below: #top top - 11:59:14 up 19 days, 21:55, 40 users, load average: 17.09, 17.29, 19.22 Tasks: 514 total, 1 ...
user avatar
  • 179
0 votes
1 answer
1k views

interpreting disk stats using sar

I have JBOD and Cassandra installed on it. I'm trying to figure out if my disk are totally free or they are boring. The sar -d result is in the end. As I understand until %util is low (less then 1) it ...
user avatar
1 vote
0 answers
141 views

What is the difference between sar -B verses sar -W

I am trying to understand why my system is running slowly. I found the sar command, but wanted to know the difference between sar -B and sar -W I read the man page, and I understand that -B gives me ...
user avatar
  • 119
1 vote
1 answer
175 views

High load on a particular time

I am facing one odd problem in one of my remote servers (Centos 6). Its load became high by 09:30 AM and became normal by 09:40. See my SAR -q on 2 days. 09:00:01 PM 4 199 0.95 ...
user avatar
0 votes
0 answers
264 views

Nor able to parse the SAR output

We are using SuSE 10 OS and lately I wish to know the total network bandwidth used for a period of time lets say for 1 week. We have sar enabled and the sar data for a week is there. Now I know how ...
user avatar
4 votes
3 answers
4k views

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 ...
user avatar
3 votes
1 answer
7k views

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 ...
user avatar
2 votes
1 answer
4k views

report per-process IO stats with pidstat or sar

I'm trying to track io usage of a few "suspect" processes over time. Ideally would like to make those stats available via munin, or push directly to graphite. However, as a starting point it would be ...
user avatar
  • 531
0 votes
1 answer
355 views

High CPU usage in RHEL machine

I have RHEL machine that runs postgres-9.1 database. In a particular time, sar output shows as follows: Refer link for snapshot: http://imgur.com/gKcOhOX,vNwTpwC#0 where as %user is high between 12:...
user avatar
3 votes
0 answers
2k views

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 ...
user avatar
  • 131
13 votes
3 answers
28k views

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 ...
user avatar
  • 355
3 votes
2 answers
1k views

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 ...
user avatar
  • 6,808
-1 votes
2 answers
428 views

How to find DEVICE on which read per second (rd_sec/s) is highest?

I am using awk to find out DEVICE on which read per second (rd_sec/s) is highest, (from SAR file) below is my command : # sar -d -f sa28 | awk '{print $3,$4}' |sort -k1,1n Output is showing on ...
user avatar
  • 51
1 vote
1 answer
256 views

How to track down sudden increase in process numbers (linux)

I find it pretty common for a Linux server to slow down to the point of complete unresponsiveness (LA 150+ etc), which when looking at it later using sar or munin or whatever it will show a sudden ...
user avatar
  • 318
3 votes
3 answers
22k views

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 ...
user avatar
  • 151
7 votes
3 answers
14k views

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 ...
user avatar
  • 681
3 votes
1 answer
8k views

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 -...
user avatar
  • 12.4k
1 vote
2 answers
5k views

Linux SAR/SAT Daily Reports to store more than a month?

I'm on RHEL. How can i extend the log interval of SAR Reports to be more then a month? Normally the daily SAR reports are something like: [root@server /]# cat /var/log/sa/sa sa01 sa21 sa23 ...
user avatar
0 votes
1 answer
12k views

CRON opens and closes sessions continuously

I'm seeing a huge amount of these lines in my auth logs: Dec 31 03:45:01 xxxxxxx CRON[17259]: pam_unix(cron:session): session opened for user root by (uid=0) Dec 31 03:45:01 xxxxxxx CRON[17259]: ...
user avatar
1 vote
2 answers
1k views

How to use Sar and kSar

How do I use sar to generate monitoring files on a remote server that I can then copy to my local and graph with the kSar tool? (My server can only be accessed via the cmd)
user avatar
  • 113
4 votes
2 answers
21k views

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 ...
user avatar
1 vote
1 answer
390 views

Measuring custom statistics with sar

I have a server application which I think is leaking file handles. I want to track the usage of file descriptors over time on my Linux (ubuntu) server. I've figured out that I can track the number ...
user avatar