{"id":1503,"date":"2024-02-04T10:25:00","date_gmt":"2024-02-04T10:25:00","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1503"},"modified":"2024-02-10T00:27:53","modified_gmt":"2024-02-10T00:27:53","slug":"build2","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/build2\/","title":{"rendered":"build2"},"content":{"rendered":"\n<p>This workload bootstraps a build2 C++ build toolchanin from source. There is one workload This workload runs on all cores most of the time.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" src=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-45.png\" alt=\"\" class=\"wp-image-1643\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-45.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-45-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-45-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile has a blur of backend stalls, frontend stalls and retiring slots, though retirement looks to be the lowest of the three.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" src=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-47.png\" alt=\"\" class=\"wp-image-1645\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-47.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-47-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-47-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics confirm a low retirement rate, not much floating point and 1\/5 of the instructions as branches.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              507.074\non_cpu               0.851          # 13.61 \/ 16 cores\nutime                6403.254\nstime                499.897\nnvcsw                688907         # 45.59%\nnivcsw               822190         # 54.41%\ninblock              0              # 0.00\/sec\nonblock              39742776       # 78376.72\/sec\ncpu-clock            6905067150996  # 6905.067 seconds\ntask-clock           6905364763203  # 6905.365 seconds\npage faults          139915264      # 20261.821\/sec\ncontext switches     1498723        # 217.037\/sec\ncpu migrations       55130          # 7.984\/sec\nmajor page faults    301            # 0.044\/sec\nminor page faults    139914963      # 20261.777\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             5285620707357  # 198.908 branches per 1000 inst\nbranch misses        150898845470   # 2.85% branch miss\nconditional          3811804866932  # 143.446 conditional branches per 1000 inst\nindirect             105090064808   # 3.955 indirect branches per 1000 inst\ncpu-cycles           27876435086014 # 3.48 GHz\ninstructions         26455352738766 # 0.95 IPC\nslots                55966434428622 #\nretiring             8768515888120  # 15.7% (19.7%)\n-- ucode             6131741616     #     0.0%\n-- fastpath          8762384146504  #    15.7%\nfrontend             18238363826788 # 32.6% (40.9%)\n-- latency           13733717201652 #    24.5%\n-- bandwidth         4504646625136  #     8.0%\nbackend              15896880759007 # 28.4% (35.7%)\n-- cpu               1490895102302  #     2.7%\n-- memory            14405985656705 #    25.7%\nspeculation          1681579338273  #  3.0% ( 3.8%)\n-- branch mispredict 1633254781298  #     2.9%\n-- pipeline restart  48324556975    #     0.1%\nsmt-contention       11380975023716 # 20.3% ( 0.0%)\ncpu-cycles           27860481249366 # 3.45 GHz\ninstructions         26455735896965 # 0.95 IPC\ninstructions         8840867936015  # 48.445 l2 access per 1000 inst\nl2 hit from l1       375665784258   # 21.74% l2 miss\nl2 miss from l1      65182344885    #\nl2 hit from l2 pf    24707306579    #\nl3 hit from l2 pf    11599803923    #\nl3 miss from l2 pf   16325212986    #\ninstructions         8838218302536  # 16.478 float per 1000 inst\nfloat 512            5483           # 0.000 AVX-512 per 1000 inst\nfloat 256            1399683        # 0.000 AVX-256 per 1000 inst\nfloat 128            145638388937   # 16.478 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         2664519        #\nopcache              984611         # 369.527 opcache per 1000 inst\nopcache miss         524534         # 53.3% opcache miss rate\nl1 dTLB miss         7635           # 2.865 L1 dTLB per 1000 inst\nl2 dTLB miss         1220           # 0.458 L2 dTLB per 1000 inst\ninstructions         2724304        #\nicache               1322287        # 485.367 icache per 1000 inst\nicache miss          110061         #  8.3% icache miss rate\nl1 iTLB miss         9              # 0.003 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            19             # 0.007 TLB flush per 1000 inst\n<\/code><\/pre>\n\n\n\n<p>Intel metrics<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              578.930\non_cpu               0.872          # 13.96 \/ 16 cores\nutime                7660.241\nstime                419.014\nnvcsw                679947         # 45.19%\nnivcsw               824774         # 54.81%\ninblock              13416          # 23.17\/sec\nonblock              39731200       # 68628.72\/sec\ncpu-clock            8080420863247  # 8080.421 seconds\ntask-clock           8080738542317  # 8080.739 seconds\npage faults          139911073      # 17314.144\/sec\ncontext switches     1493389        # 184.808\/sec\ncpu migrations       67177          # 8.313\/sec\nmajor page faults    161            # 0.020\/sec\nminor page faults    139910912      # 17314.124\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             5237575421988  # 197.497 branches per 1000 inst\nbranch misses        122538439823   # 2.34% branch miss\nconditional          5237575959460  # 197.497 conditional branches per 1000 inst\nindirect             1102926205461  # 41.589 indirect branches per 1000 inst\nslots                39728008035896 #\nretiring             13651180598884 # 34.4% (34.4%)\n-- ucode             1052300242866  #     2.6%\n-- fastpath          12598880356018 #    31.7%\nfrontend             14353842305577 # 36.1% (36.1%)\n-- latency           7984065126302  #    20.1%\n-- bandwidth         6369777179275  #    16.0%\nbackend              6908445841863  # 17.4% (17.4%) low\n-- cpu               1991795995083  #     5.0%\n-- memory            4916649846780  #    12.4%\nspeculation          4850295917815  # 12.2% (12.2%) high\n-- branch mispredict 4678976352182  #    11.8%\n-- pipeline restart  171319565633   #     0.4%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           14977051419662 # 1.60 GHz\ninstructions         17131427745018 # 1.14 IPC\nl2 access            744364250617   # 51.787 l2 access per 1000 inst\nl2 miss              224961263561   # 30.22% l2 miss\ncpu-cycles           12602378849779 # 37.4% memory latency\nload stalls          4614422487376  #  7.3% l1 bound\nl1 miss              3694570675255  #  9.1% l2 bound\nl2 miss              2543588201715  #  5.0% l3 bound\nl3 miss              1910687013181  # 15.2% dram bound\nstore_stalls         100803290936   #  0.8% store bound\n<\/code><\/pre>\n\n\n\n<p>Process overview includes ~5000 C++ invocations but largest time is in b-boot.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>16817 processes\n\t438 b-boot               20524.59   930.07\n\t5115 cc1plus               5589.02   357.87\n\t345 cc1                    162.99     1.51\n\t2132 as                      50.24     7.40\n\t 93 b                       22.96     8.92\n\t 68 clinfo                  16.55     6.30\n\t 63 ld                      10.31     2.34\n\t 38 vulkaninfo               0.95     1.34\n\t  3 xz                       0.82     0.19\n\t 99 ar                       0.57     1.35\n\t  4 vulkani:disk$0           0.10     0.14\n\t  6 php                      0.08     0.19\n\t  6 glxinfo:gdrv0            0.07     0.11\n\t  6 glxinfo:gl0              0.07     0.11\n\t  6 gmake                    0.05     0.10\n\t  2 llvmpipe-0               0.05     0.07\n\t  2 llvmpipe-1               0.05     0.07\n\t  2 llvmpipe-10              0.05     0.07\n\t  2 llvmpipe-11              0.05     0.07\n\t  2 llvmpipe-12              0.05     0.07\n\t  2 llvmpipe-13              0.05     0.07\n\t  2 llvmpipe-14              0.05     0.07\n\t  2 llvmpipe-15              0.05     0.07\n\t  2 llvmpipe-2               0.05     0.07\n\t  2 llvmpipe-3               0.05     0.07\n\t  2 llvmpipe-4               0.05     0.07\n\t  2 llvmpipe-5               0.05     0.07\n\t  2 llvmpipe-6               0.05     0.07\n\t  2 llvmpipe-7               0.05     0.07\n\t  2 llvmpipe-8               0.05     0.07\n\t  2 llvmpipe-9               0.05     0.07\n\t  6 clang                    0.04     0.08\n\t  2 glxinfo                  0.03     0.05\n\t  2 glxinfo:cs0              0.03     0.05\n\t  2 glxinfo:disk$0           0.03     0.05\n\t  2 glxinfo:sh0              0.03     0.05\n\t  2 glxinfo:shlo0            0.03     0.05\n\t  3 rocminfo                 0.03     0.00\n\t  3 sha256sum                0.03     0.00\n\t 24 rm                       0.01     0.61\n\t  3 tar                      0.00     0.37\n\t  1 lspci                    0.00     0.02\n\t5228 g++                      0.00     0.00\n\t2082 install                  0.00     0.00\n\t382 gcc                      0.00     0.00\n\t 82 sh                       0.00     0.00\n\t 75 ln                       0.00     0.00\n\t 64 sed                      0.00     0.00\n\t 63 collect2                 0.00     0.00\n\t 57 build2-install-          0.00     0.00\n\t 45 config.guess             0.00     0.00\n\t 38 uname                    0.00     0.00\n\t 33 build.sh                 0.00     0.00\n\t 29 cc                       0.00     0.00\n\t 19 grep                     0.00     0.00\n\t 13 gsettings                0.00     0.00\n\t 10 mktemp                   0.00     0.00\n\t  9 cat                      0.00     0.00\n\t  8 stat                     0.00     0.00\n\t  8 systemd-detect-          0.00     0.00\n\t  6 llvm-link                0.00     0.00\n\t  5 phoronix-test-s          0.00     0.00\n\t  4 realpath                 0.00     0.00\n\t  3 bdep                     0.00     0.00\n\t  3 bpkg                     0.00     0.00\n\t  3 build2                   0.00     0.00\n\t  3 cut                      0.00     0.00\n\t  3 gmain                    0.00     0.00\n\t  3 mkdir                    0.00     0.00\n\t  3 mv                       0.00     0.00\n\t  3 nproc                    0.00     0.00\n\t  3 touch                    0.00     0.00\n\t  2 lscpu                    0.00     0.00\n\t  2 which                    0.00     0.00\n\t  2 xset                     0.00     0.00\n\t  1 date                     0.00     0.00\n\t  1 dirname                  0.00     0.00\n\t  1 dmesg                    0.00     0.00\n\t  1 dmidecode                0.00     0.00\n\t  1 ifconfig                 0.00     0.00\n\t  1 ip                       0.00     0.00\n\t  1 lsmod                    0.00     0.00\n\t  1 ps                       0.00     0.00\n\t  1 qdbus                    0.00     0.00\n\t  1 readlink                 0.00     0.00\n\t  1 sort                     0.00     0.00\n\t  1 stty                     0.00     0.00\n\t  1 systemctl                0.00     0.00\n\t  1 template.sh              0.00     0.00\n\t  1 wc                       0.00     0.00\n\t  1 xrandr                   0.00     0.00\n4 processes running\n86 maximum processes\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This workload bootstraps a build2 C++ build toolchanin from source. There is one workload This workload runs on all cores most of the time. Topdown profile has a blur of backend stalls, frontend stalls and retiring slots, though retirement looks <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/build2\/\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":58,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1503","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/comments?post=1503"}],"version-history":[{"count":3,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1503\/revisions"}],"predecessor-version":[{"id":1646,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1503\/revisions\/1646"}],"up":[{"embeddable":true,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/58"}],"wp:attachment":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/media?parent=1503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}