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.

65 questions
1
vote
0 answers

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,$15}' and awk 'NR > 1 {OFS="\t"; print $13,$14,$15}'…
Rory
  • 11
  • 2
1
vote
0 answers

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 the paging statistics and -W gives me the swapping…
Mark
  • 119
  • 6
1
vote
1 answer

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 0.54 0.50 09:10:01 PM 2 201 …
Unnikrishnan
  • 109
  • 4
1
vote
1 answer

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 rapid increase in the number of processes. I…
spoovy
  • 354
  • 4
  • 15
1
vote
2 answers

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 sa25 sa27 sa29 sa31 sar21…
夏期劇場
  • 455
  • 2
  • 6
  • 19
1
vote
2 answers

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)
kapad
  • 113
  • 6
1
vote
1 answer

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 of file descriptors in use by a process with lsof…
Will Glass
  • 927
  • 2
  • 12
  • 21
1
vote
1 answer

High mysql server load, sar output

I have a MySQL Server that should be performing better than it seems to be. We're running ubuntu on a Amazon Cluster Compute (cc1.4xlarge) Linux ip-10-0-1-60 3.2.0-25-virtual #40-Ubuntu SMP Wed May 23 22:20:17 UTC 2012 x86_64 x86_64 x86_64…
eric
  • 111
  • 4
1
vote
1 answer

top command indicates a different cpu usage than sar command

In my CentOS server, when I check the resources with sar command, user cpu usage is around %15 while in top command the sole 'java' process uses like %99 of cpu. sometimes it's even goes further than %100! who's lying here?
SJ.Jafari
  • 204
  • 1
  • 4
  • 8
1
vote
1 answer

sar high memory commit %

I've noticed that there's a high percentage of memory committed on this server during a specific timeframe. Although, memory usage still looks fine overall from sar output. I don't see 'out of memory' messages, or anything out of the ordinary in…
1
vote
1 answer

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 multiple samples and multiple reports are desired, it is…
Michael Altfield
  • 739
  • 2
  • 8
  • 23
0
votes
1 answer

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 available in file /var/log/sa/sa1
shalom
  • 461
  • 13
  • 29
0
votes
0 answers

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 but I cant make sense of it. This is the…
cdiehl
  • 46
  • 4
0
votes
0 answers

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 reached 10 and the CPU was only 10% us and 5% sys.…
Elad Eldor
  • 61
  • 3
0
votes
1 answer

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 this value from the stats found under…
user2761431
  • 101
  • 3