Skip to main content

Questions tagged [sar]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
40 views

Is there a reason why sar would show different monitoring statistics on memory than other monitoring tools like dynatrace?

I'm currently investigating why I didn't get notified about a high memory utilization on one RHEL server from dynatrace. When checking the graphs of memory usage, both sar and dynatrace show different ...
VaTo's user avatar
  • 3,113
0 votes
1 answer
149 views

Can I use SAR to log GPU usage metrics?

sar is a great tool to log various resource usage metrics, regarding CPU, memory, I/O, network... ...but not GPU? I won't be remotely original by stressing the importance of logging GPU usage metrics (...
user209974's user avatar
0 votes
2 answers
143 views

convert MAJ:MIN – device numbers to real disks names

from sar command on saX file we can get the disks utilization as the follwing sar -d -f /var/log/sa/sa18 | grep Average Average: dev8-0 1.24 0.00 150.06 121.40 0.04 30....
yael's user avatar
  • 13.3k
0 votes
1 answer
146 views

How to get CPU statistics PER PROCESSOR on AIX without requiring root privileges?

I want to get the per processor statistics for my AIX machines. I can use the ‘sar -P ALL 1 1’ (Documentation) command but it requires root privileges. Is there a command that can give me PER ...
Purven Dudhaiya's user avatar
0 votes
1 answer
168 views

SAR / syssstat issues

I am having issues with SAR not populating daily logs from the 10 minute interval runs it is supposed to be doing. I have the same configuration on multiple servers, and they are running sar just fine....
Dylan Michaels's user avatar
1 vote
1 answer
1k views

Enable sysstat temperature logging

I'm trying to enable sysstat to take temperature readings, so that I have past temperature information to diagnose host failures in the future. I tried this command to get temperature information: $ ...
Nick ODell's user avatar
  • 2,658
0 votes
1 answer
671 views

Sysstat Time Options and Command Differences

I would like to track total CPU and memory use on an Ubuntu 20.04 machine. For that purpose, I am about to install the sysstat library. I read the manuals of and posts on sar and related functions, ...
user's user avatar
  • 71
0 votes
1 answer
152 views

How should I run sysstat / sar to get a reading for 00:00:00 in same day data file

I was trying the below entries to get the sar information for every 5 minutes including the 00:00:00 (midnight) data. 0 * * * * root /usr/lib64/sa/sa1 300 6 */5 1-22 * * * root /usr/lib64/sa/sa1 1 1 ...
whiterose's user avatar
  • 1,069
1 vote
0 answers
600 views

Sar network monitoring seems inaccurate?

I've been monitoring my system using sar. I recently came across some interesting data: These are the stats for one of my Calico network devices... it seems to spike between ~0.2 Gbps and 20 Gpbs. The ...
robert's user avatar
  • 556
1 vote
0 answers
2k views

sar + sar command failed to found folder under /var/log/sa

on our rhel Linux server we do the following in order to get info from sar command but we get sar Cannot open /var/log/sa/sa31: No such file or directory but we can see that only the following ...
yael's user avatar
  • 13.3k
1 vote
1 answer
742 views

sysstat sar only collects cpu usage

I'm running into a problem when using sar to collect live system statistics. When I run a sar command such as the following, I get the right output: $ sar -r 1 -o /tmp/memory_usage Linux 4.15.0-70-...
Dash83's user avatar
  • 183
0 votes
1 answer
40 views

How to evaluate SAR data?

I know how to collect and make use of the data gathered by the sar tool, but I don't know how to interpret it correctly. For example, PAGING: I can see that my pgpin is 300.000 but how can I tell if ...
rehj147852369's user avatar
1 vote
0 answers
209 views

What is the relation between %UTIL VS %WA in sar?

What is the relation between %UTIL VS %WA in sar ? %util Percentage of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs ...
Ajay Ponugoti's user avatar
1 vote
1 answer
2k views

sar + why sar not displayed the real disks under DEV section

we have Linux machine with 2 disks - sda and sdb ( sda is the OS ) lsblk -d -e 11,1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 150G 0 disk sdb 8:16 ...
yael's user avatar
  • 13.3k
2 votes
3 answers
3k views

How to retrieve specific cpu, memory and interface statistics only

There is requirement to collect only specific stats like %idle, memfree, available, pmemused etc. I further have to convert the output to a json string and consume it. Is there any UNIX tool which ...
Aditya369's user avatar
  • 133
0 votes
2 answers
3k views

Getting only last line of continuous stdout

I'm using sar to collect network statistics from my wlp2s0 interface (1 second interval), like so: $ sar -n DEV 1 | grep wlp2s0 and the continuous output looks like this: 18:15:06 wlp2s0 ...
imll's user avatar
  • 219
0 votes
1 answer
554 views

Output of sar is difficult to read

I want to display statistics for devices. When I use sar -d I only see tens of devices with names that are hard to interpret: Average: DEV tps rd_sec/s wr_sec/s avgrq-sz avgqu-sz ...
Marged's user avatar
  • 731
2 votes
1 answer
2k views

sa25 vs sar25: What is the difference?

I collect performance data like this: # Activity reports every 10 minutes everyday */10 * * * * root [ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1 -S ALL 1 1 # Update reports every 6 ...
guettli's user avatar
  • 1,439
0 votes
4 answers
3k views

How to find top memory & CPU consuming process for particular time?

I have checked the sar report and found that CPU & Memory is getting utilized much more at particular time (for ex. day ago). Is it possible to find which process was taking much CPU & Mem? ...
Santosh Garole's user avatar
3 votes
1 answer
2k views

Send sar series to grafana [closed]

sar of sysstat package produces a lot of useful information about system usage regarding various resources; My question (since after a brief query I was unable to find a useful suggestion / solution) ...
pkaramol's user avatar
  • 2,869
4 votes
4 answers
14k views

How is runq-sz counted in sar?

I would like to ask question about the output from sar -q . I appreciate if someone can help me out with understanding runq-sz. I have a system which cpu threads are 8 cpu threads on RHEL 7.2 . [...
Yu Watanabe's user avatar
1 vote
2 answers
4k views

IO Wait is consistently touching high values around 60-70% during load run

I am stuck on an IOwait related problem, the server I am monitoring shows a very high value for IOwait during my load run time (50%-70%). I generated this data using the SAR report command. The ideal ...
M. Rafi's user avatar
  • 11
2 votes
2 answers
2k views

Collect all of the sar data

Task: I can sar -u > tmp.csv and I can sar -r > tmp.csv But what I need is a big table of all the sa* files of all the options. sar -r -u -S -q > tmp.csv does not quite do the job ...
murloc's user avatar
  • 55
0 votes
1 answer
405 views

Solaris10 , disk io sar -d output interpretation

Question: in sar -d output ..you have %busy column. How is this value calculated? can this value be more than 100%?
Anil Kumar's user avatar
1 vote
1 answer
1k views

how to query sar(sysstat) for more than one day data points

I don't see 'sar' command accepts date-and-time as starttime(-s) or endtime(-e) than just time. So, how to query 'sar' for more than one day's data point with older date and times(-f not going to help ...
Murali Mopuru's user avatar
4 votes
1 answer
8k views

What are these sarXX files?

I know what are the saXX files in /var/log/sa directory but can you tell me what are the sa"r"XX files please? [root@centos3 sa]# ll total 3104 -rw-r--r--. 1 root root 43648 19 janv. 16:00 sa19 -rw-...
timothepoznanski's user avatar
1 vote
0 answers
175 views

Free pages in Kstat and Sar output

I am trying to find out number of free pages available on Solaris 11. I am using kstat and sar utilities. I was comparing their output as follows: There is slight difference in the number of free ...
Noisy_Botnet's user avatar
1 vote
1 answer
1k views

Sar vs df -h... discrepancy between percentage of root filesystem

why does sar give me 8.14% of root filesystem used and df -h gives me 9% for the same root filesystem? I was thinking df may be rounding the value, but if so it would be 8%. localhost one # sar -F 1 ...
dman's user avatar
  • 537
1 vote
1 answer
3k views

How to put systat/sar in cron on SLES 12?

Before, there was a https://linuxmain.blogspot.de/2011/12/gathering-performance-data-with-sysstat.html For SLES you can install the cron settings by SLES10: /etc/init.d/sysstat start SLES11: /etc/...
Peter's user avatar
  • 521
1 vote
1 answer
8k views

Any tool for viewing historical process resource utilization? (IE: A combination of sar and pidstat)

I'm trying to troubleshoot some CPU spikes that occur every so often on a Linux server. I can use sar to see the resource utilization in the past, and pidstat to see what processes are using what ...
Justin's user avatar
  • 495
11 votes
1 answer
2k views

Making sense of the output from sar on AIX

I'm trying to understand some data that has been pulled from SAR. I have three main questions about this. Ultimately, I'd like to determine how many CPUs were idle at each sampling interval across a ...
JimmyJames's user avatar
1 vote
0 answers
67 views

multiple directories for sar command

Is it normal for below directories created by sar command -rw-r--r-- 1 root root 348948 Nov 3 23:50 sa03 -rw-r--r-- 1 root root 348757 Nov 3 23:53 sar03 -rw-r--r-- 1 root root 348948 Nov 4 23:50 ...
Zama Ques's user avatar
  • 3,316
2 votes
1 answer
2k views

How to call sadf, so it automatically detects latest sar statistics?

I'm looking for a way to get sadf (from sysstat package) to generate me the csv version of the collected data by sar of the current day. I know that sar keeps it's configuration in /etc/sysstat/...
Bruno Bieri's user avatar
0 votes
1 answer
515 views

How to use SNMP to get any information that we need in Redhat?

I am new to SNMP and I can not find any clear article if we can add a data node in SNMP. And also how does SNMP collect data? I want to monitor the following resources, which can be obtained from ...
GP92's user avatar
  • 825
10 votes
2 answers
15k views

High load average: Which processes are waiting in the queue?

I have an Ubuntu server running Redis, which suffers from a high load problem. Forensics Uptime # uptime 05:43:53 up 19 min, 1 user, load average: 2.96, 2.07, 1.52 sar # sar -q 05:24:00 AM ...
Adam Matan's user avatar
  • 2,623
1 vote
3 answers
2k views

ksar (a sar grapher) development stopped 2013 - no RHEL 7x compatibility - any alternative? [closed]

Ksar is a BSD licensed Java based application to create graph of all parameters from the data collected by Unix sar utilities. Usually Unix sar is part of Unix' sysstat package and run sa1, sa2, ...
Sybil's user avatar
  • 1,923
6 votes
1 answer
9k views

On SAR reports, does %commit include page cache usage?

From the sar manpage: %commit Percentage of memory needed for current workload in relation to the total amount of memory (RAM+swap). This number may be greater than 100% because the kernel ...
Bratchley's user avatar
  • 16.9k
2 votes
0 answers
1k views

sar command vs /proc/stat for cpu usage

I have been using /proc/stat for calculating the cpu usage. Recently I have been going through sar command for calculating cpu usage. And what I found was that their values were not related (I was ...
Abhijeet Kumar Srivastava's user avatar
2 votes
1 answer
13k views

Understand sar command output Unix [closed]

I am trying to analyze my server CPU utilization and processing time .So for that i have taken sar output for the reference.But i am not able to understand it properly i help to understand the output ...
Developer's user avatar
  • 237
0 votes
1 answer
1k views

Previous System Statistics From Sar

I did see the post here: How do I get sar to show for the previous day? But it doesn't answer my questions below. I am trying to use sar to look at the statistics from yesterday (March 9th): $ sar -...
Hei's user avatar
  • 143
1 vote
1 answer
3k views

Can I get yesterday's stats using sar command but I have installed sar now

Can I get yesterday's stats using sar command, I have installed sar now so will I get yesterdays sa logs ? If yes then How ? I can see today's log : # sar -f /var/log/sa/sa12 Linux 3.14.19-17.43....
Ashish Karpe's user avatar
1 vote
0 answers
857 views

sar/sysstat output logs to a 2nd directory

We're running RHEL on one server and I need to report some stats about the machine. sysstat/sar does a great job but I need the logs to report starting with 6am until next morning at 6am and output ...
pungk's user avatar
  • 11
0 votes
1 answer
2k views

Writing awk to extract cpu utilization from sar command

I am trying to extract the values of the %user,%nice etc from the output of the sar command. sar -P ALL 1 1 Output of this: Linux 2.6.32-358.el6.x86_64 (ftizsldapp009.ftiz.cummins.com) 09/28/...
user133617's user avatar
1 vote
2 answers
792 views

Change time format in a file

I have output of a sar commands and the time is not POSIX: Linux 2.6.32-431.29.2.el6.x86_64 (test.server.com) 2015-08-01 _x86_64_ (32 CPU) 12:00:01 AM CPU %usr %nice %sys %...
Warnaud's user avatar
  • 123
1 vote
0 answers
599 views

What does the "ss -s" result "Total:" value represent? How to get details on each of them?

I am trying to understand what the ss -s result line Total: value represents, along with how this number is related to the other numbers. Note, the following values are equivalent: ss -s Total: == ...
Mike Baker's user avatar
1 vote
1 answer
581 views

sar shows zero percent load

I have an issue with sar on several machines running ORACLE Linux 6.4. Sometimes it shows zero load (CPU, block device, whatever else), including idle: Why can it happen? sysstat package version is ...
Andrey Steklov's user avatar
1 vote
1 answer
3k views

Run sar daily to log file

How can I run the sar command to run daily using cron then get killed every 24 hours and start over again creating a new log file? Command: sar -u 300 288 >> $(date "+ %Y-%m-%d")-cpu.log This ...
linguru772x's user avatar
2 votes
1 answer
1k views

Format sar samples live with paste and awk

I'm combining live sar samples with paste and trying to format the output with awk live. It works as expected to format the output, but it doesn't do the formatting live on each sample and instead ...
JacobN's user avatar
  • 123
2 votes
1 answer
3k views

How can I find the CPU resource utilization of a process and all its children [duplicate]

If I have a process that spawns child processes, is there a good way to get a single number representing the combined CPU use of that process and its children? i.e is there a simple shell command ...
Travis Bear's user avatar
0 votes
2 answers
935 views

What are the positions in `free` called?

I am trying to compare the output of free with the output of sar -r: # sar -r 12:00:01 AM kbmemfree kbmemused %memused kbbuffers kbcached kbcommit %commit 12:10:01 AM 629756 65293976 99....
dotancohen's user avatar