{"id":1025,"date":"2024-01-28T21:26:45","date_gmt":"2024-01-28T21:26:45","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1025"},"modified":"2024-01-29T11:07:19","modified_gmt":"2024-01-29T11:07:19","slug":"scimark2","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/scimark2\/","title":{"rendered":"scimark2"},"content":{"rendered":"\n<p>A test for scientific\/numerical computing with FFT, Jacobi Successive Over-relaxation, Monte Carlo, Sparse Matrix Multiply and dense LU factorization. This is a single-threaded program with array type functions that likely benefit from -O3 optimizations. Also a care where relatively speaking my Intel CPU performs better.<\/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\/01\/systemtime-82.png\" alt=\"\" class=\"wp-image-1072\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-82.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-82-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-82-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows differences among the six tests with one of them having particularly high branch misprediction.<\/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\/01\/amdtopdown-119.png\" alt=\"\" class=\"wp-image-1073\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-119.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-119-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-119-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show very low frontend stalls and not many L2 accesses.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              120.143\non_cpu               0.041          # 0.65 \/ 16 cores\nutime                77.062\nstime                0.901\nnvcsw                2073           # 75.85%\nnivcsw               660            # 24.15%\ninblock              0              # 0.00\/sec\nonblock              12952          # 107.81\/sec\ncpu-clock            77989027760    # 77.989 seconds\ntask-clock           77992605087    # 77.993 seconds\npage faults          171397         # 2197.606\/sec\ncontext switches     3130           # 40.132\/sec\ncpu migrations       277            # 3.552\/sec\nmajor page faults    2              # 0.026\/sec\nminor page faults    171395         # 2197.580\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             41435159232    # 45.318 branches per 1000 inst\nbranch misses        1064480394     # 2.57% branch miss\nconditional          36540908643    # 39.965 conditional branches per 1000 inst\nindirect             45509669       # 0.050 indirect branches per 1000 inst\ncpu-cycles           374643884210   # 0.19 GHz\ninstructions         948713151358   # 2.53 IPC\nslots                752276514300   #\nretiring             330387842212   # 43.9% (43.9%)\n-- ucode             10231549       #     0.0%\n-- fastpath          330377610663   #    43.9%\nfrontend             34320778963    #  4.6% ( 4.6%) low\n-- latency           22696737306    #     3.0%\n-- bandwidth         11624041657    #     1.5%\nbackend              334210686266   # 44.4% (44.4%)\n-- cpu               155565850726   #    20.7%\n-- memory            178644835540   #    23.7%\nspeculation          53315171232    #  7.1% ( 7.1%)\n-- branch mispredict 52405351963    #     7.0%\n-- pipeline restart  909819269      #     0.1%\nsmt-contention       41777915       #  0.0% ( 0.0%)\ncpu-cycles           356773196761   # 0.18 GHz\ninstructions         911718531981   # 2.56 IPC\ninstructions         304843400647   # 17.199 l2 access per 1000 inst\nl2 hit from l1       2559865446     # 36.41% l2 miss\nl2 miss from l1      112336155      #\nl2 hit from l2 pf    886371975      #\nl3 hit from l2 pf    1712944459     #\nl3 miss from l2 pf   83870847       #\ninstructions         304871254285   # 138.593 float per 1000 inst\nfloat 512            63             # 0.000 AVX-512 per 1000 inst\nfloat 256            600            # 0.000 AVX-256 per 1000 inst\nfloat 128            42252886621    # 138.593 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar 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              111.250\non_cpu               0.049          # 0.79 \/ 16 cores\nutime                86.983\nstime                0.416\nnvcsw                1833           # 82.68%\nnivcsw               384            # 17.32%\ninblock              0              # 0.00\/sec\nonblock              1704           # 15.32\/sec\ncpu-clock            87416742309    # 87.417 seconds\ntask-clock           87419658637    # 87.420 seconds\npage faults          160844         # 1839.907\/sec\ncontext switches     2602           # 29.764\/sec\ncpu migrations       282            # 3.226\/sec\nmajor page faults    0              # 0.000\/sec\nminor page faults    160844         # 1839.907\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             49111974552    # 45.159 branches per 1000 inst\nbranch misses        1006651173     # 2.05% branch miss\nconditional          49111986488    # 45.159 conditional branches per 1000 inst\nindirect             66878428       # 0.061 indirect branches per 1000 inst\nslots                2066702758058  #\nretiring             1113671660547  # 53.9% (53.9%)\n-- ucode             19320553958    #     0.9%\n-- fastpath          1094351106589  #    53.0%\nfrontend             57972748845    #  2.8% ( 2.8%) low\n-- latency           27368677487    #     1.3%\n-- bandwidth         30604071358    #     1.5%\nbackend              687206848332   # 33.3% (33.3%)\n-- cpu               510136569456   #    24.7%\n-- memory            177070278876   #     8.6%\nspeculation          280845134496   # 13.6% (13.6%) high\n-- branch mispredict 265676095678   #    12.9%\n-- pipeline restart  15169038818    #     0.7%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           371966209251   # 0.19 GHz\ninstructions         1199189287856  # 3.22 IPC high\nl2 access            19221667822    # 16.042 l2 access per 1000 inst\nl2 miss              10810784391    # 56.24% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process summary shows six invocations of scimark2 and otherwise test overhead.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>354 processes\n\t  6 scimark2                79.83     0.02\n\t 68 clinfo                  19.51     6.99\n\t 38 vulkaninfo               1.52     1.14\n\t  4 vulkani:disk$0           0.16     0.12\n\t  6 glxinfo:gdrv0            0.15     0.05\n\t  6 glxinfo:gl0              0.15     0.05\n\t  2 llvmpipe-0               0.08     0.06\n\t  2 llvmpipe-1               0.08     0.06\n\t  2 llvmpipe-10              0.08     0.06\n\t  2 llvmpipe-11              0.08     0.06\n\t  2 llvmpipe-12              0.08     0.06\n\t  2 llvmpipe-13              0.08     0.06\n\t  2 llvmpipe-14              0.08     0.06\n\t  2 llvmpipe-15              0.08     0.06\n\t  2 llvmpipe-2               0.08     0.06\n\t  2 llvmpipe-3               0.08     0.06\n\t  2 llvmpipe-4               0.08     0.06\n\t  2 llvmpipe-5               0.08     0.06\n\t  2 llvmpipe-6               0.08     0.06\n\t  2 llvmpipe-7               0.08     0.06\n\t  2 llvmpipe-8               0.08     0.06\n\t  2 llvmpipe-9               0.08     0.06\n\t  6 php                      0.07     0.09\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  6 clang                    0.06     0.06\n\t  1 lspci                    0.01     0.02\n\t  3 rocminfo                 0.00     0.03\n\t 82 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t  8 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 gmain                    0.00     0.00\n\t  5 phoronix-test-s          0.00     0.00\n\t  3 dconf worker             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 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>The computation block<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      1189178) scimark2         cpu=7 start=5.83  finish=35.09\n        1189179) scimark2         cpu=1 start=5.84  finish=35.09\n      1189181) scimark2         cpu=6 start=39.09 finish=64.41\n        1189182) scimark2         cpu=7 start=39.09 finish=64.41\n      1189184) scimark2         cpu=6 start=68.42 finish=93.77\n        1189185) scimark2         cpu=7 start=68.42 finish=93.77\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A test for scientific\/numerical computing with FFT, Jacobi Successive Over-relaxation, Monte Carlo, Sparse Matrix Multiply and dense LU factorization. This is a single-threaded program with array type functions that likely benefit from -O3 optimizations. Also a care where relatively speaking <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/scimark2\/\"><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-1025","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1025","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=1025"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1025\/revisions"}],"predecessor-version":[{"id":1074,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1025\/revisions\/1074"}],"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=1025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}