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