Questions tagged [sar]
56 questions
11
votes
1 answer
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 cluster of servers.
Many of the CPUs are not…
JimmyJames
- 113
- 8
9
votes
2 answers
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 LINUX RESTART
05:25:01 AM runq-sz plist-sz …
Adam Matan
- 2,543
- 6
- 29
- 31
6
votes
1 answer
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 usually overcommits memory.
Does this include data…
Bratchley
- 16,684
- 13
- 64
- 103
6
votes
2 answers
Attempting to Abbreviate kSAR's PDF output
I'm currently writing a cronjob around kSar's command line (non-GUI) options in order generate PDF's. I'm just going to email a PDF of the previous day's activity to a different webmaster (basically just a power user) every day after midnight.
This…
Bratchley
- 16,684
- 13
- 64
- 103
4
votes
3 answers
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 .
[ywatanabe@host2 ~]$ cat /proc/cpuinfo | grep…
Yu Watanabe
- 175
- 1
- 1
- 7
4
votes
1 answer
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-r--r--. 1 root root 123796 22 janv. 23:50…
Pozinux
- 1,305
- 5
- 16
- 27
3
votes
1 answer
Send sar series to grafana
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) is whether it is possible to send these…
pkaramol
- 2,587
- 4
- 36
- 71
3
votes
2 answers
How can average run queue length be 1 but load average is almost zero
(I originally posted this on Stack Overflow - advised to move it to here).
On fedora 17 when i run the sar command to view the load average activity it almost always shows a run queue length of 1 even though the system is idle and the load averages…
user3665821
- 39
- 1
- 3
2
votes
1 answer
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 hours
55 5,11,17,23 * * * root [ -x /usr/lib64/sa/sa2 ]…
guettli
- 1,309
- 3
- 22
- 40
2
votes
2 answers
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
Problems
The length of sar -r and lets say sar -u might be…
murloc
- 55
- 1
- 9
2
votes
1 answer
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/sysstat where it has it's SA_DIR specified. In my case…
Bruno Bieri
- 145
- 9
2
votes
0 answers
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 considering the time interval in case of sar command…
2
votes
1 answer
Understand sar command output Unix
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 so that i can identify the utilization and…
Developer
- 237
- 1
- 3
- 13
2
votes
1 answer
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 waits till the full 50 seconds (5 sec samples, 10 of…
JacobN
- 123
- 5
2
votes
1 answer
How can I find the CPU resource utilization of a process and all its children
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 available, or perhaps some info in /proc?
Target OS…
Travis Bear
- 123
- 1
- 4