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