]> granicus.if.org Git - sysstat/blob - man/sar.in
Added CPU average clock frequency statistics to sar and sadc.
[sysstat] / man / sar.in
1 .TH SAR 1 "OCTOBER 2010" Linux "Linux User's Manual" -*- nroff -*-
2 .SH NAME
3 sar \- Collect, report, or save system activity information.
4 .SH SYNOPSIS
5 .B sar [ -A ] [ -b ] [ -B ] [ -C ] [ -d ] [ -h ] [ -H ] [ -i
6 .I interval
7 .B ] [ -p ] [ -q ] [ -r ] [ -R ] [ -S ] [ -t ] [ -u [ ALL ] ]
8 [ -v ] [ -V ] [ -w ] [ -W ] [ -y ]
9 .B [ -m {
10 .I keyword
11 .B [,...] | ALL } ]
12 .B [ -n {
13 .I keyword
14 .B [,...] | ALL } ]
15 .B [ -I {
16 .I int
17 .B [,...] | SUM | ALL | XALL } ] [ -P {
18 .I cpu
19 .B [,...] | ALL } ] [ -o [
20 .I filename
21 .B ] | -f [
22 .I filename
23 .B ] ] [ -s [
24 .I hh:mm:ss
25 .B ] ] [ -e [
26 .I hh:mm:ss
27 .B ] ] [
28 .I interval
29 .B [
30 .I count
31 .B ] ]
32 .SH DESCRIPTION
33 The
34 .B sar
35 command writes to standard output the contents of selected
36 cumulative activity counters in the operating system. The accounting
37 system, based on the values in the
38 .I count
39 and
40 .I interval
41 parameters, writes information the specified number of times spaced
42 at the specified intervals in seconds.
43 If the
44 .I interval
45 parameter is set to zero, the
46 .B sar
47 command displays the average statistics for the time
48 since the system was started. If the
49 .I interval
50 parameter is specified without the
51 .I count
52 parameter, then reports are generated continuously.
53 The collected data can also
54 be saved in the file specified by the
55 .B -o
56 .I filename
57 flag, in addition to being displayed onto the screen. If
58 .I filename
59 is omitted, sar uses the standard system activity daily data file,
60 the
61 .IR @SA_DIR@/sa dd
62 file, where the dd parameter indicates the current day.
63 By default all the data available from the kernel are saved in the
64 data file.
65
66 The
67 .B sar
68 command extracts and writes to standard output records previously
69 saved in a file. This file can be either the one specified by the
70 .B -f
71 flag or, by default, the standard system activity daily data file.
72
73 Without the
74 .B -P
75 flag, the
76 .B sar
77 command reports system-wide (global among all processors) statistics,
78 which are calculated as averages for values expressed as percentages,
79 and as sums otherwise. If the
80 .B -P
81 flag is given, the
82 .B sar
83 command reports activity which relates to the specified processor or
84 processors. If
85 .B -P ALL
86 is given, the
87 .B sar
88 command reports statistics for each individual processor and global
89 statistics among all processors.
90
91 You can select information about specific system activities using
92 flags. Not specifying any flags selects only CPU activity.
93 Specifying the
94 .B -A
95 flag is equivalent to specifying
96 .BR "-bBdqrRSvwWy -I SUM -I XALL -n ALL -u ALL -P ALL".
97
98 The default version of the
99 .B sar
100 command (CPU utilization report) might be one of the first facilities
101 the user runs to begin system activity investigation, because it
102 monitors major system resources. If CPU utilization is near 100 percent
103 (user + nice + system), the workload sampled is CPU-bound.
104
105 If multiple samples and multiple reports are desired, it is convenient
106 to specify an output file for the
107 .B sar
108 command. 
109 Run the
110 .B sar
111 command as a background process. The syntax for this is:
112
113 .B sar -o datafile interval count >/dev/null 2>&1 &
114
115 All data are captured in binary form and saved to a file (datafile).
116 The data can then be selectively displayed with the
117 .B sar
118 command using the
119 .B -f
120 option. Set the
121 .I interval
122 and
123 .I count
124 parameters to select
125 .I count
126 records at
127 .I interval
128 second intervals. If the
129 .I count
130 parameter is not set, all the records saved in the
131 file will be selected.
132 Collection of data in this manner is useful to characterize
133 system usage over a period of time and determine peak usage hours.
134
135 Note:   The
136 .B sar
137 command only reports on local activities.
138
139 .SH OPTIONS
140 .IP -A
141 This is equivalent to specifying
142 .BR "-bBdHqrRSuvwWy -I SUM -I XALL -m ALL -n ALL -u ALL -P ALL".
143 .IP -b
144 Report I/O and transfer rate statistics.
145 The following values are displayed:
146
147 .B tps
148 .RS
149 .RS
150 Total number of transfers per second that were issued to physical devices.
151 A transfer is an I/O request to a physical device. Multiple logical
152 requests can be combined into a single I/O request to the device.
153 A transfer is of indeterminate size.
154 .RE
155
156 .B rtps
157 .RS
158 Total number of read requests per second issued to physical devices.
159 .RE
160
161 .B wtps
162 .RS
163 Total number of write requests per second issued to physical devices.
164 .RE
165
166 .B bread/s
167 .RS
168 Total amount of data read from the devices in blocks per second.
169 Blocks are equivalent to sectors
170 and therefore have a size of 512 bytes.
171 .RE
172
173 .B bwrtn/s
174 .RS
175 Total amount of data written to devices in blocks per second.
176 .RE
177 .RE
178 .IP -B
179 Report paging statistics.
180 The following values are displayed:
181
182 .B pgpgin/s
183 .RS
184 .RS
185 Total number of kilobytes the system paged in from disk per second.
186 .RE
187
188 .B pgpgout/s
189 .RS
190 Total number of kilobytes the system paged out to disk per second.
191 .RE
192
193 .B fault/s
194 .RS
195 Number of page faults (major + minor) made by the system per second.
196 This is not a count of page faults that generate I/O, because some page
197 faults can be resolved without I/O.
198 .RE
199
200 .B majflt/s
201 .RS
202 Number of major faults the system has made per second, those which
203 have required loading a memory page from disk.
204 .RE
205
206 .B pgfree/s
207 .RS
208 Number of pages placed on the free list by the system per second.
209 .RE
210
211 .B pgscank/s
212 .RS
213 Number of pages scanned by the kswapd daemon per second.
214 .RE
215
216 .B pgscand/s
217 .RS
218 Number of pages scanned directly per second.
219 .RE
220
221 .B pgsteal/s
222 .RS
223 Number of pages the system has reclaimed from cache (pagecache and
224 swapcache) per second to satisfy its memory demands.
225 .RE
226
227 .B %vmeff
228 .RS
229 Calculated as pgsteal / pgscan, this is a metric of the efficiency of
230 page reclaim. If it is near 100% then almost every page coming off the
231 tail of the inactive list is being reaped. If it gets too low (e.g. less
232 than 30%) then the virtual memory is having some difficulty.
233 This field is displayed as zero if no pages have been scanned during the
234 interval of time.
235 .RE
236 .RE
237 .IP -C
238 When reading data from a file, tell
239 .B sar
240 to display comments that have been inserted by
241 .BR sadc .
242 .IP -d
243 Report activity for each block device.
244 When data are displayed, the device specification
245 .I dev m-n
246 is generally used (
247 .B DEV
248 column).
249 .B m
250 is the major number of the device and
251 .B n
252 its minor number.
253 Device names may also be pretty-printed if option -p
254 is used (see below).
255 Note that disk activity depends on sadc options "-S DISK" and "-S XDISK"
256 to be collected. The following values are displayed:
257
258 .B tps
259 .RS
260 .RS
261 Indicate the number of transfers per second that were issued to the device.
262 Multiple logical requests can be combined into a single I/O request to the
263 device. A transfer is of indeterminate size.
264 .RE
265
266 .B rd_sec/s
267 .RS
268 Number of sectors read from the device. The size of a sector is 512 bytes.
269 .RE
270
271 .B wr_sec/s
272 .RS
273 Number of sectors written to the device. The size of a sector is 512 bytes.
274 .RE
275
276 .B avgrq-sz
277 .RS
278 The average size (in sectors) of the requests that were issued to the device.
279 .RE
280
281 .B avgqu-sz
282 .RS
283 The average queue length of the requests that were issued to the device.
284 .RE
285
286 .B await
287 .RS
288 The average time (in milliseconds) for I/O requests issued to the device
289 to be served. This includes the time spent by the requests in queue and
290 the time spent servicing them.
291 .RE
292
293 .B svctm
294 .RS
295 The average service time (in milliseconds) for I/O requests that were issued
296 to the device. Warning! Do not trust this field any more. This field will be
297 removed in a future sysstat version.
298 .RE
299
300 .B %util
301 .RS
302 Percentage of CPU time during which I/O requests were issued to the device
303 (bandwidth utilization for the device). Device saturation occurs when this
304 value is close to 100%.
305 .RE
306 .RE
307 .IP "-e [ hh:mm:ss ]"
308 Set the ending time of the report. The default ending time is
309 18:00:00. Hours must be given in 24-hour format.
310 This option can be used when data are read from
311 or written to a file (options
312 .B -f
313 or
314 .B -o
315 ).
316 .IP "-f [ filename ]"
317 Extract records from
318 .I filename
319 (created by the
320 .B -o filename
321 flag). The default value of the
322 .B filename
323 parameter is the current daily data file, the
324 .IR @SA_DIR@/sa dd
325 file. The -f option is exclusive of the -o option.
326 .IP -h
327 Display a short help message then exit.
328 .IP -H
329 Report hugepages utilization statistics.
330 The following values are displayed:
331
332 .B kbhugfree
333 .RS
334 .RS
335 Amount of hugepages memory in kilobytes that is not yet allocated.
336 .RE
337
338 .B kbhugused
339 .RS
340 Amount of hugepages memory in kilobytes that has been allocated.
341 .RE
342
343 .B %hugused
344 .RS
345 Percentage of total hugepages memory that has been allocated.
346 .RE
347 .RE
348 .IP "-i interval"
349 Select data records at seconds as close as possible to the number specified
350 by the
351 .I interval
352 parameter.
353 .IP "-I { int [,...] | SUM | ALL | XALL }"
354 Report statistics for a given interrupt.
355 .B int
356 is the interrupt number. Specifying multiple
357 .B -I int
358 parameters on the command line will look at multiple independent interrupts.
359 The
360 .B SUM
361 keyword indicates that the total number of interrupts received per second
362 is to be displayed. The
363 .B ALL
364 keyword indicates that statistics from
365 the first 16 interrupts are to be reported, whereas the
366 .B XALL
367 keyword indicates that statistics from all interrupts, including potential
368 APIC interrupt sources, are to be reported.
369 Note that interrupt statistics depend on sadc option "-S INT" to be collected.
370 .IP "-m { keyword [,...] | ALL }"
371 Report power management statistics.
372 Note that these statistics depend on sadc option "-S POWER" to be collected.
373
374 Possible keywords are
375 .BR CPU ,
376 .BR FAN ,
377 .BR FREQ ,
378 .BR IN
379 and
380 .BR TEMP .
381
382 With the
383 .B CPU
384 keyword, statistics about CPU are reported.
385 The following value is displayed:
386
387 .B MHz
388 .RS
389 .RS
390 Instantaneous CPU clock frequency in MHz.
391 .RE
392
393 With the
394 .B FAN
395 keyword, statistics about fans speed are reported.
396 The following values are displayed:
397
398 .B rpm
399 .RS
400 Fan speed expressed in revolutions per minute.
401 .RE
402
403 .B drpm
404 .RS
405 This field is calculated as the difference between current fan speed (rpm)
406 and its low limit (fan_min).
407 .RE
408
409 .B DEVICE
410 .RS
411 Sensor device name.
412 .RE
413
414 With the
415 .B FREQ
416 keyword, statistics about CPU clock frequency are reported.
417 The following value is displayed:
418
419 .B wghMHz
420 .RS
421 Weighted average CPU clock frequency in MHz.
422 Note that the cpufreq-stats driver must be compiled in the
423 kernel for this option to work.
424 .RE
425
426 With the
427 .B IN
428 keyword, statistics about voltage inputs are reported.
429 The following values are displayed:
430
431 .B inV
432 .RS
433 Voltage input expressed in Volts.
434 .RE
435
436 .B %in
437 .RS
438 Relative input value. A value of 100% means that
439 voltage input has reached its high limit (in_max) whereas
440 a value of 0% means that it has reached its low limit (in_min).
441 .RE
442
443 .B DEVICE
444 .RS
445 Sensor device name.
446 .RE
447
448 With the
449 .B TEMP
450 keyword, statistics about devices temperature are reported.
451 The following values are displayed:
452
453 .B degC
454 .RS
455 Device temperature expressed in degrees Celsius.
456 .RE
457
458 .B %temp
459 .RS
460 Relative device temperature. A value of 100% means that
461 temperature has reached its high limit (temp_max).
462 .RE
463
464 .B DEVICE
465 .RS
466 Sensor device name.
467 .RE
468 .RE
469 .IP "-n { keyword [,...] | ALL }"
470 Report network statistics.
471
472 Possible keywords are
473 .BR DEV ,
474 .BR EDEV ,
475 .BR NFS ,
476 .BR NFSD ,
477 .BR SOCK ,
478 .BR IP ,
479 .BR EIP ,
480 .BR ICMP ,
481 .BR EICMP ,
482 .BR TCP ,
483 .BR ETCP ,
484 .BR UDP ,
485 .BR SOCK6 ,
486 .BR IP6 ,
487 .BR EIP6 ,
488 .BR ICMP6 ,
489 .BR EICMP6
490 and
491 .BR UDP6 .
492
493 With the
494 .B DEV
495 keyword, statistics from the network devices are reported.
496 The following values are displayed:
497
498 .B IFACE
499 .RS
500 .RS
501 Name of the network interface for which statistics are reported.
502 .RE
503
504 .B rxpck/s
505 .RS
506 Total number of packets received per second.
507 .RE
508
509 .B txpck/s
510 .RS
511 Total number of packets transmitted per second.
512 .RE
513
514 .B rxkB/s
515 .RS
516 Total number of kilobytes received per second.
517 .RE
518
519 .B txkB/s
520 .RS
521 Total number of kilobytes transmitted per second.
522 .RE
523
524 .B rxcmp/s
525 .RS
526 Number of compressed packets received per second (for cslip etc.).
527 .RE
528
529 .B txcmp/s
530 .RS
531 Number of compressed packets transmitted per second.
532 .RE
533
534 .B rxmcst/s
535 .RS
536 Number of multicast packets received per second.
537 .RE
538
539 With the
540 .B EDEV
541 keyword, statistics on failures (errors) from the network devices are reported.
542 The following values are displayed:
543
544 .B IFACE
545 .RS
546 Name of the network interface for which statistics are reported.
547 .RE
548
549 .B rxerr/s
550 .RS
551 Total number of bad packets received per second.
552 .RE
553
554 .B txerr/s
555 .RS
556 Total number of errors that happened per second while transmitting packets.
557 .RE
558
559 .B coll/s
560 .RS
561 Number of collisions that happened per second while transmitting packets.
562 .RE
563
564 .B rxdrop/s
565 .RS
566 Number of received packets dropped per second because of a lack of space in linux buffers.
567 .RE
568
569 .B txdrop/s
570 .RS
571 Number of transmitted packets dropped per second because of a lack of space in linux buffers.
572 .RE
573
574 .B txcarr/s
575 .RS
576 Number of carrier-errors that happened per second while transmitting packets.
577 .RE
578
579 .B rxfram/s
580 .RS
581 Number of frame alignment errors that happened per second on received packets.
582 .RE
583
584 .B rxfifo/s
585 .RS
586 Number of FIFO overrun errors that happened per second on received packets.
587 .RE
588
589 .B txfifo/s
590 .RS
591 Number of FIFO overrun errors that happened per second on transmitted packets.
592 .RE
593
594 With the
595 .B NFS
596 keyword, statistics about NFS client activity are reported.
597 The following values are displayed:
598
599 .B call/s
600 .RS
601 Number of RPC requests made per second.
602 .RE
603
604 .B retrans/s
605 .RS
606 Number of RPC requests per second, those which needed to be retransmitted (for
607 example because of a server timeout).
608 .RE
609
610 .B read/s
611 .RS
612 Number of 'read' RPC calls made per second.
613 .RE
614
615 .B write/s
616 .RS
617 Number of 'write' RPC calls made per second.
618 .RE
619
620 .B access/s
621 .RS
622 Number of 'access' RPC calls made per second.
623 .RE
624
625 .B getatt/s
626 .RS
627 Number of 'getattr' RPC calls made per second.
628 .RE
629
630 With the
631 .B NFSD
632 keyword, statistics about NFS server activity are reported.
633 The following values are displayed:
634
635 .B scall/s
636 .RS
637 Number of RPC requests received per second.
638 .RE
639
640 .B badcall/s
641 .RS
642 Number of bad RPC requests received per second, those whose
643 processing generated an error.
644 .RE
645
646 .B packet/s
647 .RS
648 Number of network packets received per second.
649 .RE
650
651 .B udp/s
652 .RS
653 Number of UDP packets received per second.
654 .RE
655
656 .B tcp/s
657 .RS
658 Number of TCP packets received per second.
659 .RE
660
661 .B hit/s
662 .RS
663 Number of reply cache hits per second.
664 .RE
665
666 .B miss/s
667 .RS
668 Number of reply cache misses per second.
669 .RE
670
671 .B sread/s
672 .RS
673 Number of 'read' RPC calls received per second.
674 .RE
675
676 .B swrite/s
677 .RS
678 Number of 'write' RPC calls received per second.
679 .RE
680
681 .B saccess/s
682 .RS
683 Number of 'access' RPC calls received per second.
684 .RE
685
686 .B sgetatt/s
687 .RS
688 Number of 'getattr' RPC calls received per second.
689 .RE
690
691 With the
692 .B SOCK
693 keyword, statistics on sockets in use are reported
694 (IPv4).
695 The following values are displayed:
696
697 .B totsck
698 .RS
699 Total number of sockets used by the system.
700 .RE
701
702 .B tcpsck
703 .RS
704 Number of TCP sockets currently in use.
705 .RE
706
707 .B udpsck
708 .RS
709 Number of UDP sockets currently in use.
710 .RE
711
712 .B rawsck
713 .RS
714 Number of RAW sockets currently in use.
715 .RE
716
717 .B ip-frag
718 .RS
719 Number of IP fragments currently in use.
720 .RE
721
722 .B tcp-tw
723 .RS
724 Number of TCP sockets in TIME_WAIT state.
725 .RE
726
727 With the
728 .B IP
729 keyword, statistics about IPv4 network traffic are reported.
730 Note that IPv4 statistics depend on sadc option "-S SNMP" to be
731 collected.
732 The following values are displayed (formal SNMP names between
733 square brackets):
734
735 .B irec/s
736 .RS
737 The total number of input datagrams received from interfaces
738 per second, including those received in error [ipInReceives].
739 .RE
740
741 .B fwddgm/s
742 .RS
743 The number of input datagrams per second, for which this entity was not
744 their final IP destination, as a result of which an attempt
745 was made to find a route to forward them to that final
746 destination [ipForwDatagrams].
747 .RE
748
749 .B idel/s
750 .RS
751 The total number of input datagrams successfully delivered per second
752 to IP user-protocols (including ICMP) [ipInDelivers].
753 .RE
754
755 .B orq/s
756 .RS
757 The total number of IP datagrams which local IP user-protocols (including ICMP)
758 supplied per second to IP in requests for transmission [ipOutRequests].
759 Note that this counter does not include any datagrams counted in fwddgm/s.
760 .RE
761
762 .B asmrq/s
763 .RS
764 The number of IP fragments received per second which needed to be
765 reassembled at this entity [ipReasmReqds].
766 .RE
767
768 .B asmok/s
769 .RS
770 The number of IP datagrams successfully re-assembled per second [ipReasmOKs].
771 .RE
772
773 .B fragok/s
774 .RS
775 The number of IP datagrams that have been successfully
776 fragmented at this entity per second [ipFragOKs].
777 .RE
778
779 .B fragcrt/s
780 .RS
781 The number of IP datagram fragments that have been
782 generated per second as a result of fragmentation at this entity [ipFragCreates].
783 .RE
784
785 With the
786 .B EIP
787 keyword, statistics about IPv4 network errors are reported.
788 Note that IPv4 statistics depend on sadc option "-S SNMP" to be
789 collected.
790 The following values are displayed (formal SNMP names between
791 square brackets):
792
793 .B ihdrerr/s
794 .RS
795 The number of input datagrams discarded per second due to errors in
796 their IP headers, including bad checksums, version number
797 mismatch, other format errors, time-to-live exceeded, errors
798 discovered in processing their IP options, etc. [ipInHdrErrors]
799 .RE
800
801 .B iadrerr/s
802 .RS
803 The number of input datagrams discarded per second because the IP
804 address in their IP header's destination field was not a
805 valid address to be received at this entity. This count
806 includes invalid addresses (e.g., 0.0.0.0) and addresses of
807 unsupported Classes (e.g., Class E). For entities which are
808 not IP routers and therefore do not forward datagrams, this
809 counter includes datagrams discarded because the destination
810 address was not a local address [ipInAddrErrors].
811 .RE
812
813 .B iukwnpr/s
814 .RS
815 The number of locally-addressed datagrams received
816 successfully but discarded per second because of an unknown or
817 unsupported protocol [ipInUnknownProtos].
818 .RE
819
820 .B idisc/s
821 .RS
822 The number of input IP datagrams per second for which no problems were
823 encountered to prevent their continued processing, but which
824 were discarded (e.g., for lack of buffer space) [ipInDiscards].
825 Note that this counter does not include any datagrams discarded while
826 awaiting re-assembly.
827 .RE
828
829 .B odisc/s
830 .RS
831 The number of output IP datagrams per second for which no problem was
832 encountered to prevent their transmission to their
833 destination, but which were discarded (e.g., for lack of
834 buffer space) [ipOutDiscards].
835 Note that this counter would include
836 datagrams counted in fwddgm/s if any such packets met
837 this (discretionary) discard criterion.
838 .RE
839
840 .B onort/s
841 .RS
842 The number of IP datagrams discarded per second because no route could
843 be found to transmit them to their destination [ipOutNoRoutes].
844 Note that this counter includes any packets counted in fwddgm/s
845 which meet this 'no-route' criterion.
846 Note that this includes any datagrams which a host cannot route because all
847 of its default routers are down.
848 .RE
849
850 .B asmf/s
851 .RS
852 The number of failures detected per second by the IP re-assembly
853 algorithm (for whatever reason: timed out, errors, etc) [ipReasmFails].
854 Note that this is not necessarily a count of discarded IP
855 fragments since some algorithms can lose track of the number of
856 fragments by combining them as they are received.
857 .RE
858
859 .B fragf/s
860 .RS
861 The number of IP datagrams that have been discarded per second because
862 they needed to be fragmented at this entity but could not
863 be, e.g., because their Don't Fragment flag was set [ipFragFails].
864 .RE
865
866 With the
867 .B ICMP
868 keyword, statistics about ICMPv4 network traffic are reported.
869 Note that ICMPv4 statistics depend on sadc option "-S SNMP" to be
870 collected.
871 The following values are displayed (formal SNMP names between
872 square brackets):
873
874 .B imsg/s
875 .RS
876 The total number of ICMP messages which the entity
877 received per second [icmpInMsgs].
878 Note that this counter includes all those counted by ierr/s.
879 .RE
880
881 .B omsg/s
882 .RS
883 The total number of ICMP messages which this entity
884 attempted to send per second [icmpOutMsgs].
885 Note that this counter includes all those counted by oerr/s.
886 .RE
887
888 .B iech/s
889 .RS
890 The number of ICMP Echo (request) messages received per second [icmpInEchos].
891 .RE
892
893 .B iechr/s
894 .RS
895 The number of ICMP Echo Reply messages received per second [icmpInEchoReps].
896 .RE
897
898 .B oech/s
899 .RS
900 The number of ICMP Echo (request) messages sent per second [icmpOutEchos].
901 .RE
902
903 .B oechr/s
904 .RS
905 The number of ICMP Echo Reply messages sent per second [icmpOutEchoReps].
906 .RE
907
908 .B itm/s
909 .RS
910 The number of ICMP Timestamp (request) messages received per second [icmpInTimestamps].
911 .RE
912
913 .B itmr/s
914 .RS
915 The number of ICMP Timestamp Reply messages received per second [icmpInTimestampReps].
916 .RE
917
918 .B otm/s
919 .RS
920 The number of ICMP Timestamp (request) messages sent per second [icmpOutTimestamps].
921 .RE
922
923 .B otmr/s
924 .RS
925 The number of ICMP Timestamp Reply messages sent per second [icmpOutTimestampReps].
926 .RE
927
928 .B iadrmk/s
929 .RS
930 The number of ICMP Address Mask Request messages received per second [icmpInAddrMasks].
931 .RE
932
933 .B iadrmkr/s
934 .RS
935 The number of ICMP Address Mask Reply messages received per second [icmpInAddrMaskReps].
936 .RE
937
938 .B oadrmk/s
939 .RS
940 The number of ICMP Address Mask Request messages sent per second [icmpOutAddrMasks].
941 .RE
942
943 .B oadrmkr/s
944 .RS
945 The number of ICMP Address Mask Reply messages sent per second [icmpOutAddrMaskReps].
946 .RE
947
948 With the
949 .B EICMP
950 keyword, statistics about ICMPv4 error messages are reported.
951 Note that ICMPv4 statistics depend on sadc option "-S SNMP" to be
952 collected.
953 The following values are displayed (formal SNMP names between
954 square brackets):
955
956 .B ierr/s
957 .RS
958 The number of ICMP messages per second which the entity received but
959 determined as having ICMP-specific errors (bad ICMP
960 checksums, bad length, etc.) [icmpInErrors].
961 .RE
962
963 .B oerr/s
964 .RS
965 The number of ICMP messages per second which this entity did not send
966 due to problems discovered within ICMP such as a lack of buffers [icmpOutErrors].
967 .RE
968
969 .B idstunr/s
970 .RS
971 The number of ICMP Destination Unreachable messages
972 received per second [icmpInDestUnreachs].
973 .RE
974
975 .B odstunr/s
976 .RS
977 The number of ICMP Destination Unreachable messages sent per second [icmpOutDestUnreachs].
978 .RE
979
980 .B itmex/s
981 .RS
982 The number of ICMP Time Exceeded messages received per second [icmpInTimeExcds].
983 .RE
984
985 .B otmex/s
986 .RS
987 The number of ICMP Time Exceeded messages sent per second [icmpOutTimeExcds].
988 .RE
989
990 .B iparmpb/s
991 .RS
992 The number of ICMP Parameter Problem messages received per second [icmpInParmProbs].
993 .RE
994
995 .B oparmpb/s
996 .RS
997 The number of ICMP Parameter Problem messages sent per second [icmpOutParmProbs].
998 .RE
999
1000 .B isrcq/s
1001 .RS
1002 The number of ICMP Source Quench messages received per second [icmpInSrcQuenchs].
1003 .RE
1004
1005 .B osrcq/s
1006 .RS
1007 The number of ICMP Source Quench messages sent per second [icmpOutSrcQuenchs].
1008 .RE
1009
1010 .B iredir/s
1011 .RS
1012 The number of ICMP Redirect messages received per second [icmpInRedirects].
1013 .RE
1014
1015 .B oredir/s
1016 .RS
1017 The number of ICMP Redirect messages sent per second [icmpOutRedirects].
1018 .RE
1019
1020 With the
1021 .B TCP
1022 keyword, statistics about TCPv4 network traffic are reported.
1023 Note that TCPv4 statistics depend on sadc option "-S SNMP" to be
1024 collected.
1025 The following values are displayed (formal SNMP names between
1026 square brackets):
1027
1028 .B active/s
1029 .RS
1030 The number of times TCP connections have made a direct
1031 transition to the SYN-SENT state from the CLOSED state per second [tcpActiveOpens].
1032 .RE
1033
1034 .B passive/s
1035 .RS
1036 The number of times TCP connections have made a direct
1037 transition to the SYN-RCVD state from the LISTEN state per second [tcpPassiveOpens].
1038 .RE
1039
1040 .B iseg/s
1041 .RS
1042 The total number of segments received per second, including those
1043 received in error [tcpInSegs].  This count includes segments received on
1044 currently established connections.
1045 .RE
1046
1047 .B oseg/s
1048 .RS
1049 The total number of segments sent per second, including those on
1050 current connections but excluding those containing only
1051 retransmitted octets [tcpOutSegs].
1052 .RE
1053
1054 With the
1055 .B ETCP
1056 keyword, statistics about TCPv4 network errors are reported.
1057 Note that TCPv4 statistics depend on sadc option "-S SNMP" to be
1058 collected.
1059 The following values are displayed (formal SNMP names between
1060 square brackets):
1061
1062 .B atmptf/s
1063 .RS
1064 The number of times per second TCP connections have made a direct
1065 transition to the CLOSED state from either the SYN-SENT
1066 state or the SYN-RCVD state, plus the number of times per second TCP
1067 connections have made a direct transition to the LISTEN
1068 state from the SYN-RCVD state [tcpAttemptFails].
1069 .RE
1070
1071 .B estres/s
1072 .RS
1073 The number of times per second TCP connections have made a direct
1074 transition to the CLOSED state from either the ESTABLISHED
1075 state or the CLOSE-WAIT state [tcpEstabResets].
1076 .RE
1077
1078 .B retrans/s
1079 .RS
1080 The total number of segments retransmitted per second - that is, the
1081 number of TCP segments transmitted containing one or more
1082 previously transmitted octets [tcpRetransSegs].
1083 .RE
1084
1085 .B isegerr/s
1086 .RS
1087 The total number of segments received in error (e.g., bad
1088 TCP checksums) per second [tcpInErrs].
1089 .RE
1090
1091 .B orsts/s
1092 .RS
1093 The number of TCP segments sent per second containing the RST flag [tcpOutRsts].
1094 .RE
1095
1096 With the
1097 .B UDP
1098 keyword, statistics about UDPv4 network traffic are reported.
1099 Note that UDPv4 statistics depend on sadc option "-S SNMP" to be
1100 collected.
1101 The following values are displayed (formal SNMP names between
1102 square brackets):
1103
1104 .B idgm/s
1105 .RS
1106 The total number of UDP datagrams delivered per second to UDP users [udpInDatagrams].
1107 .RE
1108
1109 .B odgm/s
1110 .RS
1111 The total number of UDP datagrams sent per second from this entity [udpOutDatagrams].
1112 .RE
1113
1114 .B noport/s
1115 .RS
1116 The total number of received UDP datagrams per second for which there
1117 was no application at the destination port [udpNoPorts].
1118 .RE
1119
1120 .B idgmerr/s
1121 .RS
1122 The number of received UDP datagrams per second that could not be
1123 delivered for reasons other than the lack of an application
1124 at the destination port [udpInErrors].
1125 .RE
1126
1127 With the
1128 .B SOCK6
1129 keyword, statistics on sockets in use are reported (IPv6).
1130 Note that IPv6 statistics depend on sadc option "-S IPV6" to be
1131 collected.
1132 The following values are displayed:
1133
1134 .B tcp6sck
1135 .RS
1136 Number of TCPv6 sockets currently in use.
1137 .RE
1138
1139 .B udp6sck
1140 .RS
1141 Number of UDPv6 sockets currently in use.
1142 .RE
1143
1144 .B raw6sck
1145 .RS
1146 Number of RAWv6 sockets currently in use.
1147 .RE
1148
1149 .B ip6-frag
1150 .RS
1151 Number of IPv6 fragments currently in use.
1152 .RE
1153
1154 With the
1155 .B IP6
1156 keyword, statistics about IPv6 network traffic are reported.
1157 Note that IPv6 statistics depend on sadc option "-S IPV6" to be
1158 collected.
1159 The following values are displayed (formal SNMP names between
1160 square brackets):
1161
1162 .B irec6/s
1163 .RS
1164 The total number of input datagrams received from
1165 interfaces per second, including those received in error
1166 [ipv6IfStatsInReceives].
1167 .RE
1168
1169 .B fwddgm6/s
1170 .RS
1171 The number of output datagrams per second which this
1172 entity received and forwarded to their final
1173 destinations [ipv6IfStatsOutForwDatagrams].
1174 .RE
1175
1176 .B idel6/s
1177 .RS
1178 The total number of datagrams successfully
1179 delivered per second to IPv6 user-protocols (including ICMP)
1180 [ipv6IfStatsInDelivers].
1181 .RE
1182
1183 .B orq6/s
1184 .RS
1185 The total number of IPv6 datagrams which local IPv6
1186 user-protocols (including ICMP) supplied per second to IPv6 in
1187 requests for transmission [ipv6IfStatsOutRequests].
1188 Note that this counter
1189 does not include any datagrams counted in fwddgm6/s.
1190 .RE
1191
1192 .B asmrq6/s
1193 .RS
1194 The number of IPv6 fragments received per second which needed
1195 to be reassembled at this interface [ipv6IfStatsReasmReqds].
1196 .RE
1197
1198 .B asmok6/s
1199 .RS
1200 The number of IPv6 datagrams successfully
1201 reassembled per second [ipv6IfStatsReasmOKs].
1202 .RE
1203
1204 .B imcpck6/s
1205 .RS
1206 The number of multicast packets received per second
1207 by the interface [ipv6IfStatsInMcastPkts].
1208 .RE
1209
1210 .B omcpck6/s
1211 .RS
1212 The number of multicast packets transmitted per second
1213 by the interface [ipv6IfStatsOutMcastPkts].
1214 .RE
1215
1216 .B fragok6/s
1217 .RS
1218 The number of IPv6 datagrams that have been
1219 successfully fragmented at this output interface per second
1220 [ipv6IfStatsOutFragOKs].
1221 .RE
1222
1223 .B fragcr6/s
1224 .RS
1225 The number of output datagram fragments that have
1226 been generated per second as a result of fragmentation at
1227 this output interface [ipv6IfStatsOutFragCreates].
1228 .RE
1229
1230 With the
1231 .B EIP6
1232 keyword, statistics about IPv6 network errors are reported.
1233 Note that IPv6 statistics depend on sadc option "-S IPV6" to be
1234 collected.
1235 The following values are displayed (formal SNMP names between
1236 square brackets):
1237
1238 .B ihdrer6/s
1239 .RS
1240 The number of input datagrams discarded per second due to
1241 errors in their IPv6 headers, including version
1242 number mismatch, other format errors, hop count
1243 exceeded, errors discovered in processing their
1244 IPv6 options, etc. [ipv6IfStatsInHdrErrors]
1245 .RE
1246
1247 .B iadrer6/s
1248 .RS
1249 The number of input datagrams discarded per second because
1250 the IPv6 address in their IPv6 header's destination
1251 field was not a valid address to be received at
1252 this entity. This count includes invalid
1253 addresses (e.g., ::0) and unsupported addresses
1254 (e.g., addresses with unallocated prefixes). For
1255 entities which are not IPv6 routers and therefore
1256 do not forward datagrams, this counter includes
1257 datagrams discarded because the destination address
1258 was not a local address [ipv6IfStatsInAddrErrors].
1259 .RE
1260
1261 .B iukwnp6/s
1262 .RS
1263 The number of locally-addressed datagrams
1264 received successfully but discarded per second because of an
1265 unknown or unsupported protocol [ipv6IfStatsInUnknownProtos].
1266 .RE
1267
1268 .B i2big6/s
1269 .RS
1270 The number of input datagrams that could not be
1271 forwarded per second because their size exceeded the link MTU
1272 of outgoing interface [ipv6IfStatsInTooBigErrors].
1273 .RE
1274
1275 .B idisc6/s
1276 .RS
1277 The number of input IPv6 datagrams per second for which no
1278 problems were encountered to prevent their
1279 continued processing, but which were discarded
1280 (e.g., for lack of buffer space)
1281 [ipv6IfStatsInDiscards]. Note that this
1282 counter does not include any datagrams discarded
1283 while awaiting re-assembly.
1284 .RE
1285
1286 .B odisc6/s
1287 .RS
1288 The number of output IPv6 datagrams per second for which no
1289 problem was encountered to prevent their
1290 transmission to their destination, but which were
1291 discarded (e.g., for lack of buffer space)
1292 [ipv6IfStatsOutDiscards]. Note
1293 that this counter would include datagrams counted
1294 in fwddgm6/s if any such packets
1295 met this (discretionary) discard criterion.
1296 .RE
1297
1298 .B inort6/s
1299 .RS
1300 The number of input datagrams discarded per second because no
1301 route could be found to transmit them to their
1302 destination [ipv6IfStatsInNoRoutes].
1303 .RE
1304
1305 .B onort6/s
1306 .RS
1307 The number of locally generated IP datagrams discarded per second
1308 because no route could be found to transmit them to their
1309 destination [unknown formal SNMP name].
1310 .RE
1311
1312 .B asmf6/s
1313 .RS
1314 The number of failures detected per second by the IPv6
1315 re-assembly algorithm (for whatever reason: timed
1316 out, errors, etc.) [ipv6IfStatsReasmFails].
1317 Note that this is not
1318 necessarily a count of discarded IPv6 fragments
1319 since some algorithms
1320 can lose track of the number of fragments
1321 by combining them as they are received.
1322 .RE
1323
1324 .B fragf6/s
1325 .RS
1326 The number of IPv6 datagrams that have been
1327 discarded per second because they needed to be fragmented
1328 at this output interface but could not be
1329 [ipv6IfStatsOutFragFails].
1330 .RE
1331
1332 .B itrpck6/s
1333 .RS
1334 The number of input datagrams discarded per second because
1335 datagram frame didn't carry enough data
1336 [ipv6IfStatsInTruncatedPkts].
1337 .RE
1338
1339 With the
1340 .B ICMP6
1341 keyword, statistics about ICMPv6 network traffic are reported.
1342 Note that ICMPv6 statistics depend on sadc option "-S IPV6" to be
1343 collected.
1344 The following values are displayed (formal SNMP names between
1345 square brackets):
1346
1347 .B imsg6/s
1348 .RS
1349 The total number of ICMP messages received
1350 by the interface per second which includes all those
1351 counted by ierr6/s [ipv6IfIcmpInMsgs].
1352 .RE
1353
1354 .B omsg6/s
1355 .RS
1356 The total number of ICMP messages which this
1357 interface attempted to send per second [ipv6IfIcmpOutMsgs].
1358 .RE
1359
1360 .B iech6/s
1361 .RS
1362 The number of ICMP Echo (request) messages
1363 received by the interface per second [ipv6IfIcmpInEchos].
1364 .RE
1365
1366 .B iechr6/s
1367 .RS
1368 The number of ICMP Echo Reply messages received
1369 by the interface per second [ipv6IfIcmpInEchoReplies].
1370 .RE
1371
1372 .B oechr6/s
1373 .RS
1374 The number of ICMP Echo Reply messages sent
1375 by the interface per second [ipv6IfIcmpOutEchoReplies].
1376 .RE
1377
1378 .B igmbq6/s
1379 .RS
1380 The number of ICMPv6 Group Membership Query
1381 messages received by the interface per second
1382 [ipv6IfIcmpInGroupMembQueries].
1383 .RE
1384
1385 .B igmbr6/s
1386 .RS
1387 The number of ICMPv6 Group Membership Response messages
1388 received by the interface per second
1389 [ipv6IfIcmpInGroupMembResponses].
1390 .RE
1391
1392 .B ogmbr6/s
1393 .RS
1394 The number of ICMPv6 Group Membership Response
1395 messages sent per second
1396 [ipv6IfIcmpOutGroupMembResponses].
1397 .RE
1398
1399 .B igmbrd6/s
1400 .RS
1401 The number of ICMPv6 Group Membership Reduction messages
1402 received by the interface per second
1403 [ipv6IfIcmpInGroupMembReductions].
1404 .RE
1405
1406 .B ogmbrd6/s
1407 .RS
1408 The number of ICMPv6 Group Membership Reduction
1409 messages sent per second
1410 [ipv6IfIcmpOutGroupMembReductions].
1411 .RE
1412
1413 .B irtsol6/s
1414 .RS
1415 The number of ICMP Router Solicit messages
1416 received by the interface per second
1417 [ipv6IfIcmpInRouterSolicits].
1418 .RE
1419
1420 .B ortsol6/s
1421 .RS
1422 The number of ICMP Router Solicitation messages
1423 sent by the interface per second
1424 [ipv6IfIcmpOutRouterSolicits].
1425 .RE
1426
1427 .B irtad6/s
1428 .RS
1429 The number of ICMP Router Advertisement messages
1430 received by the interface per second
1431 [ipv6IfIcmpInRouterAdvertisements].
1432 .RE
1433
1434 .B inbsol6/s
1435 .RS
1436 The number of ICMP Neighbor Solicit messages
1437 received by the interface per second
1438 [ipv6IfIcmpInNeighborSolicits].
1439 .RE
1440
1441 .B onbsol6/s
1442 .RS
1443 The number of ICMP Neighbor Solicitation
1444 messages sent by the interface per second
1445 [ipv6IfIcmpOutNeighborSolicits].
1446 .RE
1447
1448 .B inbad6/s
1449 .RS
1450 The number of ICMP Neighbor Advertisement
1451 messages received by the interface per second
1452 [ipv6IfIcmpInNeighborAdvertisements].
1453 .RE
1454
1455 .B onbad6/s
1456 .RS
1457 The number of ICMP Neighbor Advertisement
1458 messages sent by the interface per second
1459 [ipv6IfIcmpOutNeighborAdvertisements].
1460 .RE
1461
1462 With the
1463 .B EICMP6
1464 keyword, statistics about ICMPv6 error messages are reported.
1465 Note that ICMPv6 statistics depend on sadc option "-S IPV6" to be
1466 collected.
1467 The following values are displayed (formal SNMP names between
1468 square brackets):
1469
1470 .B ierr6/s
1471 .RS
1472 The number of ICMP messages per second which the interface
1473 received but determined as having ICMP-specific
1474 errors (bad ICMP checksums, bad length, etc.)
1475 [ipv6IfIcmpInErrors]
1476 .RE
1477
1478 .B idtunr6/s
1479 .RS
1480 The number of ICMP Destination Unreachable
1481 messages received by the interface per second
1482 [ipv6IfIcmpInDestUnreachs].
1483 .RE
1484
1485 .B odtunr6/s
1486 .RS
1487 The number of ICMP Destination Unreachable
1488 messages sent by the interface per second
1489 [ipv6IfIcmpOutDestUnreachs].
1490 .RE
1491
1492 .B itmex6/s
1493 .RS
1494 The number of ICMP Time Exceeded messages
1495 received by the interface per second
1496 [ipv6IfIcmpInTimeExcds].
1497 .RE
1498
1499 .B otmex6/s
1500 .RS
1501 The number of ICMP Time Exceeded messages sent
1502 by the interface per second
1503 [ipv6IfIcmpOutTimeExcds].
1504 .RE
1505
1506 .B iprmpb6/s
1507 .RS
1508 The number of ICMP Parameter Problem messages
1509 received by the interface per second
1510 [ipv6IfIcmpInParmProblems].
1511 .RE
1512
1513 .B oprmpb6/s
1514 .RS
1515 The number of ICMP Parameter Problem messages
1516 sent by the interface per second
1517 [ipv6IfIcmpOutParmProblems].
1518 .RE
1519
1520 .B iredir6/s
1521 .RS
1522 The number of Redirect messages received
1523 by the interface per second
1524 [ipv6IfIcmpInRedirects].
1525 .RE
1526
1527 .B oredir6/s
1528 .RS
1529 The number of Redirect messages sent by
1530 the interface by second
1531 [ipv6IfIcmpOutRedirects].
1532 .RE
1533
1534 .B ipck2b6/s
1535 .RS
1536 The number of ICMP Packet Too Big messages
1537 received by the interface per second
1538 [ipv6IfIcmpInPktTooBigs].
1539 .RE
1540
1541 .B opck2b6/s
1542 .RS
1543 The number of ICMP Packet Too Big messages sent
1544 by the interface per second
1545 [ipv6IfIcmpOutPktTooBigs].
1546 .RE
1547
1548 With the
1549 .B UDP6
1550 keyword, statistics about UDPv6 network traffic are reported.
1551 Note that UDPv6 statistics depend on sadc option "-S IPV6" to be
1552 collected.
1553 The following values are displayed (formal SNMP names between
1554 square brackets):
1555
1556 .B idgm6/s
1557 .RS
1558 The total number of UDP datagrams delivered per second to UDP users
1559 [udpInDatagrams].
1560 .RE
1561
1562 .B odgm6/s
1563 .RS
1564 The total number of UDP datagrams sent per second from this
1565 entity [udpOutDatagrams].
1566 .RE
1567
1568 .B noport6/s
1569 .RS
1570 The total number of received UDP datagrams per second for which there
1571 was no application at the destination port [udpNoPorts].
1572 .RE
1573
1574 .B idgmer6/s
1575 .RS
1576 The number of received UDP datagrams per second that could not be
1577 delivered for reasons other than the lack of an application
1578 at the destination port [udpInErrors].
1579 .RE
1580
1581 The
1582 .B ALL
1583 keyword is equivalent to specifying all the keywords above and therefore all the network
1584 activities are reported.
1585 .RE
1586 .RE
1587 .IP "-o [ filename ]"
1588 Save the readings in the file in binary form. Each reading
1589 is in a separate record. The default value of the
1590 .B filename
1591 parameter is the current daily data file, the
1592 .IR @SA_DIR@/sa dd
1593 file. The -o option is exclusive of the -f option.
1594 All the data available from the kernel are saved in the file (in fact,
1595 .B sar
1596 calls its data collector
1597 .B sadc
1598 with the option "-S ALL". See sadc(8) manual page).
1599 .IP "-P { cpu [,...] | ALL }"
1600 Report per-processor statistics for the specified processor or processors.
1601 Specifying the
1602 .B ALL
1603 keyword reports statistics for each individual processor, and globally for
1604 all processors.
1605 Note that processor 0 is the first processor.
1606 .IP -p
1607 Pretty-print device names. Use this option in conjunction with option -d.
1608 By default names are printed as
1609 .B dev m-n
1610 where m and n are the major and minor numbers for the device.
1611 Use of this option displays the names of the devices as they (should) appear
1612 in /dev. Name mappings are controlled by
1613 .B @SYSCONFIG_DIR@/sysstat.ioconf.
1614 .IP -q
1615 Report queue length and load averages. The following values are displayed:
1616
1617 .B runq-sz
1618 .RS
1619 .RS
1620 Run queue length (number of tasks waiting for run time). 
1621 .RE
1622
1623 .B plist-sz
1624 .RS
1625 Number of tasks in the task list.
1626 .RE
1627
1628 .B ldavg-1
1629 .RS
1630 System load average for the last minute.
1631 The load average is calculated as the average number of runnable or
1632 running tasks (R state), and the number of tasks in uninterruptible
1633 sleep (D state) over the specified interval.
1634 .RE
1635
1636 .B ldavg-5
1637 .RS
1638 System load average for the past 5 minutes.
1639 .RE
1640
1641 .B ldavg-15
1642 .RS
1643 System load average for the past 15 minutes.
1644 .RE
1645 .RE
1646 .IP -r
1647 Report memory utilization statistics.
1648 The following values are displayed:
1649
1650 .B kbmemfree
1651 .RS
1652 .RS
1653 Amount of free memory available in kilobytes.
1654 .RE
1655
1656 .B kbmemused
1657 .RS
1658 Amount of used memory in kilobytes. This does not take into account memory
1659 used by the kernel itself.
1660 .RE
1661
1662 .B %memused
1663 .RS
1664 Percentage of used memory.
1665 .RE
1666
1667 .B kbbuffers
1668 .RS
1669 Amount of memory used as buffers by the kernel in kilobytes.
1670 .RE
1671
1672 .B kbcached
1673 .RS
1674 Amount of memory used to cache data by the kernel in kilobytes.
1675 .RE
1676
1677 .B kbcommit
1678 .RS
1679 Amount of memory in kilobytes needed for current workload. This is an estimate of how much
1680 RAM/swap is needed to guarantee that there never is out of memory.
1681 .RE
1682
1683 .B %commit
1684 .RS
1685 Percentage of memory needed for current workload in relation to the total amount of memory (RAM+swap).
1686 This number may be greater than 100% because the kernel usually overcommits memory.
1687
1688 .RE
1689 .RE
1690 .IP -R
1691 Report memory statistics. The following values are displayed:
1692
1693 .B frmpg/s
1694 .RS
1695 .RS
1696 Number of memory pages freed by the system per second.
1697 A negative value represents a number of pages allocated by the system.
1698 Note that a page has a size of 4 kB or 8 kB according to the machine architecture.
1699 .RE
1700
1701 .B bufpg/s
1702 .RS
1703 Number of additional memory pages used as buffers by the system per second.
1704 A negative value means fewer pages used as buffers by the system.
1705 .RE
1706
1707 .B campg/s
1708 .RS
1709 Number of additional memory pages cached by the system per second.
1710 A negative value means fewer pages in the cache.
1711 .RE
1712 .RE
1713 .IP "-s [ hh:mm:ss ]"
1714 Set the starting time of the data, causing the
1715 .B sar
1716 command to extract records time-tagged at, or following, the time
1717 specified. The default starting time is 08:00:00.
1718 Hours must be given in 24-hour format. This option can be
1719 used only when data are read from a file (option
1720 .B -f
1721 ).
1722 .IP -S
1723 Report swap space utilization statistics.
1724 The following values are displayed:
1725
1726 .B kbswpfree
1727 .RS
1728 .RS
1729 Amount of free swap space in kilobytes.
1730 .RE
1731
1732 .B kbswpused
1733 .RS
1734 Amount of used swap space in kilobytes.
1735 .RE
1736
1737 .B %swpused
1738 .RS
1739 Percentage of used swap space.
1740 .RE
1741
1742 .B kbswpcad
1743 .RS
1744 Amount of cached swap memory in kilobytes.
1745 This is memory that once was swapped out, is swapped back in
1746 but still also is in the swap area (if memory is needed it doesn't need
1747 to be swapped out again because it is already in the swap area. This
1748 saves I/O).
1749 .RE
1750
1751 .B %swpcad
1752 .RS
1753 Percentage of cached swap memory in relation to the amount of used swap space.
1754 .RE
1755 .RE
1756 .IP -t
1757 When reading data from a daily data file, indicate that
1758 .B sar
1759 should display the timestamps in the original locale time of
1760 the data file creator. Without this option, the
1761 .B sar
1762 command displays the timestamps in the user's locale time.
1763 .IP "-u [ ALL ]"
1764 Report CPU utilization. The
1765 .B ALL
1766 keyword indicates that all the CPU fields should be displayed.
1767 The report may show the following fields:
1768
1769 .B %user
1770 .RS
1771 .RS
1772 Percentage of CPU utilization that occurred while executing at the user
1773 level (application). Note that this field includes time spent running
1774 virtual processors.
1775 .RE
1776
1777 .B %usr
1778 .RS
1779 Percentage of CPU utilization that occurred while executing at the user
1780 level (application). Note that this field does NOT include time spent
1781 running virtual processors.
1782 .RE
1783
1784 .B %nice
1785 .RS
1786 Percentage of CPU utilization that occurred while executing at the user
1787 level with nice priority.
1788 .RE
1789
1790 .B %system
1791 .RS
1792 Percentage of CPU utilization that occurred while executing at the system
1793 level (kernel). Note that this field includes time spent servicing
1794 hardware and software interrupts.
1795 .RE
1796
1797 .B %sys
1798 .RS
1799 Percentage of CPU utilization that occurred while executing at the system
1800 level (kernel). Note that this field does NOT include time spent servicing
1801 hardware or software interrupts.
1802 .RE
1803
1804 .B %iowait
1805 .RS
1806 Percentage of time that the CPU or CPUs were idle during which
1807 the system had an outstanding disk I/O request.
1808 .RE
1809
1810 .B %steal
1811 .RS
1812 Percentage of time spent in involuntary wait by the virtual CPU
1813 or CPUs while the hypervisor was servicing another virtual processor.
1814 .RE
1815
1816 .B %irq
1817 .RS
1818 Percentage of time spent by the CPU or CPUs to service hardware interrupts.
1819 .RE
1820
1821 .B %soft
1822 .RS
1823 Percentage of time spent by the CPU or CPUs to service software interrupts.
1824 .RE
1825
1826 .B %guest
1827 .RS
1828 Percentage of time spent by the CPU or CPUs to run a virtual processor.
1829 .RE
1830
1831 .B %idle
1832 .RS
1833 Percentage of time that the CPU or CPUs were idle and the system
1834 did not have an outstanding disk I/O request.
1835 .RE
1836
1837 Note: On SMP machines a processor that does not have any activity at all
1838 (0.00 for every field) is a disabled (offline) processor.
1839 .RE
1840 .IP -v
1841 Report status of inode, file and other kernel tables.
1842 The following values are displayed:
1843
1844 .B dentunusd
1845 .RS
1846 .RS
1847 Number of unused cache entries in the directory cache.
1848 .RE
1849
1850 .B file-nr
1851 .RS
1852 Number of file handles used by the system.
1853 .RE
1854
1855 .B inode-nr
1856 .RS
1857 Number of inode handlers used by the system.
1858 .RE
1859
1860 .B pty-nr
1861 .RS
1862 Number of pseudo-terminals used by the system.
1863 .RE
1864 .RE
1865 .IP -V
1866 Print version number then exit.
1867 .IP -w
1868 Report task creation and system switching activity.
1869
1870 .B proc/s
1871 .RS
1872 .RS
1873 Total number of tasks created per second.
1874 .RE
1875
1876 .B cswch/s
1877 .RS
1878 Total number of context switches per second.
1879 .RE
1880 .RE
1881 .IP -W
1882 Report swapping statistics. The following values are displayed:
1883
1884 .B pswpin/s
1885 .RS
1886 .RS
1887 Total number of swap pages the system brought in per second.
1888 .RE
1889
1890 .B pswpout/s
1891 .RS
1892 Total number of swap pages the system brought out per second.
1893 .RE
1894 .RE
1895 .IP -y
1896 Report TTY device activity. The following values are displayed:
1897
1898 .B rcvin/s
1899 .RS
1900 .RS
1901 Number of receive interrupts per second for current serial line. Serial line number
1902 is given in the TTY column.
1903 .RE
1904
1905 .B xmtin/s
1906 .RS
1907 Number of transmit interrupts per second for current serial line.
1908 .RE
1909
1910 .B framerr/s
1911 .RS
1912 Number of frame errors per second for current serial line.
1913 .RE
1914
1915 .B prtyerr/s
1916 .RS
1917 Number of parity errors per second for current serial line.
1918 .RE
1919
1920 .B brk/s
1921 .RS
1922 Number of breaks per second for current serial line.
1923 .RE
1924
1925 .B ovrun/s
1926 .RS
1927 Number of overrun errors per second for current serial line.
1928 .RE
1929 .RE
1930
1931 .SH ENVIRONMENT
1932 The
1933 .B sar
1934 command takes into account the following environment variables:
1935
1936 .IP S_TIME_FORMAT
1937 If this variable exists and its value is
1938 .BR ISO
1939 then the current locale will be ignored when printing the date in the report header.
1940 The
1941 .B sar
1942 command will use the ISO 8601 format (YYYY-MM-DD) instead.
1943
1944 .IP S_TIME_DEF_TIME
1945 If this variable exists and its value is
1946 .BR UTC
1947 then
1948 .B sar
1949 will save its data in UTC time (data will still be displayed in local time).
1950 .B sar
1951 will also use UTC time instead of local time to determine the current daily
1952 data file located in the
1953 .IR @SA_DIR@
1954 directory. This variable may be useful for servers with users located across
1955 several timezones.
1956 .SH EXAMPLES
1957 .B sar -u 2 5
1958 .RS
1959 Report CPU utilization for each 2 seconds. 5 lines are displayed.
1960 .RE
1961
1962 .B sar -I 14 -o int14.file 2 10
1963 .RS
1964 Report statistics on IRQ 14 for each 2 seconds. 10 lines are displayed.
1965 Data are stored in a file called
1966 .IR int14.file .
1967 .RE
1968
1969 .B sar -r -n DEV -f @SA_DIR@/sa16
1970 .RS
1971 Display memory and network statistics saved in daily data file 'sa16'.
1972 .RE
1973
1974 .B sar -A
1975 .RS
1976 Display all the statistics saved in current daily data file.
1977 .SH BUGS
1978 .I /proc
1979 filesystem must be mounted for the
1980 .B sar
1981 command to work.
1982
1983 All the statistics are not necessarily available, depending on the kernel version used.
1984 .B sar
1985 assumes that you are using at least a 2.6 kernel.
1986 .SH FILES
1987 .IR @SA_DIR@/sa dd
1988 .RS
1989 Indicate the daily data file, where the
1990 .B dd
1991 parameter is a number representing the day of the month.
1992
1993 .RE
1994 .IR /proc
1995 contains various files with system statistics.
1996 .SH AUTHOR
1997 Sebastien Godard (sysstat <at> orange.fr)
1998 .SH SEE ALSO
1999 .BR sadc (8),
2000 .BR sa1 (8),
2001 .BR sa2 (8),
2002 .BR sadf (1),
2003 .BR pidstat (1),
2004 .BR mpstat (1),
2005 .BR iostat (1),
2006 .BR vmstat (8)
2007
2008 .I http://pagesperso-orange.fr/sebastien.godard/