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