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 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281
|
.TH ATOP 1 "July 2024" "Linux"
.SH NAME
.B atop
- Advanced System & Process Monitor
.SH SYNOPSIS
Live measurement in bar graph mode:
.PP
.TP 5
.B \ atop \-B[H] [-t [absdir]] [interval [samples]]
.PP
Live measurement cgroups in text mode:
.PP
.TP 5
.B \ atop \-G [-t [absdir]] [-2|-3|-4|-5|-6|-7|-8|-9] [\-a] [\-C|\-M|\-D|\-A] [interval [samples]]
.PP
Live measurement processes in text mode:
.PP
.TP 5
.B \ atop [-t [absdir]] [\-g|\-m|\-d|\-n|\-u|\-p|\-s|\-c|\-v|\-o|\-y|\-Y] [\-C|\-M|\-D|\-N|\-A] [\-fFX1xR] [interval [samples]]
.PP
Live generation of parsable output (white-space separated or JSON):
.PP
.TP 5
.B \ atop [\-Plabel[,label]... [-Z]] [\-Jlabel[,label]...] [interval [samples]]
.PP
Write raw log files:
.PP
.TP 5
.B \ atop \-w rawfile [\-a] [\-S] [interval [samples]]
.PP
Analyze raw log files in bar graph mode:
.PP
.TP 5
.B \ atop \-B[H] -r [rawfile|yyy...] [\-b [YYYYMMDD]hhmm[ss]] [\-e [YYYYMMDD]hhmm[ss]]
.PP
Analyze cgroups from raw log files in text mode:
.PP
.TP 5
.B \ atop \-G [-2|-3|-4|-5|-6|-7|-8|-9] [\-a] \-r [rawfile|yyy...] [\-b [YYYYMMDD]hhmm[ss]] [\-e [YYYYMMDD]hhmm[ss]]
.PP
Analyze processes from raw log files in text mode:
.PP
.TP 5
.B \ atop \-r [rawfile|yyy...] [\-b [YYYYMMDD]hhmm[ss]] [\-e [YYYYMMDD]hhmm[ss]] [\-g|\-m|\-d|\-n|\-u|\-p|\-s|\-c|\-v|\-o|\-y|\-Y] [\-C|\-M|\-D|\-N|\-A] [\-fFX1xR]
.PP
Generate parsable output from raw log files (white-space separated or JSON):
.PP
.TP 5
.B \ atop \-r [rawfile|yyy...] [\-b [YYYYMMDD]hhmm[ss]] [\-e [YYYYMMDD]hhmm[ss]] [\-Plabel[,label]... [-Z]] [\-Jlabel[,label]...]
.SH DESCRIPTION
The program
.I atop
is an interactive monitor to view the load on a Linux system.
Every
.I interval
seconds (default: 10 seconds) information is gathered about the
resource occupation on system level (CPUs, memory, disks and network
interfaces) and on cgroup level (version 2). Besides,
information is gathered about the processes and threads that
are responsible for the utilization of the CPUs, memory and disks.
Network load per process is shown only when the
.I netatop
kernel module or the
.I netatop-bpf
BPF module has been installed.
.SH TWIN MODE
With the
.I -t
flag you can run
.I atop
interactively in 'twin mode'.
This mode allows to run a live measurement with the possibility to
review and analyze an earlier sample. Meanwhile, the live measurement
continues.
When started in twin mode,
.I atop
spawns a child process that gathers the counters and writes
them to a temporary raw file. The parent process reads the counters
from the temporary raw file and presents them to the user.
The reading of the parent process keeps in pace with the written
samples of the child process for live measurements.
While the gathering continues by the child process, key 'r',
key 'b' or key 'T' can be pressed to review earlier samples.
The parent process implicitly pauses the live measurement by pressing
one of these keys or by pressing key 'z' (pause) explicitly.
After browsing through the earlier samples with the
keys 't' (next sample), 'T' (previous sample), 'r' (reset to
begin of measurement), 'Z' (fast-forward to end of measurement)
and 'b' (branch to timestamp), the live measurement can be continued
by pressing key 'z' (resume after pause).
The temporary raw file will be written in the
.B /tmp
directory by default. Optionally the absolute path name of an alternative
directory can be added behind the
.I -t
flag (e.g. when there is not enough space in the
.B /tmp
directory). In any case, the parent process will terminate the child process
when the measurement is finished and the temporary raw file will be
removed.
.SH BAR GRAPH MODE
When running
.I atop
you can choose to view the system load in bar graph mode or in text mode.
In bar graph mode the resource utilization of CPUs, memory, disks and network
interfaces is shown via (character-based) bar graphs, but only on system level.
When you want to view more detailed information on system level or when you
want to view the resource consumption on process or thread level, you can switch
to text mode by pressing the 'B' key. Alternatively, you can use the 'B' key
(again) to switch from text mode to bar graph mode.
.br
By default,
.I atop
starts in text mode unless the
.I -B
flag is used or unless 'B' has been configured as a default flag in the
.I .atoprc
file (for further information about default flags, refer to the
.B atoprc
man page).
.PP
In bar graph mode the terminal will be subdivided into four character-based
windows, i.e. one window for each hardware resource:
.PP
.TP 5
.B Processors
The first bar shows the average busy percentage of all CPUs with
the bar label 'Avg' (might be abbreviated to 'Av' or even just 'A').
The subsequent bars show the busy percentages of single CPUs.
.br
When there is not enough horizontal space to show all CPUs, only the
most busy CPUs per sample will be shown after the width of each bar
has been reduced to a minimum.
By default, the categories of CPU consumption are shown by different
colors in the bars, marked with a character 'S' (system mode), 'U'
(user mode), 'I' (interrupt handling), 's' (steal) and 'G'
(guest, i.e. consumed by virtual machines).
.br
The top of the bar might consist of an unmarked color representing
a 'neutral' category. Suppose that the scale unit is 5% per line
and the total busy percentage is 54% consisting of two categories of 27%.
The two categories will be rounded to 25% (5 lines of 5% each) but the
total busy percentage will be rounded to 55% (11 lines of 5%).
Then the top line will represent a 'neutral' category.
.br
By pressing the 'H' key or by starting
.I atop
with the '-H' flag, no categories are shown.
A red line is drawn in the bar graph as critical threshold.
By default this value is 90% and can be modified by the 'cpucritperc'
option in the configuration file (see separate
.B atoprc
man page). When this value is set to zero, no threshold line will be drawn.
.TP 5
.B Memory and swap space
Memory is presented as a column in which the
specific categories of memory consumption are shown. These categories
are (code, data and stack of) processes/kernel, slab caches
(i.e. dynamically allocated kernel memory), shared memory, tmpfs,
static huge pages, page cache and free memory.
.br
Swap space (if present) is also presented as a column in which the
categories processes/tmpfs, shared memory and free space are shown.
At the right side memory-related event counters are shown.
.br
The bottom three counters are colored green when there is no memory pressure.
When considerable activity is noticed such counter might be colored orange and
with high activity red.
.br
When memory pressure starts, usually memory page scanning will be activated
first. When pressure increases, memory pages of processes might be swapped
out to swap space (if present).
.br
The 'oomkills' counter (Out Of Memory killing) is most serious:
it reflects the number of processes that are killed due to lack of memory
(and swap). Therefore this counter shows the absolute number (not per second)
of processes being killed during the last interval and will immediately
be colored red when it is 1 or more. Besides, after
.I atop
has noticed OOM killing the 'oomkills' counter remains orange for the next
15 minutes, just in case that you have missed the OOM killing event itself.
.br
When there is enough vertical space in the memory window, event counters
are shown about the number of memory pages being swapped in,
the number of memory pages paged out to block devices and
the number of memory pages paged in from block devices.
Memory and swap space consumption will preferably be shown in a
character-based window that vertically uses the entire screen for
optimal granularity. However, when there are a lot of disks and/or
network interfaces the memory and swap space consumption will be shown
in a character-based window that only uses the upper half of the screen.
.TP 5
.B Disks
For each disk the busy percentage is shown as a bar.
.br
When there is not enough horizontal space to show all disks, only the
most busy disks per sample will be shown.
By default, categories of disk consumption are shown by different colors
in the bars, marked with a character 'R' (read) and 'W'
(write).
.br
The top of the bar might consist of an unmarked color representing
a 'neutral' category. Suppose that the scale unit is 5% per line
and the total busy percentage is 54% consisting of two categories of 27%.
The two categories will be rounded to 25% (5 lines of 5% each) but the
total busy percentage will be rounded to 55% (11 lines of 5%).
Then the top line will represent a 'neutral' category.
.br
By pressing the 'H' key or by starting
.I atop
with the '-H' flag, no categories are shown.
A red line is drawn in the bar graph as critical threshold.
By default this value is 90% and can be modified by the 'dskcritperc'
option in the configuration file (see separate
.B atoprc
man page). When this value is set to zero, no threshold line will be drawn.
.TP 5
.B Interfaces
For each non-virtual network interface a double bar graph is shown with
a dedicated scale that reflects the traffic rate. One of the bars shows
the transmit rate ('TX') and the other bar the receive rate ('RX').
The traffic scale of each network interface remains at its highest level.
All interface scales can be reset during the measurement by pressing
the 'L' key.
Most often the real speed (maximum bandwidth) of network interfaces is
not known, e.g. in case of the network interfaces of virtual machines.
Therefore it is not possible to show the interface utilization as a
percentage. However, when the real speed of an interface is known it will
be shown underneath the concerning bar graph.
When there is not enough horizontal space to show all network interfaces,
only the most busy interfaces per sample will be shown.
.PP
Usually the bar graphs will not be sorted on busy percentage when there
is enough horizontal space. However, after switching from text mode to
bar graph mode the bar graphs might have been sorted because this was
needed for the presentation in text mode. The next interval in bar graph
mode shows the bars unsorted again unless the window width is unsufficient
for all bars.
.PP
For the CPUs, disks and memory resources also a bar graph with two bars
is shown reflecting the PSI values 'some' (S) and 'full' (F).
The 'some' (S) percentage indicates the time in which at least some tasks
were stalled on a given resource.
The 'full' (F) percentage indicates the time in which all non-idle tasks were stalled
on this resource simultaneously, which had severe impact on the performance.
.br
For some Linux distributions PSI support might be disabled by default.
In that case you need to pass
.B psi=1
on the kernel command line during boot.
.PP
The remaining part of this manual page mainly describes the information
shown in text mode.
When certain descriptions also apply to bar graph mode it will be
mentioned explicitly.
.SH TEXT MODE IN GENERAL
With every interval information is shown about the resource occupation
on system level (CPU, memory, disks and network layers) in the upper part
of the screen. When a resource has been unused during the interval,
the line is suppressed unless the 'f' key is active.
In the bottom part of the screen cgroup level (key 'G') or process level
information is shown (keys 'g', 'c', 's', 'm', 'd', 'n', 'v', 'u' or 'p').
By default, only cgroups are shown without assigned processes in the cgroup itself
nor in the cgroups underneath, unless the 'a' key (all) is active.
By default, only processes are shown that were active during
the interval unless the 'a' key (all) is active.
.br
The intervals are repeated till the number of
.I samples
(specified as command argument) is reached, or till the key 'q' is pressed
in interactive mode.
.PP
When
.I atop
is started, it checks whether the standard output channel is connected to a
screen, or to a file/pipe. In the first case it produces screen control
codes (via the ncurses library) and behaves interactively. In the second case
it produces flat text output.
.PP
In interactive mode, the output of
.I atop
scales dynamically to the current dimensions of the screen/window.
.br
If the window is resized horizontally, columns will be added or removed
automatically. For this purpose, every column has a particular weight. The
columns with the highest weights that fit within the current width will
be shown.
.br
If the window is resized vertically, lines of the process/thread list
will be added or removed automatically.
.PP
In interactive mode the output of
.I atop
can be controlled by pressing particular keys.
However it is also possible to specify such key as
.B flag
on the command line. In that case
.I atop
switches to the indicated mode on beforehand. This mode can
be modified again interactively. Specifying such key as flag
is especially useful when running
.I atop
with output to a pipe or file (non-interactively).
These flags are the same as the keys that can be pressed in interactive
mode (see section INTERACTIVE COMMANDS).
.br
Additional flags are available to support storage of atop-data in raw
format (see section RAW DATA STORAGE).
By default,
.I atop
produces its output full-screen unless a flag is passed to direct
the output to a raw log (-w) or direct the output in parseable (-P)
or JSON output (-J). It is possible however to produce full-screen
output while the output is also directed in another way. In that
case a flag that relates to full-screen output (like -g) has to be
passed on the command line explicitly.
The status line in the initial screen shows if
.I atop
runs with restricted view (as unprivileged user) or unrestricted view
(as privileged user). In case of restricted view
.I atop
does not have the privileges (no root identity nor the necessary capabilities)
to retrieve all counter values on system level and on process level.
.SH PROCESS ACCOUNTING
With every interval,
.I atop
reads the kernel administration to obtain information about all
running processes.
However, it is likely that processes have terminated during the interval.
These processes might have consumed system resources during
this interval before they terminated.
Therefore,
.I atop
tries to read the process accounting records that contain the accounting
information of terminated processes and report these processes too.
Only when the process accounting mechanism in the kernel is activated,
the kernel writes such process accounting record to a file
for every process that terminates.
.PP
There are various ways for
.I atop
to get access to the process accounting records (tried in this order):
.PP
.TP 4
1.
When the environment variable ATOPACCT is set,
it specifies the name of the process accounting file.
In that case, process accounting for this file
should have been activated on beforehand.
Before opening this file for reading,
.I atop
drops its root privileges (if any).
.br
When this environment variable is present but its
contents is empty, process accounting will not be used at all.
.PP
.TP 4
2.
.B This is the preferred way of handling process accounting records!
.br
When the
.I atopacctd
daemon is active, it has activated the process accounting mechanism in
the kernel and transfers to original accounting records to shadow files.
In that case,
.I atop
drops its root privileges and opens the current shadow file for reading.
.br
This way is preferred, because the
.I atopacctd
daemon maintains full control of the size of the original process
accounting file written by the kernel and the shadow files read by the
.I atop
process(es).
The
.I atopacct
service will be activated before the
.I atop
service to enable
.I atop
to detect that process accounting is managed by the
.I atopacctd
daemon. As a forking service,
.I atopacctd
takes care that all directories and files are initialized before the
parent process dies. The child process continues as the daemon process.
For further information, refer to the
.B atopacctd
man page.
.PP
.TP 4
3.
When the
.I atopacctd
daemon is not active,
.I atop
verifies if the process accounting mechanism has been switched on
via the separate
.B psacct
or
.B acct
package (the package name depends on the Linux distro). In that case,
one of the files
.B /var/log/pacct,
.B /var/account/pacct
or
.B /var/log/account/pacct
is in use as process accounting file and
.I atop
opens this file for reading.
.PP
.TP 4
4.
As a last possibility,
.I atop
itself tries to activate the process accounting mechanism (requires root
privileges) using the file
.B /var/cache/atop.d/atop.acct
(to be written by the kernel, to be read by
.I atop
itself). Process accounting remains active as long as
at least one
.I atop
process is alive.
Whenever the last
.I atop
process stops (either by pressing 'q' or by 'kill \-15'), it deactivates the
process accounting mechanism again. Therefore you should never terminate
.I atop
by 'kill \-9', because then it has no chance to stop process accounting.
As a result, the accounting file may consume a lot of
disk space after a while.
.br
To avoid that the process accounting file consumes too much disk space,
.I atop
verifies at the end of every sample if the size of the process accounting
file exceeds 200 MiB and if this
.I atop
process is the only one that is currently using the file.
In that case the file is truncated to a size of zero.
Notice that root-privileges are required to switch on/off process accounting
in the kernel. You can start
.I atop
as a root user or specify setuid-root privileges to the executable file.
In the latter case,
.I atop
switches on process accounting and drops the root-privileges again.
.br
If
.I atop
does not run with root-privileges, it does not show information
about finished processes.
It indicates this situation with the
message 'no procacct' in the top-right corner (instead of the counter that
shows the number of exited processes).
.PP
When during one interval a lot of processes have finished,
.I atop
might grow tremendously in memory when reading all process accounting
records at the end of the interval. To avoid such excessive growth
.I atop
will never read more than 50 MiB with process information from the
process accounting file per interval (approx. 54000 finished processes).
In interactive mode a warning is given whenever processes have been skipped
for this reason.
.PP
.SH COLORS
For the resource consumption on system level,
.I atop
uses colors in text mode to indicate that a critical occupation
percentage has been (almost) reached.
A critical occupation percentage means that is likely that this load
causes a noticeable negative performance influence for applications using
this resource. The critical percentage depends on the type of resource:
e.g. the performance influence of a disk with a busy percentage of 80%
might be more noticeable for applications/users than a CPU with a busy
percentage of 90%.
.br
Currently
.I atop
uses the following default values to calculate a weighted percentage
per resource:
.PP
.TP 5
.B \ Processor
A busy percentage of 90% or higher is considered 'critical'
(also in bar graph mode).
.TP 5
.B \ Disk
A busy percentage of 90% or higher is considered 'critical'.
.TP 5
.B \ Network
A busy percentage of 90% or higher for the load of an interface is
considered 'critical'.
.TP 5
.B \ Memory
An occupation percentage of 90% is considered 'critical'.
Notice that this occupation percentage is the accumulated memory
consumption of the kernel (including slab) and all processes. The
memory for the page cache ('cache' and 'buff' in the MEM-line) and the
reclaimable part of the slab ('slrec') is not implied!
.br
If the number of pages swapped out ('swout' in the PAG-line) is larger
than 10 per second, the memory resource is considered 'critical'.
A value of at least 1 per second is considered 'almost critical'.
.br
If the committed virtual memory exceeds the limit ('vmcom' and 'vmlim'
in the SWP-line), the SWP-line is colored due to overcommitting the system.
.TP 5
.B \ Swap
An occupation percentage of 80% is considered 'critical'
because swap space might be completely exhausted in the near future.
It is not critical from a performance point-of-view.
.PP
These default values can be modified in the configuration file
(see separate
.B atoprc
man page).
.PP
When a resource exceeds its critical occupation percentage, the concerning
values in the screen line are colored red by default.
.br
When a resource exceeds (by default) 80% of its critical percentage
(so it is almost critical), the concerning values in the screen line
are colored cyan by default. This 'almost critical percentage' (one value
for all resources) can be also modified in the configuration file
(see separate
.B atoprc
man page).
.br
The default colors red and cyan can be modified in the configuration file
as well (see separate
.B atoprc
man page).
.PP
With the key 'x' (or flag \-x), the use of colors can be suppressed
in text mode. The use of colors is however mandatory in case of bar graph mode.
.SH NETATOP OR NETATOP-BPF MODULE
Per-process and per-thread network activity can be measured by the
.I netatop
kernel module or the
.I netatop-bpf
BPF module that can be separately installed.
.br
When
.I atop
has been started with the '-K' flag, it verifies if the
.I netatop
or
.I netatop-bpf
module is currently active. If so,
.I atop
obtains the relevant network counters from this module for each interval
and shows
the number of sent and received packets per process/thread in the generic
screen. Besides, detailed counters can be requested by
pressing the 'n' key.
.br
When the
.I netatopd
daemon is running in combination with the
.I netatop
module,
.I atop
also reads the network counters of exited processes that are logged
by this daemon (comparable with process accounting).
.PP
More information about the optional
.I netatop
kernel module and the
.I netatopd
daemon can be found in the concerning man-pages and on the website
mentioned at the end of this manual page.
.SH GPU STATISTICS GATHERING
GPU statistics can be gathered by
.I atopgpud
which is a separate data collection daemon process.
It gathers cumulative utilization counters of every Nvidia GPU
in the system, as well as utilization counters of every
process that uses a GPU.
When
.I atop
has been started with the '-k' flag, it reads these
GPU utilization counters with every interval when
the daemon is active.
The
.I atopgpud
daemon is written in Python, so a Python interpreter should be installed
on the target system.
For the gathering of the statistics, the
.I pynvml
module is used by the daemon. Be sure that this module is installed
on the target system before activating the daemon, by running the
command
.I pip
as root user:
.PP
.B \ pip install nvidia-ml-py
.PP
The
.I atopgpud
daemon is installed by default as part of the
.B atop
package, but it is
.I not
automatically enabled.
The daemon can be enabled and started now by running the following commands
(as root):
.PP
.B \ systemctl enable atopgpu
.br
.B \ systemctl start atopgpu
.PP
Find a description about the utilization counters in the section OUTPUT DESCRIPTION.
.SH INTERACTIVE COMMANDS
When running
.I atop
interactively (no output redirection), keys can be pressed to control the
output. In general, lower case keys can be used to show other information for
the active processes while certain upper case keys can be used to influence the
sort order of the active process/thread list. Some of these keys can also
be used to switch from bar graph mode to particular detailed process information
in text mode.
.PP
.TP 5
.B g
Show generic output (default).
Per process the following fields are shown in case of a window-width
of 80 positions:
process-id, CPU consumption during
the last interval in system and user mode, the virtual and resident
memory growth of the process.
.br
The data transfer per process for read/write on disk can only be shown
when
.I atop
runs with root privileges.
.br
When the optional module
.I netatop
or
.I netatop-bpf
is loaded, the data transfer for send/receive
of network packets is shown for each process.
.br
The last columns contain the state, the occupation percentage for the
chosen resource (default: CPU) and the process name.
When more than 80 positions are available, other information is added.
.PP
.TP 5
.B m
Show memory related output.
Per process the following fields are shown in case of a window width
of 80 positions:
process-id, minor and major
memory faults, size of virtual shared text, total virtual
process size, total resident process size, virtual and resident growth during
last interval, memory occupation percentage and process name.
When more than 80 positions are available, other information is added.
For memory consumption, always all processes are shown (also the processes
that were not active during the interval).
.PP
.TP 5
.B d
Show disk-related output.
When
.I atop
runs with root privileges, the following fields are shown:
process-id, amount of data read from disk, amount of data written to disk,
amount of data that was written but has been withdrawn again (WCANCL),
disk occupation percentage and process name.
.PP
.TP 5
.B n
Show network related output.
Per process the following fields are shown in case of a window width
of 80 positions:
process-id, thread-id,
total bandwidth for received packets,
total bandwidth for sent packets,
number of received TCP packets with the average size per packet (in bytes),
number of sent TCP packets with the average size per packet (in bytes),
number of received UDP packets with the average size per packet (in bytes),
number of sent UDP packets with the average size per packet (in bytes),
the network occupation percentage and process name.
.br
This information can only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
When more than 80 positions are available, other information is added.
.PP
.TP 5
.B s
Show scheduling characteristics.
Per process the following fields are shown in case of a window width
of 80 positions:
process-id,
number of threads in state 'running' (R),
number of threads in state 'interruptible sleeping' (S),
number of threads in state 'uninterruptible sleeping' (D),
number of threads in state 'idle' (I),
scheduling policy (normal timesharing, realtime round-robin, realtime fifo),
nice value, priority, realtime priority, current processor,
status, exit code, state, the occupation percentage for the chosen
resource and the process name.
When more than 80 positions are available, other information is added.
.PP
.TP 5
.B v
Show various process characteristics.
Per process the following fields are shown in case of a window width
of 80 positions:
process-id, user name and group,
start date and time, status (e.g. exit code if the process has finished),
state, the occupation percentage for the chosen resource and the process name.
When more than 80 positions are available, other information is added.
.PP
.TP 5
.B c
Show the command line of the process.
Per process the following fields are shown: process-id,
the occupation percentage for the chosen resource and the
command line including arguments.
.PP
.TP 5
.B G
Show cgroup v2 information.
Show a hierarchical structure of cgroups and related metrics.
Optionally, the processes assigned to each cgroup can be shown.
With the keys/flags '2' till '7' the level depth of the cgroups can
be chosen ('7' is default). With key/flag '8' the assigned active processes
are shown as well, except the kernel processes (usually in the root cgroup).
With key/flag '9' all active processes are shown, including the
kernel processes.
With key/flag 'a' (toggle) all cgroups and all processes are shown
instead of only the active cgroups and processes.
A cgroup is considered inactive when no processes are assigned to that cgroup
nor to the cgroups underneath.
With key/flag 'C' the output is sorted on CPU consumption, with
key/flag 'M' sorted on memory consumption and with
key/flag 'D' sorted on disk consumption.
.PP
.TP 5
.B e
Show GPU utilization.
Per process at least the following fields are shown:
process-id,
range of GPU numbers on which the process currently runs,
GPU busy percentage on all GPUs,
memory busy percentage (i.e. read and write accesses on memory) on all GPUs,
memory occupation at the moment of the sample,
average memory occupation during the sample, and
GPU percentage.
When the
.I atopgpud
daemon does not run with root privileges, the GPU busy percentage and
the memory busy percentage are not available on process level.
In that case, the GPU percentage on process level reflects the
GPU memory occupation instead of the GPU busy percentage (which
is preferred).
.PP
.TP 5
.B o
Show the user-defined line of the process.
In the configuration file the keyword
.I ownprocline
can be specified with the description of a user-defined output-line.
.br
Refer to the man-page of
.B atoprc
for a detailed description.
.PP
.TP 5
.B y
Show the individual threads within a process (toggle).
Single-threaded processes are still shown as one line.
.br
For multi-threaded processes, one line represents the process
while additional lines show the activity
per individual thread (in a different color). Depending on
the option 'a' (all or active toggle), all threads are shown
or only the threads that were active during the last interval.
Depending on the option 'Y' (sort threads), the threads per
process will be sorted on the chosen sort criterium or not.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B Y
Sort the threads per process when combined with option 'y' (toggle).
.PP
.TP 5
.B u
Show the process activity accumulated per user.
Per user the following fields are shown: number of processes active
or terminated during last interval (or in total if combined with command 'a'),
accumulated CPU consumption during last interval in system and user mode,
the current virtual and resident memory space consumed by active processes
(or all processes of the user if combined with command 'a').
.br
When
.I atop
runs with root privileges,
the accumulated read and write throughput on disk is shown.
When the optional module
.I netatop
or
.I netatop-bpf
has been installed,
the accumulated number of received and sent network packets is shown.
.br
The last columns contain the accumulated occupation percentage for the
chosen resource (default: CPU) and the user name.
.PP
.TP 5
.B p
Show the process activity accumulated per program (i.e. process name).
Per program the following fields are shown: number of processes active
or terminated during last interval (or in total if combined with command 'a'),
accumulated CPU consumption during last interval in system and user mode,
the current virtual and resident memory space consumed by active processes
(or all processes of the user if combined with command 'a').
.br
When
.I atop
runs with root privileges,
the accumulated read and write throughput on disk is shown.
When the optional module
.I netatop
or
.I netatop-bpf
has been installed,
the accumulated number of received and sent network packets is shown.
.br
The last columns contain the accumulated occupation percentage for the
chosen resource (default: CPU) and the program name.
.PP
.TP 5
.B j
Show the process activity accumulated per container/pod.
Per container (e.g. Docker/Podman) or pod (e.g. Kubernetes) the following fields
are shown: number of processes active
or terminated during last interval (or in total if combined with command 'a'),
accumulated CPU consumption during last interval in system and user mode,
the current virtual and resident memory space consumed by active processes
(or all processes of the user if combined with command 'a').
.br
When
.I atop
runs with root privileges,
the accumulated read and write throughput on disk is shown.
When the optional module
.I netatop
or
.I netatop-bpf
has been installed,
the accumulated number of received and sent network packets is shown.
.br
The last columns contain the accumulated occupation percentage for the
chosen resource (default: CPU) and the container/pod name (CID/POD).
.PP
.TP 5
.B C
Sort the current list in the order of CPU consumption (default).
The one-but-last column changes to 'CPU'.
.PP
.TP 5
.B E
Sort the current list in the order of GPU utilization
(preferred, but only applicable
when the
.I atopgpud
daemon runs under root privileges) or the order of
GPU memory occupation).
The one-but-last column changes to 'GPU'.
.PP
.TP 5
.B M
Sort the current list in the order of resident memory consumption.
The one-but-last column changes to 'MEM'. In case of sorting on memory,
the full process list will be shown (not only the active processes).
.PP
.TP 5
.B D
Sort the current list in the order of disk accesses issued.
The one-but-last column changes to 'DSK'.
.PP
.TP 5
.B N
Sort the current list in the order of network bandwidth (received
and transmitted).
The one-but-last column changes to 'NET'.
.PP
.TP 5
.B A
Sort the current list automatically in the order of the most busy
system resource during this interval.
The one-but-last column shows either 'ACPU', 'AMEM', 'ADSK' or 'ANET'
(the preceding 'A' indicates automatic sorting-order).
The most busy resource is determined by comparing the weighted
busy-percentages of the system resources, as described earlier in
the section COLORS.
.br
This option remains valid until
another sorting-order is explicitly selected again.
.br
A sorting order for disk is only possible when
.I atop
runs with root privileges.
.br
A sorting order for network is only possible when the optional module
.I netatop
or
.I netatop-bpf
is loaded.
.PP
Miscellaneous interactive commands:
.PP
.TP 5
.B ?
Request for help information (also the key 'h' can be pressed).
.PP
.TP 5
.B V
Request for version information (version number and date).
.PP
.TP 5
.B R
Gather and calculate the proportional set size of processes (toggle).
Gathering of all values that are needed to calculate the PSIZE of a process
is a very time-consuming task, so this key should only be active when
analyzing the resident memory consumption of processes.
.PP
.TP 5
.B W
Get the WCHAN per thread (toggle).
Gathering of the WCHAN string per thread
is a relatively time-consuming task, so this key should only be made
active when analyzing the reason for threads to be in sleep state.
.PP
.TP 5
.B x
Suppress colors to highlight critical resources (toggle).
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B z
The pause key can be used to freeze the current situation in order to
investigate the output on the screen. While
.I atop
is paused, the keys described above can be pressed to show other
information about the current list of processes.
Whenever the pause key is pressed again,
atop will continue with a next sample.
.br
The pause key can be used in text mode and bar graph mode.
.PP
.TP 5
.B i
Modify the interval timer (default: 10 seconds). If an interval timer of 0 is
entered, the interval timer is switched off. In that case a new sample can
only be triggered manually by pressing the key 't'.
.br
The interval can be modified in text mode and bar graph mode.
.PP
.TP 5
.B t
Trigger a new sample manually. This key can be pressed if the current sample
should be finished before the timer has exceeded, or if no timer is set at all
(interval timer defined as 0). In the latter case
.I atop
can be used as a stopwatch to measure the load being caused by a
particular application transaction, without knowing on beforehand how many
seconds this transaction will last.
.br
This key can be used in text mode and bar graph mode.
When viewing the contents of a raw file this key can be used to show the
next sample from the file. This key can also be used when viewing raw data
via a pipe.
.PP
.TP 5
.B T
When viewing the contents of a raw file this key can be used to show the
previous sample from the file, however not when reading raw data from a pipe.
.br
This key can be used in text mode and bar graph mode.
.PP
.TP 5
.B b
When viewing the contents of a raw file, this key can be used to branch
to a certain timestamp within the file either forward or backward.
When viewing raw data from a pipe only forward branches are possible.
.br
This key can be used in text mode and bar graph mode.
.PP
.TP 5
.B r
Reset all counters to zero to see the system and process activity since
boot again.
.br
This key can be used in text mode and bar graph mode.
When viewing the contents of a raw file, this key can be used to rewind
to the beginning of the file again (except when reading raw data from a pipe).
.PP
.TP 5
.B Z
When viewing the contents of a raw file this key can be used to fast-forward
to the end of the file, however not when reading raw data from a pipe.
.br
This key can be used in text mode and bar graph mode.
.PP
.TP 5
.B U
Specify a regular expression string for specific user names or a numerical UID.
From now on, only (active) processes will be shown from a user which matches
the regular expression or numerical UID.
The system statistics are still system wide.
If the Enter-key is pressed without specifying a name, (active)
processes of all users will be shown again.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B I
Specify a list with one or more PIDs to be selected.
From now on, only processes will be shown with a PID which matches
one of the given list.
The system statistics are still system wide.
If the Enter-key is pressed without specifying a PID, all (active)
processes will be shown again.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B P
Specify a search string for specific process names as a regular expression.
From now on, only processes will be shown with a name which matches the
regular expression.
The system statistics are still system wide.
If the Enter-key is pressed without specifying a name, all (active)
processes will be shown again.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B /
Specify a specific command line search string as a regular expression.
From now on, only processes will be shown with a command line which
matches the regular expression.
The system statistics are still system wide.
If the Enter-key is pressed without specifying a string, all (active)
processes will be shown again.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B J
Specify a container id (e.g. Docker or Podman) or pod name (e.g. Kubernetes)
of maximum 15 characters. In case the name is longer, the last 15 characters
are expected.
From now on, only processes will be shown that run in that specific
container or pod.
The system statistics are still system wide.
If the Enter-key is pressed without specifying a container id or pod name,
all (active) processes will be shown again.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B Q
Specify a comma-separated list of process/thread state characters.
From now on, only processes/threads will be shown that are in
those specific states.
Accepted states are: R (running), S (sleeping), D (disk sleep), I (idle),
T (stopped), t (tracing stop), X (dead), Z (zombie) and P (parked).
The system statistics are still system wide.
If the Enter-key is pressed without specifying a state,
all (active) processes/threads will be shown again.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B S
Specify search strings for specific logical volume names,
specific disk names and specific network interface names. All
search strings are interpreted as a regular expressions.
From now on, only those system resources are shown that match
the concerning regular expression.
If the Enter-key is pressed without specifying a search string, all (active)
system resources of that type will be shown again.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B a
The 'all/active' key can be used to toggle between only showing/accumulating
the processes that were active during the last interval (default) or
showing/accumulating all processes.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B X
By default,
.I atop
shows/accumulates the processes that are alive and the processes
that are exited during the last interval. With this key (toggle),
showing/accumulating the processes that are exited can be suppressed.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B f
Show a fixed (maximum) number of header lines for system resources (toggle).
By default only the lines are shown about system resources (CPUs, paging,
logical volumes, disks, network interfaces) that really have been active
during the last interval.
With this key you can force
.I atop
to show lines of inactive resources as well.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B F
Suppress sorting of system resources (toggle).
By default system resources (CPUs, logical volumes, disks,
network interfaces) are sorted on utilization.
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B 1
Show relevant counters as an average per second (in the format '..../s')
instead of as a total during the interval (toggle).
.br
Whether this key is active or not can be seen in the header line.
.PP
.TP 5
.B l
Limit the number of system level lines for the counters per-cpu,
the active disks and the network interfaces.
By default lines are shown of all CPUs, disks and network interfaces
which have been active during the last interval.
Limiting these lines can be useful on systems with huge number CPUs,
disks or interfaces in order to be able to run
.I atop
on a screen/window with e.g. only 24 lines.
.br
For all mentioned resources the maximum number of lines can be specified
interactively. When using the flag
.B -l
the maximum number of per-cpu lines is set to 0,
the maximum number of disk lines to 5 and
the maximum number of interface lines to 3.
These values can be modified again in interactive mode.
.PP
.TP 5
.B k
Send a signal to an active process (a.k.a. kill a process).
.PP
.TP 5
.B q
Quit the program.
.br
This key can be used in text mode and bar graph mode.
.PP
.TP 5
.B PgDn
Show the next page of the process/thread list.
.br
With the arrow-down key the list can be scrolled downwards with single lines.
.PP
.TP 5
.B ^F
Show the next page of the process/thread list (forward).
.br
With the arrow-down key the list can be scrolled downwards with single lines.
.PP
.TP 5
.B PgUp
Show the previous page of the process/thread list.
.br
With the arrow-up key the list can be scrolled upwards with single lines.
.PP
.TP 5
.B ^B
Show the previous page of the process/thread list (backward).
.br
With the arrow-up key the list can be scrolled upwards with single lines.
.PP
.TP 5
.B ^L
Redraw the screen.
.SH RAW DATA STORAGE
In order to store system and process level statistics for long-term
analysis (e.g. to check the system load and the active processes running
yesterday between 3:00 and 4:00 PM),
.I atop
can store the system and process level statistics in
compressed binary format in a raw file with the flag
.B -w
followed by the filename.
If this file already exists and is recognized as a raw data file,
.I atop
will append new samples to the file (starting with a sample which reflects
the activity since boot). If the file does not exist, it will be created.
.br
All information about system, processes and thread activity is stored in
the raw file.
.br
The interval (default: 10 seconds) and number of samples (default: infinite)
can be passed as last arguments. Instead of the number of samples, the flag
.B -S
can be used to indicate that
.I atop
should finish anyhow before midnight.
.PP
A raw file can be read and visualized again with the flag
.B -r
followed by the filename. If no filename is specified, the file
.BI /var/log/atop/atop_ YYYYMMDD
is opened for input (where
.I YYYYMMDD
are digits representing the current date).
If a filename is specified in the format YYYYMMDD (representing any valid
date), the file
.BI /var/log/atop/atop_ YYYYMMDD
is opened.
If a filename with the symbolic name
.BI y
is specified, yesterday's daily logfile is opened
(this can be repeated so 'yyyy' indicates the logfile of four days ago).
If the filename
.BI -
is used, stdin will be read.
.br
The samples from the file can be viewed interactively by using the key 't'
to show the next sample, the key 'T' to show the previous sample, the
key 'b' to branch to a particular time, the key 'r' to rewind to
the begin of the file or the 'Z' key to fast-forward to the end of the file.
These keys can be used in text mode as well as in bar graph mode.
.br
When output is redirected to a file or pipe,
.B atop
prints all samples in plain ASCII. The default line length is 80 characters
in that case. With the flag
.B -L
followed by an alternate line length, more (or less) columns will be shown.
.br
With the flag
.B -b
(begin time) and/or
.B -e
(end time) followed by a time argument of the form [YYYYMMDD]hhmm[ss],
a certain time period within the raw file can be selected.
.PP
Every day at midnight
.B atop
is restarted by the
.BI atop-rotate.timer
and
.BI atop-rotate.service
unit files, to write compressed binary data to the file
.BI /var/log/atop/atop_ YYYYMMDD
with an interval of 10 minutes by default.
.br
Furthermore all raw files are removed that are older than 28 days
(by default).
.br
The mentioned default values can be overruled in the file
.B /etc/default/atop
that might contain other values for
.B LOGOPTS
(by default without any flag),
.B LOGINTERVAL
(in seconds, by default 600),
.B LOGGENERATIONS
(in days, by default 28), and
.B LOGPATH
(directory in which logfiles are stored).
.PP
Unfortunately, it is not always possible to keep the format of the raw files
compatible in newer versions of
.B atop
especially when many new counters have to be maintained.
Therefore, the program
.B atopconvert
is installed to convert a raw file created by an older
version of
.B atop
to a raw file that can be read by a newer version of
.B atop
(see the man page of
.B atopconvert
for more details).
.SH OUTPUT DESCRIPTION
The header line always shows the host name, the end date and end time when
the sample has been taken, the current options that are active (only in text
mode), and the elapsed time (duration) of the sample. The verb 'PAUSED' will
be shown behind the time when
.B atop
is currently paused with the 'z' key.
The first sample shows the system level activity since boot
(the elapsed time in the header shows the time since boot).
.PP
In text mode,
.I atop
first shows the lines related to system level activity for every sample.
If a particular system resource has not been used during the interval,
the entire line related to this resource is suppressed. So the number of
system level lines may vary for each sample.
.br
After that a list is shown of processes which have been active during the last
interval. This list is sorted on CPU consumption by default, but this order
can be changed by the keys which are previously described.
.PP
If values have to be shown by
.I atop
which do not fit in the column width,
another format is used. If e.g. a CPU consumption of 233216 milliseconds
should be shown in a column width of 4 positions, it is shown as '233s'
(in seconds).
For large memory figures, another unit is chosen if the value does not fit
(Mb instead of Kb, Gb instead of Mb, Tb instead of Gb, etcetera).
For other values, a kind of exponent notation is used (value 123456789
shown in a column of 5 positions gives 123e6).
.SH OUTPUT DESCRIPTION - SYSTEM LEVEL
The system level information in text mode consists
of the following output lines:
.PP
.TP 5
.B PRC
Process and thread level totals.
.br
This line contains the total CPU time consumed
in system mode ('sys') and in user mode ('user'),
the total number of processes present at this moment ('#proc'),
the total number of threads present at this moment in state 'running'
('#trun'), 'sleeping interruptible' ('#tslpi'), 'sleeping uninterruptible'
('#tslpu') and 'idle' ('#tidle'),
the number of zombie processes ('#zombie'),
the number of clone system calls ('clones'), and
the number of processes that ended during the interval
('#exit') when process accounting is used. Instead of '#exit' the last
column may indicate that process accounting could not be activated
('no procacct').
.br
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
.PP
.TP 5
.B CPU
CPU utilization.
.br
At least one line is shown for the total occupation of all CPUs together.
.br
In case of a multi-processor system, an additional line is shown
for every individual processor (with 'cpu' in lower case),
sorted on activity. Inactive CPUs will not be shown by default.
The lines showing the per-cpu occupation contain the CPU number in
the field combined with the wait percentage.
Every line contains the percentage of CPU time spent in
kernel mode by all active processes ('sys'),
the percentage of CPU time consumed in user mode ('user') for all
active processes (including processes running with a nice value larger than
zero), the percentage of CPU time spent for interrupt handling ('irq')
including softirq, the percentage of unused CPU time while no processes
were waiting for disk I/O ('idle'), and
the percentage of unused CPU time while at least one process was waiting
for disk I/O ('wait').
.br
In case of per-cpu occupation, the CPU number and
the wait percentage ('w') for that CPU.
The number of lines showing the per-cpu occupation can be limited.
For virtual machines, the steal-percentage ('steal') shows
the percentage of CPU time stolen by other virtual machines
running on the same hardware.
.br
For physical machines hosting one or more virtual machines,
the guest percentage ('guest') shows
the percentage of CPU time used by the virtual machines. Notice that
this percentage overlaps the user percentage!
When PMC performance monitoring counters are supported by the CPU
and the kernel (and
.I atop
runs with root privileges), the number of instructions per
CPU cycle ('ipc') is shown.
The first sample always shows the value 'initial',
because the counters are just activated at the moment that
.I atop
is started.
.br
When the
.I CPU busy percentage is high
and the IPC is less than 1.0,
it is likely that the CPU is frequently waiting for memory access
during instruction execution (larger CPU caches or faster memory might
be helpful to improve performance).
When the
.I CPU busy percentage is high
and the IPC is greater than 1.0,
it is likely that the CPU is instruction-bound (more/faster cores
might be helpful to improve performance).
.br
Furthermore, per CPU the effective number of cycles ('cycl') is shown.
This value can reach the current CPU frequency if such CPU is 100% busy.
When an idle CPU is halted, the number of effective cycles can
be (considerably) lower than the current frequency.
.br
Notice that the
.I average
instructions per cycle and number of cycles is shown in the CPU line
for all CPUs.
.br
Beware that reading the cycle counter in virtual machines (guests) might
introduce performance delays. Therefore this metric is by default disabled
in virtual machines. However, with the keyword 'perfevents' in the atoprc file
this metric can be explicitly set to 'enable' or 'disable'
(see separate man-page of atoprc).
.br
See also: http://www.brendangregg.com/blog/2017-05-09/cpu-utilization-is-wrong.html
In case of frequency scaling, all previously mentioned CPU percentages
are relative to the used scaling of the CPU during the interval.
If a CPU has been active for e.g. 50% in user mode during the interval
while the frequency scaling of that CPU was 40%, only 20% of the full
capacity of the CPU has been used in user mode.
.br
In case that the kernel module 'cpufreq_stats' is active
(after issuing 'modprobe cpufreq_stats'), the
.I average
frequency ('avgf') and the
.I average
scaling percentage ('avgscal') is shown. Otherwise the
.I current
frequency ('curf') and the
.I current
scaling percentage ('curscal') is shown at the moment that the sample
is taken.
Notice that
.I average
values for frequency and scaling are shown in the CPU line for every CPU.
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
.PP
.TP 5
.B CPL
CPU load information.
.br
This line contains the load average figures reflecting the number
of threads that are available to run on a CPU (i.e. part of the runqueue)
or that are waiting for disk I/O. These figures are averaged over
1 ('avg1'), 5 ('avg5') and 15 ('avg15') minutes.
.br
Furthermore the number of context switches ('csw'), the number
of serviced interrupts ('intr') and the number of available CPUs are shown.
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
.PP
.TP 5
.B GPU
GPU utilization (Nvidia).
.br
Read the section GPU STATISTICS GATHERING in this document to find the details
about the activation of the
.I atopgpud
daemon.
In the first column of every line, the bus-id (last nine characters) and
the GPU number are shown.
The subsequent columns show the percentage of time that one or more kernels
were executing on the GPU ('gpubusy'), the percentage of time that global
(device) memory was being read or written ('membusy'), the occupation
percentage of memory ('memocc'), the total memory ('total'), the memory
being in use at the moment of the sample ('used'), the average memory
being in use during the sample time ('usavg'), the number of processes
being active on the GPU at the moment of the sample ('#proc'), and
the type of GPU.
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
.br
The number of lines showing the GPUs can be limited.
.PP
.TP 5
.B MEM
Memory occupation (two lines).
.br
These lines contain the total amount of physical memory
('tot'), the amount of memory which is currently free ('free'),
the amount of memory that is available for new workloads
without pushing the system into swap ('avail'),
the amount of memory in use as page cache including
the total resident shared memory ('cache'), the amount of memory within the
page cache that has to be flushed to disk ('dirty'), the amount
of memory used for filesystem meta data ('buff'), the amount of
memory being used for kernel mallocs ('slab'), the amount of
slab memory that is reclaimable ('slrec'),
the resident size of SYSV shared memory including tmpfs
but excluding static huge pages ('shmem'),
the resident size of SYSV shared memory including static huge pages ('shrss'),
the amount of SYSV shared memory that is currently swapped ('shswp'),
the amount of memory that is currently used for page tables ('pgtab'),
the number of NUMA nodes in this system ('numnode'),
the amount of memory that is currently claimed by vmware's
balloon driver ('vmbal'),
the amount of memory that is currently claimed by the ARC (cache)
of ZFSonlinux ('zfarc'),
the amount of memory for anonymous transparent huge pages ('anthp'),
the amount of memory that is claimed for huge pages ('hptot'),
the amount of huge page memory that is really in use ('hpuse'),
the amount of memory that is used for TCP sockets ('tcps'), and
the amount of memory that is used for UDP sockets ('udps').
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
.PP
.TP 5
.B SWP
Swap occupation and overcommit info.
.br
This line contains the total amount of swap space on disk ('tot'),
the amount of free swap space ('free'),
the size of the swap cache ('swcac'),
the size of compressed storage used for zswap ('zswap'),
the real (decompressed) size of the pages stored in zswap ('zstor'),
the total size of the memory used for KSM ('ksuse', i.e. shared), and
the total size of the memory saved (deduped) by KSM ('kssav', i.e. sharing).
.br
Furthermore the committed virtual memory space ('vmcom') and the maximum
limit of the committed space ('vmlim', which is by default swap size
plus 50% of memory size) is shown.
The committed space is the reserved virtual space for all allocations of
private memory space for processes. The kernel only verifies whether the
committed space exceeds the limit if strict overcommit handling is
configured (vm.overcommit_memory is 2).
.PP
.TP 5
.B LLC
Last-Level Cache of CPU info.
.br
This line contains the total memory bandwidth of LLC ('tot'),
the bandwidth of the local NUMA node ('loc'), and
the percentage of LLC in use ('LLCXX YY%').
Note that this feature depends on the 'resctrl' pseudo filesystem.
Be sure that the kernel is built with the relevant config and
take care that the pseudo-filesystem is mounted:
.B \ mount -t resctrl resctrl -o mba_MBps /sys/fs/resctrl
(on Intel)
.br
.B \ mount -t resctrl resctrl -o cdp \ \ \ \ \ /sys/fs/resctrl
(on AMD)
.PP
.TP 5
.B NUM
Memory utilization per NUMA node (not shown for single NUMA node).
.br
This line shows the total amount of physical memory of this node ('tot'),
the amount of free memory ('free'), the amount of memory for cached file data
('file'), modified cached file data ('dirty'), recently used memory ('activ'),
less recently used memory ('inact'), memory being used for kernel mallocs
('slab'), the amount of slab memory that is reclaimable ('slrec'),
shared memory including tmpfs ('shmem'), total huge pages ('hptot'),
used huge pages('hpuse'), and the fragmentation percentage ('frag').
.PP
.TP 5
.B NUC
CPU utilization per NUMA node (not shown for single NUMA node).
.br
This line shows the utilization percentages of all CPUs related to this
NUMA node, categorized for system mode ('sys'), user mode ('user'),
user mode for niced processes ('niced'), idle mode ('idle'),
wait mode ('w' preceded by the node number), irq mode ('irq'),
softirq mode ('sirq'), steal mode ('steal'), and guest mode ('guest')
overlapping user mode.
.PP
.TP 5
.B PAG
Paging frequency.
.br
This line contains the number of scanned pages ('scan') due to the fact
that free memory drops below a particular threshold, the number of
reclaimed pages('steal') due to the fact that free memory drops below
a particular threshold, the number times that the kernel tries to reclaim
pages due to an urgent need ('stall'),the number of process stalls to run
memory compaction to allocate huge pages ('compact'), the number of NUMA
pages migrated ('numamig'), and the total number of memory pages migrated
successfully e.g. between NUMA nodes or for compaction ('migrate') are shown.
.br
Also the number of memory pages the system read from block devices ('pgin'),
the number of memory pages the system wrote to block devices ('pgout'),
the number of memory pages swapped in from zswap ('zswin'),
the number of memory pages swapped out to zswap ('zswout'),
the number of memory pages the system read from swap space ('swin'),
the number of memory pages the system wrote to swap space ('swout'), and
the number of out-of-memory kills ('oomkill').
.PP
.TP 5
.B PSI
Pressure Stall Information.
.br
This line contains percentages about resource pressure related to CPU,
memory and disk I/O. Certain percentages refer to 'some' meaning that some
processes/threads were delayed due to resource overload. Other
percentages refer to 'full' meaning a loss of overall throughput
due to resource overload.
.br
The values 'cpusome', 'memsome', 'memfull', 'iosome' and 'iofull'
show the pressure percentage during the entire interval.
.br
The values 'cs' (cpu some), 'ms' (memory some), 'mf' (memory full), 'is'
(I/O some) and 'if' (I/O full) each show
three percentages separated by slashes:
pressure percentage over the last 10, 60 and 300 seconds.
.br
For some Linux distributions PSI support might be disabled by default.
In that case you need to pass
.B psi=1
on the kernel command line during boot.
.PP
.TP 5
.B LVM/MDD/DSK
Logical volume/multiple device/disk utilization.
.br
Per active unit one line is produced, sorted on unit activity.
Such line shows the name (e.g. VolGroup00-lvtmp for a logical volume or
sda for a hard disk), the percentage of elapsed time during which I/O requests
were issued to the device ('busy') (note that for devices serving requests in
parallel, such as RAID arrays, SSD and NVMe, this number does not reflect their
performance limits), the number of read requests issued
('read'), the number of write requests issued ('write'),
the number of discard requests issued ('discrd') if supported by kernel version,
the number of KiBytes per read ('KiB/r'),
the number of KiBytes per write ('KiB/w'),
the number of KiBytes per discard ('KiB/d') if supported by kernel version,
the number of MiBytes per second throughput for reads ('MBr/s'),
the number of MiBytes per second throughput for writes ('MBw/s'),
requests issued to the device driver but not completed ('inflt'),
the average queue depth while busy ('avq')
and the average number of milliseconds needed by a request ('avio')
for seek, latency and data transfer.
.br
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
The number of lines showing the units can be limited per class (LVM, MDD or
DSK) with the 'l' key or statically (see separate man-page of atoprc).
By specifying the value 0 for a particular class, no lines will be
shown any more for that class.
.PP
.TP 5
.B NFM
Network Filesystem (NFS) mount at the client side.
.br
For each NFS-mounted filesystem, a line is shown that contains
the mounted server directory, the name of the server ('srv'),
the total number of bytes physically read from the server ('read') and
the total number of bytes physically written to the server ('write').
Data transfer is subdivided in
the number of bytes read via normal read() system calls ('nread'),
the number of bytes written via normal read() system calls ('nwrit'),
the number of bytes read via direct I/O ('dread'),
the number of bytes written via direct I/O ('dwrit'),
the number of bytes read via memory mapped I/O pages ('mread'), and
the number of bytes written via memory mapped I/O pages ('mwrit').
.PP
.TP 5
.B NFC
Network Filesystem (NFS) client side counters.
.br
This line contains the number of RPC calls issues by local processes
('rpc'), the number of read RPC calls ('read') and
write RPC calls ('rpwrite') issued to the NFS server,
the number of RPC calls being retransmitted ('retxmit')
and the number of authorization refreshes ('autref').
.PP
.TP 5
.B NFS
Network Filesystem (NFS) server side counters.
.br
This line contains the number of RPC calls received from
NFS clients ('rpc'),
the number of read RPC calls received ('cread'),
the number of write RPC calls received ('cwrit'),
the number of Megabytes/second returned to read requests by clients ('MBcr/s'),
the number of Megabytes/second passed in write requests by clients ('MBcw/s'),
the number of network requests handled via TCP ('nettcp'),
the number of network requests handled via UDP ('netudp'),
the number of reply cache hits ('rchits'),
the number of reply cache misses ('rcmiss') and
the number of uncached requests ('rcnoca').
Furthermore some error counters indicating the number of requests
with a bad format ('badfmt') or a bad authorization ('badaut'), and a
counter indicating the number of bad clients ('badcln').
.PP
.TP 5
.B NET
Network utilization (TCP/IP).
.br
One line is shown for activity of the transport layer (TCP and UDP), one line
for the IP layer and one line per active interface.
.br
For the transport layer,
counters are shown concerning the number of received TCP segments
including those received in error ('tcpi'),
the number of transmitted TCP segments excluding
those containing only retransmitted octets ('tcpo'),
the number of UDP datagrams received ('udpi'),
the number of UDP datagrams transmitted ('udpo'),
the number of active TCP opens ('tcpao'),
the number of passive TCP opens ('tcppo'),
the number of TCP output retransmissions ('tcprs'),
the number of TCP input errors ('tcpie'),
the number of TCP output resets ('tcpor'),
the number of UDP no ports ('udpnp'),
the number of UDP input errors ('udpie'), and
the number of TCP incorrect checksums ('csumie').
.br
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
.br
These counters are related to IPv4 and IPv6 combined.
For the IP layer, counters are shown concerning the number of IP datagrams
received from interfaces, including those received in error ('ipi'),
the number of IP datagrams that local higher-layer protocols offered for
transmission ('ipo'), the number of received IP datagrams which were
forwarded to other interfaces ('ipfrw'), the number of IP datagrams which
were delivered to local higher-layer protocols ('deliv'),
the number of received ICMP datagrams ('icmpi'), and
the number of transmitted ICMP datagrams ('icmpo').
.br
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
.br
These counters are related to IPv4 and IPv6 combined.
For every active network interface one line is shown,
sorted on the interface activity.
Such line shows the name of the interface and its busy percentage
in the first column.
The busy percentage for half duplex is determined by comparing the
interface speed with the number of bits transmitted and received
per second; for full duplex the interface speed is compared with the
highest of either the transmitted or the received bits.
When the interface speed can not be determined (e.g. for the loopback
interface), '---' is shown instead of the percentage.
.br
Furthermore the number of received packets ('pcki'),
the number of transmitted packets ('pcko'),
the line speed of the interface ('sp'),
the effective amount of bits received per second ('si'),
the effective amount of bits transmitted per second ('so'),
the number of collisions ('coll'),
the number of received multicast packets ('mlti'),
the number of errors while receiving a packet ('erri'),
the number of errors while transmitting a packet ('erro'),
the number of received packets dropped ('drpi'), and
the number of transmitted packets dropped ('drpo').
.br
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
.br
The number of lines showing the network interfaces can be limited.
.PP
.TP 5
.B IFB
Infiniband utilization.
.br
For every active Infiniband port one line is shown,
sorted on activity.
Such line shows the name of the port and its busy percentage
in the first column.
The busy percentage is determined by taking the
highest of either the transmitted or the received bits during the interval,
multiplying that value by the number of lanes and comparing it against the
maximum port speed.
.br
Furthermore the number of received packets divided by the
number of lanes ('pcki'),
the number of transmitted packets divided by the number of lanes ('pcko'),
the maximum line speed ('sp'),
the effective amount of bits received per second ('si'),
the effective amount of bits transmitted per second ('so'), and
the number of lanes ('lanes').
.br
If the screen-width does not allow all of these counters,
only a relevant subset is shown.
.br
The number of lines showing the Infiniband ports can be limited.
.SH OUTPUT DESCRIPTION - CGROUPS LEVEL (V2)
In the bottom part of the screen a hierarchical list of cgroups
can be shown. By default, cgroups without assigned processes in
the cgroup itself and the cgroups underneath will be suppressed.
By pressing the 'a' key (toggle) all cgroups will be shown.
When depth level '8' or '9' has been selected (by pressing the
corresponding key) the assigned processes are shown as well.
By default, only the processes that were active during the interval.
By pressing the 'a' key (toggle) all processes will be shown.
.PP
Per cgroup the following fields may be shown (in alphabetical order),
depending on the current width of your window:
.PP
.TP 9
.B CGROUP
Name of the cgroup (version 2), i.e. the directory name in the
cgroup hierarchy.
This root cgroup '/' corresponds to the cgroup root directory, which
is usually '/sys/fs/cgroup'.
.PP
.TP 9
.B CPUBUSY
The consumed CPU percentage by this cgroup and all cgroups underneath
(as a percentage of one CPU). Value -1 means undefined.
.PP
.TP 9
.B CPUMAX
The 'cpu.max' value of this cgroup (version 2),
calculated as percentage of one CPU.
Value -1 means maximum, while value -2 means undefined.
.PP
.TP 9
.B CPUPS
The CPU pressure percentage ('some') in this cgroup and
cgroups underneath.
.br
For some Linux distributions PSI support might be disabled by default.
In that case you need to pass
.B psi=1
on the kernel command line during boot.
.PP
.TP 9
.B CPUWGT
The 'cpu.weight' value of this cgroup (version 2).
Value -2 means undefined.
.PP
.TP 9
.B DISKIO
The amount of data transferred to/from physical disks
in this cgroup and the cgroups underneath. Value -1 means undefined.
.PP
.TP 9
.B DSKPS
The disk pressure percentage ('full') in this cgroup and
cgroups underneath.
.br
For some Linux distributions PSI support might be disabled by default.
In that case you need to pass
.B psi=1
on the kernel command line during boot.
.PP
.TP 9
.B IOWGT
The 'io.weight' value of this cgroup (version 2).
Value -2 means undefined.
.PP
.TP 9
.B MEMMAX
The 'memory.max' value of this cgroup (version 2).
Value -1 means maximum, while value -2 means undefined.
.PP
.TP 9
.B MEMORY
The current memory occupation of this cgroup and all cgroups underneath.
Value -1 means undefined.
.PP
.TP 9
.B MEMPS
The memory pressure percentage ('full') in this cgroup and
cgroups underneath.
.br
For some Linux distributions PSI support might be disabled by default.
In that case you need to pass
.B psi=1
on the kernel command line during boot.
.PP
.TP 9
.B NPROCS
The number of processes assigned to this cgroup.
.PP
.TP 9
.B PBELOW
The number of processes assigned to the cgroups underneath this cgroup.
.PP
.TP 9
.B SWPMAX
The 'memory.swap.max' value of this cgroup (version 2).
Value -1 means maximum, while value -2 means undefined.
.SH OUTPUT DESCRIPTION - PROCESS LEVEL
In the bottom part of the screen, a list of processes can be shown
from which the resource utilization has changed during the last
interval. These processes
might have used CPU time or might have issued disk or network requests.
However a process
is also shown if part of it has been paged out due to lack of memory (while
the process itself was in sleep state).
.PP
Per process the following fields may be shown (in alphabetical order),
depending on the current output mode as described in the section
INTERACTIVE COMMANDS and depending on the current width of your window:
.PP
.TP 9
.B AVGRSZ
The average size of one read-action on disk.
.PP
.TP 9
.B AVGWSZ
The average size of one write-action on disk.
.PP
.TP 9
.B BANDWI
Total bandwidth for received TCP and UDP packets consumed by this process
(bits-per-second).
This value can be compared with the value 'si'
on interface level (used bandwidth per interface).
.br
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is loaded.
.PP
.TP 9
.B BANDWO
Total bandwidth for sent TCP and UDP packets consumed by this process
(bits-per-second).
This value can be compared with the value 'so'
on interface level (used bandwidth per interface).
.br
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is loaded.
.PP
.TP 9
.B BDELAY
Aggregated block I/O delay, i.e. time waiting for disk I/O.
.PP
.TP 9
.B CID/POD
Container id (e.g. Docker or Podman) or pod name (e.g. Kubernetes) referring to
the container/pod in which the process/thread is running.
When a pod name is longer than 15 characters, only the last 15 characters
are shown.
If a process has been started and finished during the last
interval, a '?' is shown because the container id or pod name is not part of
the standard process accounting record.
This column will only be shown when
.I atop
runs with superuser privileges and when at least one containerized
process is detected.
.PP
.TP 9
.B CMD
The name of the process.
This name can be surrounded by "less/greater than"
signs ('<name>') which means that the process has finished during the last
interval. A single accounting record is written for the
entire process on termination of the last thread in the process. When the
main thread exits, the process name is changed to the thread name.
.br
Behind the abbreviation 'CMD' in the header line, the current page number and
the total number of pages of the process/thread list are shown.
.PP
.TP 9
.B COMMAND-LINE
The full command line of the process (including arguments). If the length of
the command line exceeds the length of the screen line, the arrow
keys -> and <- can be used for horizontal scroll.
The '-z <regex>' command
line option can be used to prepend matching environment variables to the
displayed command line. POSIX Extended Regular Expression syntax are used
(see regex(3)). When a matching environment variable is too long (exceeding
the buffer that should contain the command line), it will be truncated.
Usually only the environment variables will be shown of the processes that
are running under your own user ID, unless you are a privileged user.
.br
WARNING: Don't use this flag when
.I writing
to a (publicly readable) raw file!
You might expose sensitive environment variables to the readers of that raw file.
Behind the verb 'COMMAND-LINE' in the header line, the current page number
and the total number of pages of the process/thread list are shown.
.PP
.TP 9
.B CPU
The occupation percentage of this process related to the available capacity
for this resource on system level.
.PP
.TP 9
.B CPUNR
The identification of the CPU the (main) thread is running on
or has recently been running on.
.PP
.TP 9
.B CTID
Container ID (OpenVZ).
If a process has been started and finished during the last
interval, a '?' is shown because the container ID is not part of
the standard process accounting record.
.PP
.TP 9
.B DSK
The occupation percentage of this process related to the total load that
is produced by all processes (i.e. total disk accesses
by all processes during the last interval).
.br
This information is shown when per process "storage accounting" is active
in the kernel.
.PP
.TP 9
.B EGID
Effective group-id under which this process executes.
When the name is longer than 8 or when the
.I -I
flag is used, the number is shown instead of the name.
.PP
.TP 9
.B ENDATE
Date that the process has been finished. If the process is still running,
this field shows 'active'.
.PP
.TP 9
.B ENTIME
Time that the process has been finished. If the process is still running,
this field shows 'active'.
.PP
.TP 9
.B ENVID
Virtual environment identified (OpenVZ only).
.PP
.TP 9
.B EUID
Effective user-id under which this process executes.
When the name is longer than 8 or when the
.I -I
flag is used, the number is shown instead of the name.
.PP
.TP 9
.B EXC
The exit code of a terminated process (second position of column 'ST' is E)
or the fatal signal number (second position of column 'ST' is S or C).
.PP
.TP 9
.B FSGID
Filesystem group-id under which this process executes.
When the name is longer than 8 or when the
.I -I
flag is used, the number is shown instead of the name.
.PP
.TP 9
.B FSUID
Filesystem user-id under which this process executes.
When the name is longer than 8 or when the
.I -I
flag is used, the number is shown instead of the name.
.PP
.TP 9
.B GPU
When the
.I atopgpud
daemon does not run with root privileges, the GPU percentage
reflects the GPU memory occupation percentage (memory of all GPUs is 100%).
.br
When the
.I atopgpud
daemon runs with root privileges, the GPU percentage
reflects the GPU busy percentage.
.PP
.TP 9
.B GPUBUSY
Busy percentage on all GPUs (one GPU is 100%).
.br
When the
.I atopgpud
daemon does not run with root privileges, this value is not available.
.PP
.TP 9
.B GPUNUMS
Comma-separated list of GPUs used by the process
during the interval. When the comma-separated list exceeds
the width of the column, a hexadecimal value is shown.
.PP
.TP 9
.B LOCKSZ
The virtual amount of memory being locked (i.e. non-swappable) by this process (or user).
.PP
.TP 9
.B MAJFLT
The number of page faults issued by this process that have been solved
by creating/loading the requested memory page.
.PP
.TP 9
.B MEM
The occupation percentage of this process related to the available capacity
for this resource on system level.
.PP
.TP 9
.B MEMAVG
Average memory occupation during the interval on all used GPUs.
.PP
.TP 9
.B MEMBUSY
Busy percentage of memory on all GPUs (one GPU is 100%), i.e.
the time needed for read and write accesses on memory.
.br
When the
.I atopgpud
daemon does not run with root privileges, this value is not available.
.PP
.TP 9
.B MEMNOW
Memory occupation at the moment of the sample on all used GPUs.
.PP
.TP 9
.B MINFLT
The number of page faults issued by this process that have been solved
by reclaiming the requested memory page from the free list of pages.
.PP
.TP 9
.B NET
The occupation percentage of this process related to the total load that
is produced by all processes (i.e. consumed network bandwidth
of all processes during the last interval).
.br
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is loaded.
.PP
.TP 9
.B NICE
The more or less static priority that can be given to a process on a
scale from -20 (high priority) to +19 (low priority).
.PP
.TP 9
.B NIVCSW
Number of times the process/thread was context-switched involuntarily,
in case that the time slice expired.
.PP
.TP 9
.B NPROCS
The number of active and terminated processes accumulated for this user
or program.
.PP
.TP 9
.B NVCSW
Number of times that the process/thread was context-switched voluntarily in
case of a blocking system call, e.g. to wait for an I/O operation to complete.
.PP
.TP 9
.B PID
Process-id.
If a process has been started and finished during the last
interval, a '?' is shown because the process-id is not part of
the standard process accounting record.
.PP
.TP 9
.B POLI
The policies 'norm' (normal, which is SCHED_OTHER), 'btch' (batch)
and 'idle' refer to timesharing processes.
The policies 'fifo' (SCHED_FIFO) and 'rr' (round robin, which is SCHED_RR)
refer to realtime processes.
.PP
.TP 9
.B PPID
Parent process-id.
If a process has been started and finished during the last
interval, value 0 is shown because the parent process-id is not part of
the standard process accounting record.
.PP
.TP 9
.B PRI
The process' priority ranges from 0 (highest priority) to 139 (lowest
priority). Priority 0 to 99 are used for realtime processes (fixed
priority independent of their behavior) and priority 100 to 139 for
timesharing processes (variable priority depending on their recent
CPU consumption and the nice value).
.PP
.TP 9
.B PSIZE
The proportional memory size of this process (or user).
.br
Every process shares resident memory with other processes. E.g. when a
particular program is started several times, the code pages (text) are
only loaded once in memory and shared by all incarnations. Also the code
of shared libraries is shared by all processes using that shared library,
as well as shared memory and memory-mapped files.
For the PSIZE calculation of a process, the resident memory of a process
that is shared with other processes is divided by the number of sharers.
This means, that every process is accounted for a proportional part of
that memory. Accumulating the PSIZE values of all processes in the
system gives a reliable impression of the total resident memory consumed
by all processes.
.br
Since gathering of all values that are needed to calculate the PSIZE is a
very time-consuming task, the 'R' key (or '-R' flag) should
be active. Gathering these values also requires superuser privileges
(otherwise '?K' is shown in the output).
.br
If a process has finished during the last interval, no value is shown
since the proportional memory size is not part of the standard
process accounting record.
.PP
.TP 9
.B RDDSK
The read data transfer issued physically on disk (so reading from the
disk cache is not accounted for).
.br
Unfortunately, the kernel aggregates the
data transfer of a process to the data transfer of its parent process when
terminating, so you might see transfers for (parent) processes like
cron, bash or init, that are not really issued by them.
.PP
.TP 9
.B RDELAY
Runqueue delay, i.e. time spent waiting on a runqueue.
.PP
.TP 9
.B RGID
The real group-id under which the process executes.
When the name is longer than 8 or when the
.I -I
flag is used, the number is shown instead of the name.
.PP
.TP 9
.B RGROW
The amount of resident memory that the process has grown during the last
interval. A resident growth can be caused by touching memory pages which
were not physically created/loaded before (load-on-demand).
Note that a resident growth can also be negative e.g. when part of the process
is paged out due to lack of memory or when the process frees dynamically
allocated memory.
For a process which started during the last interval, the resident growth
reflects the total resident size of the process at that moment.
.br
If a process has finished during the last interval, no value is shown
since resident memory occupation is not part of the standard
process accounting record.
.PP
.TP 9
.B RNET
The number of TCP- and UDP packets received by this process.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.br
If a process has finished during the last interval, no value is shown
since network counters are not part of the standard process accounting record.
.PP
.TP 9
.B RSIZE
The total resident memory usage consumed by this process (or user).
Notice that the RSIZE of a process includes all resident memory used
by that process, even if certain memory parts are shared with other processes
(see also the explanation of PSIZE).
.br
If a process has finished during the last interval, no value is shown
since resident memory occupation is not part of the standard
process accounting record.
.PP
.TP 9
.B RTPR
Realtime priority according the POSIX standard.
Value can be 0 for a timesharing process (policy 'norm', 'btch' or 'idle')
or ranges from 1 (lowest) till 99 (highest) for a realtime process
(policy 'rr' or 'fifo').
.PP
.TP 9
.B RUID
The real user-id under which the process executes.
When the name is longer than 8 or when the
.I -I
flag is used, the number is shown instead of the name.
.PP
.TP 9
.B S
The current state of the (main) thread: 'R' for running
(currently processing or in the runqueue), 'S' for sleeping interruptible
(wait for an event to occur), 'D' for sleeping non-interruptible, 'Z' for
zombie (waiting to be synchronized with its parent process), 'T' for
stopped (suspended or traced), 'W' for swapping, and 'E' (exit) for
processes which have finished during the last interval.
.PP
.TP 9
.B SGID
The saved group-id of the process.
When the name is longer than 8 or when the
.I -I
flag is used, the number is shown instead of the name.
.PP
.TP 9
.B SNET
The number of TCP and UDP packets transmitted by this process.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.PP
.TP 9
.B ST
The status of a process.
.br
The first position indicates if the process has been
started during the last interval (the value
.I N
means 'new process').
The second position indicates if the process has been
finished during the last interval.
.br
The value
.I E
means 'exit' on the process' own initiative; the exit code is displayed
in the column 'EXC'.
.br
The value
.I S
means that the process has been terminated unvoluntarily
by a signal; the signal number is displayed in the in the column 'EXC'.
.br
The value
.I C
means that the process has been terminated unvoluntarily
by a signal, producing a core dump in its current directory;
the signal number is displayed in the column 'EXC'.
.PP
.TP 9
.B STDATE
The start date of the process.
.PP
.TP 9
.B STTIME
The start time of the process.
.PP
.TP 9
.B SUID
The saved user-id of the process.
When the name is longer than 8 or when the
.I -I
flag is used, the number is shown instead of the name.
.PP
.TP 9
.B SWAPSZ
The swap space consumed by this process (or user).
.PP
.TP 9
.B SYSCPU
CPU time consumption of this process in system mode (kernel mode), usually
due to system call handling.
.PP
.TP 9
.B TCPRASZ
The average size of a received TCP buffer in bytes.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.PP
.TP 9
.B TCPRCV
The number of TCP packets received for this process.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.PP
.TP 9
.B TCPSASZ
The average size of a transmitted TCP buffer in bytes.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.PP
.TP 9
.B TCPSND
The number of TCP packets transmitted for this process.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.PP
.TP 9
.B THR
Total number of threads within this process.
All related threads are contained in a thread group, represented by
.I atop
as one line or as a separate line when the 'y' key (or -y flag) is active.
On Linux 2.4 systems it is hardly possible to determine
which threads (i.e. processes) are related to the same thread group.
Every thread is represented by
.I atop
as a separate line.
.PP
.TP 9
.B TID
Thread-id.
All threads within a process run with the same PID but with a
different TID. This value is shown for individual threads in
multi-threaded processes (when using the key 'y').
.PP
.TP 9
.B TIDLE
Number of threads within this process that are in the state 'idle' (I),
i.e. uninterruptible sleeping threads that do not count for the load average.
.PP
.TP 9
.B TRUN
Number of threads within this process that are in the state 'running' (R).
.PP
.TP 9
.B TSLPI
Number of threads within this process that are in the
state 'interruptible sleeping' (S).
.PP
.TP 9
.B TSLPU
Number of threads within this process that are in the
state 'uninterruptible sleeping' (D).
.PP
.TP 9
.B UDPRASZ
The average size of a received UDP packet in bytes.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.PP
.TP 9
.B UDPRCV
The number of UDP packets received by this process.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.PP
.TP 9
.B UDPSASZ
The average size of a transmitted UDP packets in bytes.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.PP
.TP 9
.B UDPSND
The number of UDP packets transmitted by this process.
This information will only be shown when the optional module
.I netatop
or
.I netatop-bpf
is installed.
.PP
.TP 9
.B USRCPU
CPU time consumption of this process in user mode, due to processing the
own program text.
.PP
.TP 9
.B VDATA
The virtual memory size of the private data used by this process
(including heap and shared library data).
.PP
.TP 9
.B VGROW
The amount of virtual memory that the process has grown during the last
interval. A virtual growth can be caused by e.g. issuing a malloc()
or attaching a shared memory segment. Note that a virtual growth can also
be negative by e.g. issuing a free() or detaching a shared memory segment.
For a process which started during the last interval, the virtual growth
reflects the total virtual size of the process at that moment.
.br
If a process has finished during the last interval, no value is shown
since virtual memory occupation is not part of the standard
process accounting record.
.PP
.TP 9
.B VPID
Virtual process-id (within an OpenVZ container).
If a process has been started and finished during the last
interval, a '?' is shown because the virtual process-id is not part of
the standard process accounting record.
.PP
.TP 9
.B VSIZE
The total virtual memory usage consumed by this process (or user).
.br
If a process has finished during the last interval, no value is shown
since virtual memory occupation is not part of the standard
process accounting record.
.PP
.TP 9
.B VSLIBS
The virtual memory size of the (shared) text of all shared libraries used
by this process.
.PP
.TP 9
.B VSTACK
The virtual memory size of the (private) stack used by this process
.PP
.TP 9
.B VSTEXT
The virtual memory size of the (shared) text of the executable program.
.PP
.TP 9
.B WCHAN
Wait channel of thread in sleep state, i.e. the name of the kernel function
in which the thread has been put asleep.
.br
Since determining the name string of the kernel function is a
relatively time-consuming task, the 'W' key (or '-W' flag) should
be active.
.PP
.TP 9
.B WRDSK
The write data transfer issued physically on disk (so writing to the
disk cache is not accounted for).
This counter is maintained for the application process that writes its
data to the cache (assuming that this data is physically transferred
to disk later on). Notice that disk I/O needed for swapping is
not taken into account.
.br
Unfortunately, the kernel aggregates the
data transfer of a process to the data transfer of its parent process when
terminating, so you might see transfers for (parent) processes like
cron, bash or init, that are not really issued by them.
.PP
.TP 9
.B WCANCL
The write data transfer previously accounted for this process
or another process that has been cancelled.
Suppose that a process writes new data to a file and that data is removed
again before the cache buffers have been flushed to disk.
Then the original process shows the written data as WRDSK, while
the process that removes/truncates the file shows
the unflushed removed data as WCANCL.
.SH PARSABLE OUTPUT
With the flag
.B -P
followed by a list of one or more labels (comma-separated),
parsable output is produced for each sample.
The labels that can be specified for system-level statistics
correspond to the labels (first verb of each line)
that can be found in the interactive output:
"CPU", "cpu", "CPL", "GPU", "MEM", "SWP", "PAG", "PSI", "LVM", "MDD",
"DSK", "NFM", "NFC", "NFS", "NET", "IFB", "LLC", "NUM" and "NUC".
For cgroup-level statistics the label "CGR" is available.
For process-level statistics special labels are available:
"PRG" (general), "PRC" (CPU), "PRE" (GPU), "PRM" (memory), "PRD"
(disk, but requires special privileges) and "PRN" (network, only if
the optional module
.I netatop
or
.I netatop-bpf
is installed).
.br
With the label "ALL", all system and process level statistics are shown.
.PP
The command and command line in the parsable output might contain spaces
and are therefore by default surrounded by parenthesis. However, since
a space is often used as separator between the fields by parsing tools,
with the additional flag
.B -Z
it is possible to exchange the spaces in the command (line) by
underscores and omit the parenthesis.
.PP
For every interval all requested lines are shown whereafter
.B atop
shows a line just containing the label "SEP" as a separator before the
lines for the next sample are generated.
.br
When a sample contains the values since boot,
.B atop
shows a line just containing the label "RESET" before the
lines for this sample are generated.
.PP
The first part of each output-line consists of the following six fields:
.B label
(the name of the label),
.B host
(the name of this machine),
.B epoch
(the time of this interval as number of seconds since 1-1-1970),
.B date
(date of this interval in format YYYY/MM/DD),
.B time
(time of this interval in format HH:MM:SS), and
.B interval
(number of seconds elapsed for this interval).
.PP
The subsequent fields of each output-line depend on the label:
.PP
.TP 9
.B CPU
Subsequent fields:
total number of clock-ticks per second for this machine,
number of processors,
consumption for all CPUs in system mode (clock-ticks),
consumption for all CPUs in user mode (clock-ticks),
consumption for all CPUs in user mode for niced processes (clock-ticks),
consumption for all CPUs in idle mode (clock-ticks),
consumption for all CPUs in wait mode (clock-ticks),
consumption for all CPUs in irq mode (clock-ticks),
consumption for all CPUs in softirq mode (clock-ticks),
consumption for all CPUs in steal mode (clock-ticks),
consumption for all CPUs in guest mode (clock-ticks) overlapping user mode,
frequency of all CPUs, frequency percentage of all CPUs,
instructions executed by all CPUs and cycles for all CPUs.
.TP 9
.B cpu
Subsequent fields:
total number of clock-ticks per second for this machine,
processor-number,
consumption for this CPU in system mode (clock-ticks),
consumption for this CPU in user mode (clock-ticks),
consumption for this CPU in user mode for niced processes (clock-ticks),
consumption for this CPU in idle mode (clock-ticks),
consumption for this CPU in wait mode (clock-ticks),
consumption for this CPU in irq mode (clock-ticks),
consumption for this CPU in softirq mode (clock-ticks),
consumption for this CPU in steal mode (clock-ticks),
consumption for this CPU in guest mode (clock-ticks) overlapping user mode,
frequency of this CPU, frequency percentage of this CPU,
instructions executed by this CPU and cycles for this CPU.
.TP 9
.B CPL
Subsequent fields:
number of processors,
load average for last minute,
load average for last five minutes,
load average for last fifteen minutes,
number of context-switches, and
number of device interrupts.
.TP 9
.B GPU
Subsequent fields:
GPU number, bus-id string, type of GPU string,
GPU busy percentage during last second (-1 if not available),
memory busy percentage during last second (-1 if not available),
total memory size (KiB), used memory (KiB) at this moment,
number of samples taken during interval,
cumulative GPU busy percentage during the interval (to be divided
by the number of samples for the average busy percentage,
-1 if not available),
cumulative memory busy percentage during the interval (to be divided
by the number of samples for the average busy percentage,
-1 if not available), and
cumulative memory occupation during the interval (to be divided
by the number of samples for the average occupation).
.TP 9
.B MEM
Subsequent fields:
page size for this machine (in bytes),
size of physical memory (pages),
size of free memory (pages),
size of page cache (pages),
size of buffer cache (pages),
size of slab (pages),
dirty pages in cache (pages),
reclaimable part of slab (pages),
total size of vmware's balloon pages (pages),
total size of shared memory (pages),
size of resident shared memory (pages),
size of swapped shared memory (pages),
smaller huge page size (in bytes),
total size of smaller huge pages (huge pages),
size of free smaller huge pages (huge pages),
size of ARC (cache) of ZFSonlinux (pages),
size of sharing pages for KSM (pages),
size of shared pages for KSM (pages),
size of memory used for TCP sockets (pages),
size of memory used for UDP sockets (pages),
size of pagetables (pages),
larger huge page size (in bytes),
total size of larger huge pages (huge pages),
size of free larger huge pages (huge pages),
size of available memory (pages) for new workloads without swapping, and
size of anonymous transparent huge pages ('normal' pages).
.TP 9
.B SWP
Subsequent fields:
page size for this machine (in bytes),
size of swap (pages),
size of free swap (pages),
size of swap cache (pages),
size of committed space (pages),
limit for committed space (pages),
size of the swap cache (pages),
the real (decompressed) size of the pages stored
in zswap (pages), and
the size of compressed storage used for zswap (pages).
.TP 9
.B LLC
Subsequent fields:
LLC id, percentage of LLC in use,
total memory bandwidth of this LLC (in bytes), and
memory bandwidth on local NUMA node of this LLC (in bytes).
.TP 9
.B PAG
Subsequent fields:
page size for this machine (in bytes),
number of page scans,
number of allocstalls,
0 (future use),
number of swapins,
number of swapouts,
number of oomkills (-1 when counter not present),
number of process stalls to run memory compaction,
number of pages successfully migrated in total,
number of NUMA pages migrated,
number of pages read from block devices,
number of pages written to block devices,
number of swapins from zswap, and
number of swapouts to zswap.
.TP 9
.B PSI
Subsequent fields:
PSI statistics present on this system (n or y),
CPU some avg10, CPU some avg60, CPU some avg300,
CPU some accumulated microseconds during interval,
memory some avg10, memory some avg60, memory some avg300,
memory some accumulated microseconds during interval,
memory full avg10, memory full avg60, memory full avg300,
memory full accumulated microseconds during interval,
I/O some avg10, I/O some avg60, I/O some avg300,
I/O some accumulated microseconds during interval,
I/O full avg10, I/O full avg60, I/O full avg300, and
I/O full accumulated microseconds during interval.
.TP 9
.B LVM/MDD/DSK
For every logical volume/multiple device/hard disk one line is shown.
.br
Subsequent fields:
name,
number of milliseconds spent for I/O,
number of reads issued,
number of sectors transferred for reads,
number of writes issued,
number of sectors transferred for write,
number of discards issued (-1 if not supported),
number of sectors transferred for discards,
number of requests currently in flight (not yet completed), and
the average queue depth while the disk was busy.
.TP 9
.B NFM
Subsequent fields:
mounted NFS filesystem,
total number of bytes read,
total number of bytes written,
number of bytes read by normal system calls,
number of bytes written by normal system calls,
number of bytes read by direct I/O,
number of bytes written by direct I/O,
number of pages read by memory-mapped I/O, and
number of pages written by memory-mapped I/O.
.TP 9
.B NFC
Subsequent fields:
number of transmitted RPCs,
number of transmitted read RPCs,
number of transmitted write RPCs,
number of RPC retransmissions, and
number of authorization refreshes.
.TP 9
.B NFS
Subsequent fields:
number of handled RPCs,
number of received read RPCs,
number of received write RPCs,
number of bytes read by clients,
number of bytes written by clients,
number of RPCs with bad format,
number of RPCs with bad authorization,
number of RPCs from bad client,
total number of handled network requests,
number of handled network requests via TCP,
number of handled network requests via UDP,
number of handled TCP connections,
number of hits on reply cache,
number of misses on reply cache, and
number of uncached requests.
.TP 9
.B NET
First, one line is produced for the upper layers of the TCP/IP stack.
.br
Subsequent fields:
the verb "upper",
number of packets received by TCP,
number of packets transmitted by TCP,
number of packets received by UDP,
number of packets transmitted by UDP,
number of packets received by IP,
number of packets transmitted by IP,
number of packets delivered to higher layers by IP,
number of packets forwarded by IP,
number of input errors (UDP),
number of noport errors (UDP),
number of active opens (TCP),
number of passive opens (TCP),
number of passive opens (TCP),
number of established connections at this moment (TCP),
number of retransmitted segments (TCP),
number of input errors (TCP),
number of output resets (TCP), and
number of checksum errors on received packets (TCP).
Next, one line is shown for every interface.
.br
Subsequent fields:
name of the interface,
number of packets received by the interface,
number of bytes received by the interface,
number of packets transmitted by the interface,
number of bytes transmitted by the interface,
interface speed, duplex mode (0=half, 1=full),
receive errors, transmit errors,
receive drops, transmit drops,
receive fifo, transmit fifo,
receive compressed, transmit compressed,
receive framing errors, receive multicast,
transmit collisions, and transmit carrier.
.TP 9
.B IFB
Subsequent fields:
name of the InfiniBand interface, port number,
number of lanes, maximum rate (Mbps),
number of bytes received,
number of bytes transmitted,
number of packets received, and
number of packets transmitted.
.TP 9
.B NUM
Subsequent fields:
NUMA node number,
page size for this machine (in bytes),
the fragmentation percentage of this node,
size of physical memory (pages),
size of free memory (pages),
recently (active) used memory (pages),
less recently (inactive) used memory (pages),
size of cached file data (pages),
dirty pages in cache (pages),
slab memory being used for kernel mallocs (pages),
slab memory that is reclaimable (pages),
shared memory including tmpfs (pages),
total huge pages (huge pages), and free huge pages (huge pages).
.TP 9
.B NUC
Subsequent fields:
NUMA node number, number of processors for this node,
consumption for node CPUs in system mode (clock-ticks),
consumption for node CPUs in user mode (clock-ticks),
consumption for node CPUs in user mode for niced processes (clock-ticks),
consumption for node CPUs in idle mode (clock-ticks),
consumption for node CPUs in wait mode (clock-ticks),
consumption for node CPUs in irq mode (clock-ticks),
consumption for node CPUs in softirq mode (clock-ticks),
consumption for node CPUs in steal mode (clock-ticks), and
consumption for node CPUs in guest mode (clock-ticks) overlapping user mode.
.TP 9
.B CGR
For every cgroup (level) one or two lines are shown.
The first line shows the utilization and configuration values
of the cgroup. The optional second line shows the PIDs of the
processes assigned to this cgroup.
Subsequent fields of first line:
character 'C', full path name of cgroup,
number of processes assigned to this group,
number of processes assigned to the cgroups underneath,
CPU usage in user mode (microseconds),
CPU usage in system mode (microseconds), CPU weight, CPU max,
current memory usage (pages),
anonymous memory usage (pages), file memory usage (pages),
kernel memory usage (pages), shared memory usage (pages),
memory max (pages), swap max (pages),
number of bytes read from disk, number of bytes written to disk,
number of read requests from disk, number of write requests to disk,
the disk weight,
cpu some pressure (microseconds), cpu total pressure (microseconds),
memory some pressure (microseconds), memory total pressure (microseconds),
disk some pressure (microseconds), and disk total pressure (microseconds).
Subsequent fields of second line (only when processes assigned to this cgroup):
character 'P', full path name of cgroup, and list of PIDs separated by spaces.
.TP 9
.B PRG
For every process one line is shown.
.br
Subsequent fields:
PID (unique ID of task), name (between parenthesis or underscores for spaces),
state, real uid, real gid, TGID (group number of related tasks/threads),
total number of threads,
exit code (in case of fatal signal: signal number + 256), start time (epoch),
full command line (between parenthesis or underscores for spaces), PPID,
number of threads in state 'running' (R),
number of threads in state 'interruptible sleeping' (S),
number of threads in state 'uninterruptible sleeping' (D),
effective uid, effective gid,
saved uid, saved gid,
filesystem uid, filesystem gid, elapsed time of terminated process (hertz),
is_process (y/n), OpenVZ virtual pid (VPID), OpenVZ container id (CTID),
container/pod name (CID/POD),
indication if the task is newly started during this interval ('N'),
cgroup v2 path name (between parenthesis or underscores for spaces),
end time (epoch or 0 if still active), and
number of threads in state 'idle' (I).
.TP 9
.B PRC
For every process one line is shown.
.br
Subsequent fields:
PID, name (between parenthesis or underscores for spaces), state,
total number of clock-ticks per second for this machine,
CPU-consumption in user mode (clockticks),
CPU-consumption in system mode (clockticks),
nice value, priority, realtime priority,
scheduling policy, current CPU (-1 for exited process), sleep average,
TGID (group number of related tasks/threads), is_process (y/n),
runqueue delay in nanoseconds for this thread or for all threads (in case of process),
wait channel of this thread (between parenthesis or underscores for spaces),
block I/O delay (clockticks),
cgroup v2 'cpu.max' calculated as percentage (-3 means no cgroup v2 support,
-2 means undefined and -1 means maximum),
cgroup v2 most restrictive 'cpu.max' in upper directories calculated as percentage
(-3 means no cgroup v2 support, -2 means undefined and -1 means maximum),
number of voluntary context switches, and
number of involuntary context switches.
.TP 9
.B PRE
For every process one line is shown.
.br
Subsequent fields:
PID, name (between parenthesis or underscores for spaces), process state,
GPU state (A for active, E for exited, N for no GPU user),
number of GPUs used by this process,
bitlist reflecting used GPUs,
GPU busy percentage during interval,
memory busy percentage during interval,
memory occupation (KiB) at this moment
cumulative memory occupation (KiB) during interval, and
number of samples taken during interval.
.TP 9
.B PRM
For every process one line is shown.
.br
Subsequent fields:
PID, name (between parenthesis or underscores for spaces), state,
page size for this machine (in bytes),
virtual memory size (KiB),
resident memory size (KiB),
shared text memory size (KiB),
virtual memory growth (KiB),
resident memory growth (KiB),
number of minor page faults,
number of major page faults,
virtual library exec size (KiB),
virtual data size (KiB),
virtual stack size (KiB),
swap space used (KiB),
TGID (group number of related tasks/threads), is_process (y/n),
proportional set size (KiB) if in 'R' option is specified,
virtually locked memory space (KiB),
cgroup v2 'memory.max' in KiB (-3 means no cgroup v2 support,
-2 means undefined and -1 means maximum),
cgroup v2 most restrictive 'memory.max' in upper directories in KiB
(-3 means no cgroup v2 support, -2 means undefined and -1 means maximum),
cgroup v2 'memory.swap.max' in KiB (-3 means no cgroup v2 support,
-2 means undefined and -1 means maximum), and
cgroup v2 most restrictive 'memory.swap.max' in upper directories in KiB
(-3 means no cgroup v2 support, -2 means undefined and -1 means maximum).
.TP 9
.B PRD
For every process one line is shown.
.br
Subsequent fields:
PID, name (between parenthesis or underscores for spaces), state,
obsoleted kernel patch installed ('n'),
standard io statistics used ('y' or 'n'),
number of reads on disk,
cumulative number of sectors read,
number of writes on disk,
cumulative number of sectors written,
cancelled number of written sectors,
TGID (group number of related tasks/threads),
obsoleted value ('n'), and is_process (y/n).
.TP 9
.B PRN
For every process one line is shown.
.br
Subsequent fields:
PID, name (between parenthesis or underscores for spaces), state,
kernel module
.I netatop
or
.I netatop-bpf
installed ('y' or 'n'),
number of TCP-packets transmitted,
cumulative size of TCP-packets transmitted,
number of TCP-packets received,
cumulative size of TCP-packets received,
number of UDP-packets transmitted,
cumulative size of UDP-packets transmitted,
number of UDP-packets received,
cumulative size of UDP-packets transmitted,
number of raw packets transmitted (obsolete, always 0),
number of raw packets received (obsolete, always 0),
TGID (group number of related tasks/threads) and is_process (y/n).
.br
If the kernel module is not active, the network I/O counters
per process are not relevant.
.PP
.SH JSON OUTPUT
With the flag
.B -J
followed by a list of one or more labels (comma-separated), JSON output
is produced for each sample. The syntax and name of JSON labels are
the same as for the parsable output.
.SH SIGNALS
By sending the SIGUSR1 signal to
.I atop
a new sample will be forced, even if the current timer interval
has not exceeded yet. The behavior is similar to pressing the 't' key
in an interactive session.
.PP
By sending the SIGUSR2 signal to
.I atop
a final sample will be forced after which
.I atop
will terminate.
.SH EXAMPLES
Monitor the current system load in text mode with an interval of
(default) 10 seconds:
.PP
.TP 12
.B \ atop
.PP
Monitor the current system load as bar graphs with an interval of 5 seconds:
.PP
.TP 12
.B \ atop -B 5
.PP
Monitor the current system load in text mode with an interval of 4 seconds
with the possibility to browse back and forth while measuring
continues (twin mode):
.PP
.TP 12
.B \ atop -t 4
.PP
Live monitoring of the current system load while writing the measurement
to a raw log in parallel (to be viewed later on):
.PP
.TP 12
.B \ atop -g -w /tmp/sessionx
.PP
View the cgroups with the related processes (except kernel processes) with
the possibility to review previous samples during the live measurement:
.PP
.TP 12
.B \ atop -G8 -t
.PP
Store information about the system and process activity in binary compressed
form to a file with an interval of ten minutes during an hour:
.PP
.TP 12
.B \ atop -w /tmp/atop.raw 600 6
.PP
View the contents of this file interactively:
.PP
.B \ atop -r /tmp/atop.raw
.PP
View the processor and disk utilization of this file in parsable format:
.PP
.B \ atop -PCPU,DSK -r /tmp/atop.raw
.PP
View the contents of today's standard logfile interactively:
.PP
.B \ atop -r
.PP
View the contents of the standard logfile of the day before yesterday
interactively:
.PP
.B \ atop -r yy
.PP
View the contents of the standard logfile of 2024, November 5 from
02:00 PM onwards interactively:
.PP
.B \ atop -r 20241105 -b 1400
.PP
Read the contents of today's logfile and show the CPU utilization on
system level as parseable output and JSON output:
.PP
.B \ atop -r -PCPU -JCPU
.PP
Concatenate all raw log files of November 2024 and generate parsable
output about the CPU utilization:
.PP
.TP 12
.B \ atopcat /var/log/atop/atop_202403?? | atop -r - -PCPU
.PP
Monitor the system load and write it to a file (in plain ASCII)
with an interval of one minute during half an hour with active
processes sorted on memory consumption:
.PP
.TP 12
.B \ atop -M 60 30 > /log/atop.mem
.PP
.SH FILES
.PP
.TP 5
.B /run/pacct_shadow.d/
Directory containing the process accounting shadow files that are
used by
.I atop
when the
.I atopacctd
daemon is active.
.PP
.TP 5
.B /var/cache/atop.d/atop.acct
File in which the kernel writes the accounting records when
.I atop
itself has activated the process accounting mechanism.
.PP
.TP 5
.B /etc/atoprc
Configuration file containing system-wide default values.
For further information about the default values, refer to the
.B atoprc
man page).
.PP
.TP 5
.B ~/.atoprc
Configuration file containing personal default values.
For further information about the default values, refer to the
.B atoprc
man page).
.PP
.TP 5
.B /etc/default/atop
Configuration file to overrule the settings of
.I atop
that runs in the background to create the daily logfile.
This file is created when
.I atop
is installed.
The default settings are:
LOGOPTS=""
.br
LOGINTERVAL=600
.br
LOGGENERATIONS=28
.PP
.TP 5
.BI /var/log/atop/atop_ YYYYMMDD
Raw file, where
.I YYYYMMDD
are digits representing the current date.
This name is used by
.B atop
running in the background as default name for the output file, and by
.B atop
as default name for the input file when using the
.B -r
flag.
.br
All binary system and process level data in this file has been stored
in compressed format.
.PP
.TP 5
.BI /run/netatop.log
File that contains the netpertask structs containing the network
counters of exited processes. These structs are written by the
.I netatopd
daemon (which is related to the
.I netatop
module) and read by
.I atop
after reading the standard process accounting records.
.SH SEE ALSO
.B atopsar(1),
.B atopconvert(1),
.B atopcat(1),
.B atophide(1),
.B atoprc(5),
.B atopacctd(8),
.B netatop(4),
.B netatopd(8),
.B atopgpud(8),
.B logrotate(8)
.br
.B https://www.atoptool.nl
.SH AUTHOR
Gerlof Langeveld (gerlof.langeveld@atoptool.nl)
.br
JC van Winkel
|