{"id":1997,"date":"2024-03-05T00:34:24","date_gmt":"2024-03-05T00:34:24","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1997"},"modified":"2024-03-05T12:12:44","modified_gmt":"2024-03-05T12:12:44","slug":"financebench","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/financebench\/","title":{"rendered":"financebench"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A collection of four financial benchmarks. Looks like the first two are multi-threaded on half the cores and take the majority 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\/03\/systemtime-18.png\" alt=\"\" class=\"wp-image-2000\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-18.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-18-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-18-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Topdown profile shows backend stalls as high but also a reasonable 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\/03\/amdtopdown-19.png\" alt=\"\" class=\"wp-image-2002\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-19.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-19-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-19-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">AMD metrics show low frontend stalls. This is floating point code with little L2 access. Most of the backend stalls are CPU-bound.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              1035.282\non_cpu               0.355          # 5.68 \/ 16 cores\nutime                5785.973\nstime                96.720\nnvcsw                4591           # 22.08%\nnivcsw               16206          # 77.92%\ninblock              37784          # 36.50\/sec\nonblock              35664          # 34.45\/sec\ncpu-clock            5882831894422  # 5882.832 seconds\ntask-clock           5882851684544  # 5882.852 seconds\npage faults          65455628       # 11126.513\/sec\ncontext switches     25671          # 4.364\/sec\ncpu migrations       5959           # 1.013\/sec\nmajor page faults    517            # 0.088\/sec\nminor page faults    65455111       # 11126.426\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             8328733911169  # 128.024 branches per 1000 inst\nbranch misses        14693691423    # 0.18% branch miss\nconditional          5603552654609  # 86.134 conditional branches per 1000 inst\nindirect             497478035210   # 7.647 indirect branches per 1000 inst\ncpu-cycles           7488943530330  # 1.31 GHz\ninstructions         19758434866181 # 2.64 IPC\nslots                14977782375228 #\nretiring             6814177121877  # 45.5% (45.5%)\n-- ucode             1365372062     #     0.0%\n-- fastpath          6812811749815  #    45.5%\nfrontend             326471508892   #  2.2% ( 2.2%) low\n-- latency           254726563758   #     1.7%\n-- bandwidth         71744945134    #     0.5%\nbackend              7681737582299  # 51.3% (51.3%)\n-- cpu               5100495206851  #    34.1%\n-- memory            2581242375448  #    17.2%\nspeculation          149543048615   #  1.0% ( 1.0%) low\n-- branch mispredict 124883703377   #     0.8%\n-- pipeline restart  24659345238    #     0.2%\nsmt-contention       5848798338     #  0.0% ( 0.0%)\ncpu-cycles           7482994801959  # 1.30 GHz\ninstructions         19738225800564 # 2.64 IPC\ninstructions         6588909045206  # 1.178 l2 access per 1000 inst\nl2 hit from l1       5322755575     # 10.68% l2 miss\nl2 miss from l1      184539829      #\nl2 hit from l2 pf    1793129410     #\nl3 hit from l2 pf    34443363       #\nl3 miss from l2 pf   609523840      #\ninstructions         6579793505573  # 222.719 float per 1000 inst\nfloat 512            83             # 0.000 AVX-512 per 1000 inst\nfloat 256            946            # 0.000 AVX-256 per 1000 inst\nfloat 128            1465443386798  # 222.719 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         19748403504221 #\nopcache              2905533867944  # 147.128 opcache per 1000 inst\nopcache miss         41922370639    #  1.4% opcache miss rate\nl1 dTLB miss         234043952      # 0.012 L1 dTLB per 1000 inst\nl2 dTLB miss         76014301       # 0.004 L2 dTLB per 1000 inst\ninstructions         19748634163037 #\nicache               76406830087    # 3.869 icache per 1000 inst\nicache miss          6662379260     #  8.7% icache miss rate\nl1 iTLB miss         27224549       # 0.001 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            49125          # 0.000 TLB flush per 1000 inst\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Intel metrics also show cpu-bound stalls for the backend.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              1179.262\non_cpu               0.303          # 4.84 \/ 16 cores\nutime                5637.148\nstime                73.328\nnvcsw                58509          # 80.24%\nnivcsw               14404          # 19.76%\ninblock              2304912        # 1954.54\/sec\nonblock              2008           # 1.70\/sec\ncpu-clock            5710573919435  # 5710.574 seconds\ntask-clock           5710599096564  # 5710.599 seconds\npage faults          68354687       # 11969.793\/sec\ncontext switches     78524          # 13.751\/sec\ncpu migrations       3880           # 0.679\/sec\nmajor page faults    55675          # 9.749\/sec\nminor page faults    68299012       # 11960.043\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             6289632555846  # 122.671 branches per 1000 inst\nbranch misses        4917247843     # 0.08% branch miss\nconditional          6289632579782  # 122.671 conditional branches per 1000 inst\nindirect             1077480290780  # 21.015 indirect branches per 1000 inst\nslots                43206819481880 #\nretiring             20365363088824 # 47.1% (47.1%)\n-- ucode             1830818416962  #     4.2%\n-- fastpath          18534544671862 #    42.9%\nfrontend             2632266679747  #  6.1% ( 6.1%)\n-- latency           1354271430326  #     3.1%\n-- bandwidth         1277995249421  #     3.0%\nbackend              19558375224339 # 45.3% (45.3%)\n-- cpu               16552070779783 #    38.3%\n-- memory            3006304444556  #     7.0%\nspeculation          576520337778   #  1.3% ( 1.3%)\n-- branch mispredict 392102827742   #     0.9%\n-- pipeline restart  184417510036   #     0.4%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           8481833511738  # 1.09 GHz\ninstructions         23656551048100 # 2.79 IPC\nl2 access            9587069567     # 0.665 l2 access per 1000 inst\nl2 miss              4576505692     # 47.74% l2 miss\ncpu-cycles           5156699832810  # 10.2% memory latency\nload stalls          511213801969   #  9.7% l1 bound\nl1 miss              12522557086    #  0.1% l2 bound\nl2 miss              4800858625     #  0.0% l3 bound\nl3 miss              3349985261     #  0.1% dram bound\nstore_stalls         15141260509    #  0.3% store bound\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Process overview shows mostly the bondEngine and repoEngine applications as taking the most time.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>608 processes\n\t 24 bondsEngine.exe       8107.84   102.24\n\t 24 repoEngine.exe        5418.32   135.04\n\t201 clinfo                  54.56    21.08\n\t  9 monteCarloEngin         35.74     0.36\n\t  9 blackScholesAna          4.11     1.58\n\t 38 vulkaninfo               1.14     1.71\n\t  4 vulkani:disk$0           0.12     0.18\n\t  6 glxinfo:gdrv0            0.12     0.10\n\t  6 glxinfo:gl0              0.12     0.10\n\t  6 php                      0.08     0.14\n\t  2 llvmpipe-0               0.06     0.09\n\t  2 llvmpipe-1               0.06     0.09\n\t  2 llvmpipe-10              0.06     0.09\n\t  2 llvmpipe-11              0.06     0.09\n\t  2 llvmpipe-12              0.06     0.09\n\t  2 llvmpipe-13              0.06     0.09\n\t  2 llvmpipe-14              0.06     0.09\n\t  2 llvmpipe-15              0.06     0.09\n\t  2 llvmpipe-2               0.06     0.09\n\t  2 llvmpipe-3               0.06     0.09\n\t  2 llvmpipe-4               0.06     0.09\n\t  2 llvmpipe-5               0.06     0.09\n\t  2 llvmpipe-6               0.06     0.09\n\t  2 llvmpipe-7               0.06     0.09\n\t  2 llvmpipe-8               0.06     0.09\n\t  2 llvmpipe-9               0.06     0.09\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.04\n\t  2 glxinfo:sh0              0.06     0.04\n\t  2 glxinfo:shlo0            0.06     0.04\n\t  6 clang                    0.04     0.06\n\t  3 rocminfo                 0.00     0.03\n\t  1 lspci                    0.00     0.03\n\t 92 sh                       0.00     0.00\n\t 24 financebench             0.00     0.00\n\t 13 dirname                  0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t 12 basename                 0.00     0.00\n\t  9 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  4 gmain                    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 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 class=\"wp-block-paragraph\">Computation blocks<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      950098) financebench     cpu=14 start=6.49  finish=42.64\n        950099) dirname          cpu=4 start=6.49  finish=6.49 \n        950100) financebench     cpu=15 start=6.49  finish=6.49 \n        950101) repoEngine.exe   cpu=2 start=6.49  finish=42.64\n          950102) basename         cpu=4 start=6.49  finish=6.49 \n          950105) repoEngine.exe   cpu=11 start=13.65 finish=42.64\n          950106) repoEngine.exe   cpu=4 start=13.65 finish=42.64\n          950107) repoEngine.exe   cpu=13 start=13.65 finish=42.64\n          950108) repoEngine.exe   cpu=6 start=13.65 finish=42.64\n          950109) repoEngine.exe   cpu=15 start=13.65 finish=42.64\n          950110) repoEngine.exe   cpu=1 start=13.65 finish=42.64\n          950111) repoEngine.exe   cpu=0 start=13.65 finish=42.64\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A collection of four financial benchmarks. Looks like the first two are multi-threaded on half the cores and take the majority of the time. Topdown profile shows backend stalls as high but also a reasonable retirement rate. AMD metrics show <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/financebench\/\"><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-1997","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1997","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=1997"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1997\/revisions"}],"predecessor-version":[{"id":2003,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1997\/revisions\/2003"}],"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=1997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}