{"id":1619,"date":"2024-02-09T11:16:58","date_gmt":"2024-02-09T11:16:58","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1619"},"modified":"2024-02-09T12:55:15","modified_gmt":"2024-02-09T12:55:15","slug":"helsing","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/helsing\/","title":{"rendered":"helsing"},"content":{"rendered":"\n<p>The helsing benchmark computes <a href=\"https:\/\/mathworld.wolfram.com\/VampireNumber.html\" data-type=\"link\" data-id=\"https:\/\/mathworld.wolfram.com\/VampireNumber.html\">Vampire Numbers<\/a>.  There are two workloads: one for 12 digits and one for 14 digits with almost all the time going to the later. The second workload seems to run consistently on all cores.<\/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-40.png\" alt=\"\" class=\"wp-image-1623\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-40.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-40-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-40-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows frontend stalls dominating with a reasonably high retirement rate.<\/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-42.png\" alt=\"\" class=\"wp-image-1625\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-42.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-42-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-42-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show little floating point. There is a high L2 access rate with few L2 misses.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              1544.288\non_cpu               0.977          # 15.64 \/ 16 cores\nutime                24144.861\nstime                5.900\nnvcsw                2209           # 1.07%\nnivcsw               203297         # 98.93%\ninblock              8              # 0.01\/sec\nonblock              12760          # 8.26\/sec\ncpu-clock            24151759949628 # 24151.760 seconds\ntask-clock           24151872221780 # 24151.872 seconds\npage faults          686457         # 28.423\/sec\ncontext switches     213041         # 8.821\/sec\ncpu migrations       309            # 0.013\/sec\nmajor page faults    2              # 0.000\/sec\nminor page faults    686455         # 28.422\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             37996374962268 # 213.248 branches per 1000 inst\nbranch misses        426355218797   # 1.12% branch miss\nconditional          37900334306940 # 212.709 conditional branches per 1000 inst\nindirect             1414195149     # 0.008 indirect branches per 1000 inst\ncpu-cycles           93192585501105 # 3.76 GHz\ninstructions         178220525834252 # 1.91 IPC\nslots                186374372514954 #\nretiring             54534867291655 # 29.3% (39.7%)\n-- ucode             602790653      #     0.0%\n-- fastpath          54534264501002 #    29.3%\nfrontend             62137799188459 # 33.3% (45.2%) high\n-- latency           33686540498436 #    18.1%\n-- bandwidth         28451258690023 #    15.3%\nbackend              17152720336039 #  9.2% (12.5%) low\n-- cpu               1227200586083  #     0.7%\n-- memory            15925519749956 #     8.5%\nspeculation          3537961598501  #  1.9% ( 2.6%)\n-- branch mispredict 3526283395770  #     1.9%\n-- pipeline restart  11678202731    #     0.0%\nsmt-contention       49010830482301 # 26.3% ( 0.0%)\ncpu-cycles           93281791687407 # 3.76 GHz\ninstructions         178199946791830 # 1.91 IPC\ninstructions         59402683308294 # 199.834 l2 access per 1000 inst\nl2 hit from l1       6701172480876  # 0.11% l2 miss\nl2 miss from l1      6682864116     #\nl2 hit from l2 pf    5163093205308  #\nl3 hit from l2 pf    3420115358     #\nl3 miss from l2 pf   3018255728     #\ninstructions         59385720242127 # 1.468 float per 1000 inst\nfloat 512            46             # 0.000 AVX-512 per 1000 inst\nfloat 256            434            # 0.000 AVX-256 per 1000 inst\nfloat 128            87181981843    # 1.468 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         2648516        #\nopcache              975479         # 368.312 opcache per 1000 inst\nopcache miss         522758         # 53.6% opcache miss rate\nl1 dTLB miss         5395           # 2.037 L1 dTLB per 1000 inst\nl2 dTLB miss         1159           # 0.438 L2 dTLB per 1000 inst\ninstructions         2722566        #\nicache               1311083        # 481.562 icache per 1000 inst\nicache miss          112185         #  8.6% icache miss rate\nl1 iTLB miss         11             # 0.004 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              2195.089\non_cpu               0.983          # 15.73 \/ 16 cores\nutime                34523.529\nstime                3.532\nnvcsw                5708           # 2.26%\nnivcsw               247340         # 97.74%\ninblock              736504         # 335.52\/sec\nonblock              1520           # 0.69\/sec\ncpu-clock            34527696384921 # 34527.696 seconds\ntask-clock           34527759388483 # 34527.759 seconds\npage faults          694041         # 20.101\/sec\ncontext switches     263807         # 7.640\/sec\ncpu migrations       329            # 0.010\/sec\nmajor page faults    4046           # 0.117\/sec\nminor page faults    689995         # 19.984\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             37995215477051 # 213.238 branches per 1000 inst\nbranch misses        554926384677   # 1.46% branch miss\nconditional          37995215494459 # 213.238 conditional branches per 1000 inst\nindirect             7321841704743  # 41.092 indirect branches per 1000 inst\nslots                157759917459068 #\nretiring             93941253151823 # 59.5% (59.5%) high\n-- ucode             587027031054   #     0.4%\n-- fastpath          93354226120769 #    59.2%\nfrontend             27064981185513 # 17.2% (17.2%)\n-- latency           7967772793571  #     5.1%\n-- bandwidth         19097208391942 #    12.1%\nbackend              8761522150341  #  5.6% ( 5.6%) low\n-- cpu               7775846235503  #     4.9%\n-- memory            985675914838   #     0.6%\nspeculation          28702420410020 # 18.2% (18.2%) high\n-- branch mispredict 28702222069505 #    18.2%\n-- pipeline restart  198340515      #     0.0%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           86412475211325 # 2.47 GHz\ninstructions         192985063456344 # 2.23 IPC\nl2 access            7513647170631  # 63.938 l2 access per 1000 inst\nl2 miss              49651416890    # 0.66% l2 miss\ncpu-cycles           52549088264933 # 13.4% memory latency\nload stalls          7024140040104  #  0.0% l1 bound\nl1 miss              31270895567874 # 57.1% l2 bound\nl2 miss              1284758476766  #  0.7% l3 bound\nl3 miss              929695149808   #  1.8% dram bound\nstore_stalls         782090312      #  0.0% store bound\n<\/code><\/pre>\n\n\n\n<p>Process overview shows the helsing process taking the most time.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>458 processes\n\t108 helsing              411130.16    82.11\n\t 68 clinfo                  16.22     6.64\n\t 38 vulkaninfo               1.14     1.14\n\t  6 php                      0.17     0.10\n\t  6 glxinfo:gdrv0            0.13     0.07\n\t  4 vulkani:disk$0           0.12     0.12\n\t  6 glxinfo:gl0              0.12     0.06\n\t  6 clang                    0.07     0.05\n\t  2 glxinfo                  0.07     0.03\n\t  2 glxinfo:cs0              0.07     0.03\n\t  2 glxinfo:disk$0           0.07     0.03\n\t  2 glxinfo:sh0              0.07     0.03\n\t  2 glxinfo:shlo0            0.07     0.03\n\t  2 llvmpipe-0               0.06     0.06\n\t  2 llvmpipe-1               0.06     0.06\n\t  2 llvmpipe-10              0.06     0.06\n\t  2 llvmpipe-11              0.06     0.06\n\t  2 llvmpipe-12              0.06     0.06\n\t  2 llvmpipe-13              0.06     0.06\n\t  2 llvmpipe-14              0.06     0.06\n\t  2 llvmpipe-15              0.06     0.06\n\t  2 llvmpipe-2               0.06     0.06\n\t  2 llvmpipe-3               0.06     0.06\n\t  2 llvmpipe-4               0.06     0.06\n\t  2 llvmpipe-5               0.06     0.06\n\t  2 llvmpipe-6               0.06     0.06\n\t  2 llvmpipe-7               0.06     0.06\n\t  2 llvmpipe-8               0.06     0.06\n\t  2 llvmpipe-9               0.06     0.06\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.00     0.02\n\t 84 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t 12 gsettings                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  3 gmain                    0.00     0.00\n\t  2 cc                       0.00     0.00\n\t  2 lscpu                    0.00     0.00\n\t  2 uname                    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 dconf worker             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 grep                     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 mktemp                   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 realpath                 0.00     0.00\n\t  1 sed                      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\n0 processes running\n47 maximum processes\n<\/code><\/pre>\n\n\n\n<p>Computation structure is straightforward.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      233808) helsing          cpu=4 start=14.92 finish=20.30\n        233809) helsing          cpu=13 start=14.93 finish=20.30\n          233810) helsing          cpu=6 start=14.93 finish=20.23\n          233811) helsing          cpu=15 start=14.93 finish=20.30\n          233812) helsing          cpu=2 start=14.93 finish=20.23\n          233813) helsing          cpu=0 start=14.93 finish=20.24\n          233814) helsing          cpu=1 start=14.93 finish=20.20\n          233815) helsing          cpu=3 start=14.93 finish=20.24\n          233816) helsing          cpu=4 start=14.93 finish=20.21\n          233817) helsing          cpu=5 start=14.93 finish=20.26\n          233818) helsing          cpu=8 start=14.93 finish=20.29\n          233819) helsing          cpu=7 start=14.93 finish=20.26\n          233820) helsing          cpu=10 start=14.93 finish=20.25\n          233821) helsing          cpu=14 start=14.93 finish=20.27\n          233822) helsing          cpu=11 start=14.93 finish=20.23\n          233823) helsing          cpu=9 start=14.93 finish=20.21\n          233824) helsing          cpu=12 start=14.93 finish=20.23\n          233825) helsing          cpu=13 start=14.93 finish=20.21\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The helsing benchmark computes Vampire Numbers. There are two workloads: one for 12 digits and one for 14 digits with almost all the time going to the later. The second workload seems to run consistently on all cores. Topdown profile <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/helsing\/\"><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-1619","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1619","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=1619"}],"version-history":[{"count":3,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1619\/revisions"}],"predecessor-version":[{"id":1626,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1619\/revisions\/1626"}],"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=1619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}