{"id":594,"date":"2024-01-15T14:36:40","date_gmt":"2024-01-15T14:36:40","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=594"},"modified":"2024-01-15T14:43:55","modified_gmt":"2024-01-15T14:43:55","slug":"smhasher","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/smhasher\/","title":{"rendered":"smhasher"},"content":{"rendered":"\n<p>Testing of various hash functions. There are nine different workloads, most being tested in single-threaded mode.<\/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-21.png\" alt=\"\" class=\"wp-image-595\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-21.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-21-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-21-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown shows high overall retirement with the last workloads with slightly different profile than earlier ones.<\/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-59.png\" alt=\"\" class=\"wp-image-596\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-59.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-59-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-59-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show a very high IPC, single thread operation, some floating point and almost no L2 access. This is a small code that mostly lives in smallest caches.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              1566.574\non_cpu               0.056          # 0.90 \/ 16 cores\nutime                1405.196\nstime                0.948\nnvcsw                2257           # 29.27%\nnivcsw               5453           # 70.73%\ninblock              0              # 0.00\/sec\nonblock              15312          # 9.77\/sec\ncpu-clock            1406343255973  # 1406.343 seconds\ntask-clock           1406357969683  # 1406.358 seconds\npage faults          185397         # 131.828\/sec\ncontext switches     15305          # 10.883\/sec\ncpu migrations       334            # 0.237\/sec\nmajor page faults    2              # 0.001\/sec\nminor page faults    185395         # 131.826\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             1495100183668  # 54.321 branches per 1000 inst\nbranch misses        2160752312     # 0.14% branch miss\nconditional          1395841520622  # 50.715 conditional branches per 1000 inst\nindirect             24903641088    # 0.905 indirect branches per 1000 inst\ncpu-cycles           6580810789108  # 0.26 GHz\ninstructions         27521443521680 # 4.18 IPC\nslots                13181546628816 #\nretiring             9171866457372  # 69.6% (69.6%)\n-- ucode             750435404      #     0.0%\n-- fastpath          9171116021968  #    69.6%\nfrontend             221343209031   #  1.7% ( 1.7%)\n-- latency           156266698086   #     1.2%\n-- bandwidth         65076510945    #     0.5%\nbackend              3631513254290  # 27.5% (27.6%)\n-- cpu               1226756271225  #     9.3%\n-- memory            2404756983065  #    18.2%\nspeculation          155520770377   #  1.2% ( 1.2%)\n-- branch mispredict 85140199853    #     0.6%\n-- pipeline restart  70380570524    #     0.5%\nsmt-contention       1302086497     #  0.0% ( 0.0%)\ncpu-cycles           6556804737849  # 0.26 GHz\ninstructions         27521663699112 # 4.20 IPC\ninstructions         9185329763862  # 0.271 l2 access per 1000 inst\nl2 hit from l1       2349727250     # 2.16% l2 miss\nl2 miss from l1      22158458       #\nl2 hit from l2 pf    105574795      #\nl3 hit from l2 pf    25325193       #\nl3 miss from l2 pf   6146166        #\ninstructions         9173363328790  # 65.883 float per 1000 inst\nfloat 512            90             # 0.000 AVX-512 per 1000 inst\nfloat 256            360            # 0.000 AVX-256 per 1000 inst\nfloat 128            604364513727   # 65.883 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 show high IPC and low GHz<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              1572.995\non_cpu               0.056          # 0.90 \/ 16 cores\nutime                1411.729\nstime                0.717\nnvcsw                2164           # 25.20%\nnivcsw               6424           # 74.80%\ninblock              2640           # 1.68\/sec\nonblock              3344           # 2.13\/sec\ncpu-clock            1412590631712  # 1412.591 seconds\ntask-clock           1412603168736  # 1412.603 seconds\npage faults          170457         # 120.669\/sec\ncontext switches     16208          # 11.474\/sec\ncpu migrations       1172           # 0.830\/sec\nmajor page faults    10             # 0.007\/sec\nminor page faults    170447         # 120.662\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             1479471141439  # 55.404 branches per 1000 inst\nbranch misses        2218751241     # 0.15% branch miss\nconditional          1479471155391  # 55.404 conditional branches per 1000 inst\nindirect             23059444347    # 0.864 indirect branches per 1000 inst\nslots                32097078581210 #\nretiring             27047314342263 # 84.3% (84.3%)\n-- ucode             1499727894222  #     4.7%\n-- fastpath          25547586448041 #    79.6%\nfrontend             562755433103   #  1.8% ( 1.8%)\n-- latency           129961448818   #     0.4%\n-- bandwidth         432793984285   #     1.3%\nbackend              4061051314363  # 12.7% (12.7%)\n-- cpu               3643147164965  #    11.4%\n-- memory            417904149398   #     1.3%\nspeculation          342277606009   #  1.1% ( 1.1%)\n-- branch mispredict 237716644665   #     0.7%\n-- pipeline restart  104560961344   #     0.3%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           5361198145918  # 0.21 GHz\ninstructions         26705571755611 # 4.98 IPC\nl2 access            6859086527     # 0.257 l2 access per 1000 inst\nl2 miss              154700276      # 2.26% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process summary, looks like there is one SMhasher executable with different algorithms<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>412 processes\n\t 27 SMHasher              1404.18     0.00\n\t 68 clinfo                  16.99     5.65\n\t 38 vulkaninfo               1.19     1.14\n\t  6 glxinfo:gdrv0            0.14     0.07\n\t  4 vulkani:disk$0           0.13     0.12\n\t  6 php                      0.10     0.34\n\t  2 llvmpipe-0               0.07     0.06\n\t  2 llvmpipe-1               0.07     0.06\n\t  2 llvmpipe-10              0.07     0.06\n\t  2 llvmpipe-11              0.07     0.06\n\t  2 llvmpipe-12              0.07     0.06\n\t  2 llvmpipe-13              0.07     0.06\n\t  2 llvmpipe-14              0.07     0.06\n\t  2 llvmpipe-15              0.07     0.06\n\t  2 llvmpipe-2               0.07     0.06\n\t  2 llvmpipe-3               0.07     0.06\n\t  2 llvmpipe-4               0.07     0.06\n\t  2 llvmpipe-5               0.07     0.06\n\t  2 llvmpipe-6               0.07     0.06\n\t  2 llvmpipe-7               0.07     0.06\n\t  2 llvmpipe-8               0.07     0.06\n\t  2 llvmpipe-9               0.07     0.06\n\t  2 glxinfo                  0.06     0.04\n\t  2 glxinfo:cs0              0.06     0.04\n\t  2 glxinfo:disk$0           0.06     0.03\n\t  2 glxinfo:sh0              0.06     0.03\n\t  2 glxinfo:shlo0            0.06     0.03\n\t  6 clang                    0.04     0.08\n\t  1 lspci                    0.01     0.02\n\t  3 rocminfo                 0.01     0.00\n\t  1 ps                       0.00     0.01\n\t 98 sh                       0.00     0.00\n\t 27 smhasher                 0.00     0.00\n\t 14 gsettings                0.00     0.00\n\t 13 gcc                      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  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 gmain                    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 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>Core computation block<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      272122) smhasher         cpu=4 start=5.81  finish=10.80\n        272123) SMHasher         cpu=6 start=5.81  finish=10.80\n      272126) smhasher         cpu=2 start=14.81 finish=19.84\n        272127) SMHasher         cpu=3 start=14.81 finish=19.84\n      272128) smhasher         cpu=2 start=23.84 finish=28.85\n        272129) SMHasher         cpu=11 start=23.84 finish=28.85\n      272130) sh               cpu=13 start=28.85 finish=28.86\n        272131) sh               cpu=14 start=28.85 finish=28.86\n      272132) smhasher         cpu=2 start=39.45 finish=444.76\n        272133) SMHasher         cpu=11 start=39.46 finish=444.76\n      272141) smhasher         cpu=10 start=448.77 finish=854.07\n        272142) SMHasher         cpu=11 start=448.77 finish=854.07<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Testing of various hash functions. There are nine different workloads, most being tested in single-threaded mode. Topdown shows high overall retirement with the last workloads with slightly different profile than earlier ones. AMD metrics show a very high IPC, single <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/smhasher\/\"><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-594","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/594","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=594"}],"version-history":[{"count":1,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/594\/revisions"}],"predecessor-version":[{"id":598,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/594\/revisions\/598"}],"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=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}