{"id":1949,"date":"2024-03-03T19:00:29","date_gmt":"2024-03-03T19:00:29","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1949"},"modified":"2024-03-04T00:20:35","modified_gmt":"2024-03-04T00:20:35","slug":"dbench","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/dbench\/","title":{"rendered":"dbench"},"content":{"rendered":"\n<p>A test of file-system calls for testing disk performance. There are six different configurations and I picked the second smallest one. It produces one result. An interesting diviion of how many runnable processes up to the &#8220;6&#8221; I provided. Also  a high amount of I\/O wait as expected.<\/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-13.png\" alt=\"\" class=\"wp-image-1962\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-13.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-13-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-13-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>System profile shows that frontend stalls predominate.<\/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-14.png\" alt=\"\" class=\"wp-image-1963\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-14.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-14-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-14-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show a high frontend rate with a high opcache miss, not much floating point and medium L2 acces.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              2176.538\non_cpu               0.189          # 3.02 \/ 16 cores\nutime                843.344\nstime                5722.115\nnvcsw                39343228       # 91.98%\nnivcsw               3431889        # 8.02%\ninblock              16             # 0.01\/sec\nonblock              1951980816     # 896828.18\/sec\ncpu-clock            6544199386258  # 6544.199 seconds\ntask-clock           6557405231180  # 6557.405 seconds\npage faults          149116         # 22.740\/sec\ncontext switches     42785835       # 6524.812\/sec\ncpu migrations       246100         # 37.530\/sec\nmajor page faults    13             # 0.002\/sec\nminor page faults    149103         # 22.738\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             5369777313397  # 201.000 branches per 1000 inst\nbranch misses        498901061495   # 9.29% branch miss\nconditional          2985957828338  # 111.770 conditional branches per 1000 inst\nindirect             120006447001   # 4.492 indirect branches per 1000 inst\ncpu-cycles           26885010670698 # 0.77 GHz\ninstructions         26691633015506 # 0.99 IPC\nslots                53800271237178 #\nretiring             9965806851258  # 18.5% (18.7%)\n-- ucode             45841046628    #     0.1%\n-- fastpath          9919965804630  #    18.4%\nfrontend             36762333555880 # 68.3% (68.9%) high\n-- latency           30194936859138 #    56.1%\n-- bandwidth         6567396696742  #    12.2%\nbackend              6261672572771  # 11.6% (11.7%) low\n-- cpu               1445619174398  #     2.7%\n-- memory            4816053398373  #     9.0%\nspeculation          368537694187   #  0.7% ( 0.7%) low\n-- branch mispredict 368086932974   #     0.7%\n-- pipeline restart  450761213      #     0.0%\nsmt-contention       441420103436   #  0.8% ( 0.0%)\ncpu-cycles           26872006595681 # 0.77 GHz\ninstructions         26663335352982 # 0.99 IPC\ninstructions         8880068374203  # 63.906 l2 access per 1000 inst\nl2 hit from l1       507717865287   # 12.11% l2 miss\nl2 miss from l1      44342179500    #\nl2 hit from l2 pf    35398150037    #\nl3 hit from l2 pf    11069911894    #\nl3 miss from l2 pf   13300450922    #\ninstructions         8889672813205  # 23.840 float per 1000 inst\nfloat 512            60             # 0.000 AVX-512 per 1000 inst\nfloat 256            404            # 0.000 AVX-256 per 1000 inst\nfloat 128            211927312478   # 23.840 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         26623999186545 #\nopcache              8116073436265  # 304.841 opcache per 1000 inst\nopcache miss         4676200238691  # 57.6% opcache miss rate\nl1 dTLB miss         47731066114    # 1.793 L1 dTLB per 1000 inst\nl2 dTLB miss         1783025545     # 0.067 L2 dTLB per 1000 inst\ninstructions         26698545195061 #\nicache               10188477109326 # 381.612 icache per 1000 inst\nicache miss          1097498334140  # 10.8% icache miss rate\nl1 iTLB miss         1220522879     # 0.046 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            59672          # 0.000 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              2177.876\non_cpu               0.048          # 0.77 \/ 16 cores\nutime                325.393\nstime                1352.528\nnvcsw                5320085        # 92.93%\nnivcsw               404512         # 7.07%\ninblock              1056           # 0.48\/sec\nonblock              273288160      # 125483.80\/sec\ncpu-clock            1631494311265  # 1631.494 seconds\ntask-clock           1639148551423  # 1639.149 seconds\npage faults          139350         # 85.014\/sec\ncontext switches     5735488        # 3499.065\/sec\ncpu migrations       872210         # 532.112\/sec\nmajor page faults    2              # 0.001\/sec\nminor page faults    139347         # 85.012\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             587123993695   # 175.735 branches per 1000 inst\nbranch misses        4102810713     # 0.70% branch miss\nconditional          587124006175   # 175.735 conditional branches per 1000 inst\nindirect             66106187961    # 19.787 indirect branches per 1000 inst\nslots                8690665163174  #\nretiring             2837400948150  # 32.6% (32.6%)\n-- ucode             338512018229   #     3.9%\n-- fastpath          2498888929921  #    28.8%\nfrontend             2763739105775  # 31.8% (31.8%)\n-- latency           1232575523042  #    14.2%\n-- bandwidth         1531163582733  #    17.6%\nbackend              2728568799830  # 31.4% (31.4%)\n-- cpu               999833389376   #    11.5%\n-- memory            1728735410454  #    19.9%\nspeculation          269154958294   #  3.1% ( 3.1%)\n-- branch mispredict 217893008638   #     2.5%\n-- pipeline restart  51261949656    #     0.6%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           1917863811967  # 0.05 GHz\ninstructions         3664555557015  # 1.91 IPC\nl2 access            153603328933   # 53.640 l2 access per 1000 inst\nl2 miss              30185565429    # 19.65% l2 miss\ncpu-cycles           1484726815764  # 25.0% memory latency\nload stalls          344343365955   #  5.6% l1 bound\nl1 miss              261227496127   #  7.8% l2 bound\nl2 miss              144992619062   #  5.7% l3 bound\nl3 miss              60295458648    #  4.1% dram bound\nstore_stalls         27032209086    #  1.8% store bound\n<\/code><\/pre>\n\n\n\n<p>Process profile<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>374 processes\n\t 24 dbench                 848.15  5644.25\n\t 68 clinfo                  16.53     6.65\n\t 38 vulkaninfo               1.52     0.95\n\t  6 php                      0.21     0.12\n\t  4 vulkani:disk$0           0.16     0.10\n\t  6 glxinfo:gdrv0            0.12     0.04\n\t  6 glxinfo:gl0              0.12     0.04\n\t  2 llvmpipe-0               0.08     0.05\n\t  2 llvmpipe-1               0.08     0.05\n\t  2 llvmpipe-10              0.08     0.05\n\t  2 llvmpipe-11              0.08     0.05\n\t  2 llvmpipe-12              0.08     0.05\n\t  2 llvmpipe-13              0.08     0.05\n\t  2 llvmpipe-14              0.08     0.05\n\t  2 llvmpipe-15              0.08     0.05\n\t  2 llvmpipe-2               0.08     0.05\n\t  2 llvmpipe-3               0.08     0.05\n\t  2 llvmpipe-4               0.08     0.05\n\t  2 llvmpipe-5               0.08     0.05\n\t  2 llvmpipe-6               0.08     0.05\n\t  2 llvmpipe-7               0.08     0.05\n\t  2 llvmpipe-8               0.08     0.05\n\t  2 llvmpipe-9               0.08     0.05\n\t  2 glxinfo                  0.06     0.02\n\t  2 glxinfo:cs0              0.06     0.02\n\t  2 glxinfo:disk$0           0.06     0.02\n\t  2 glxinfo:sh0              0.06     0.02\n\t  2 glxinfo:shlo0            0.06     0.02\n\t  6 clang                    0.05     0.07\n\t  3 rocminfo                 0.00     0.03\n\t  1 lspci                    0.00     0.02\n\t  1 ps                       0.00     0.01\n\t 83 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t 10 gsettings                0.00     0.00\n\t  9 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  2 cc                       0.00     0.00\n\t  2 dconf worker             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 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 structures<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      894708) dbench           cpu=2 start=5.76  finish=725.95\n        894709) dbench           cpu=7 start=5.77  finish=725.95\n          894710) dbench           cpu=14 start=5.77  finish=725.95\n          894711) dbench           cpu=5 start=5.77  finish=725.95\n          894712) dbench           cpu=1 start=5.77  finish=725.95\n          894713) dbench           cpu=0 start=5.77  finish=725.95\n          894714) dbench           cpu=15 start=5.77  finish=725.95\n          894715) dbench           cpu=2 start=5.77  finish=725.95\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A test of file-system calls for testing disk performance. There are six different configurations and I picked the second smallest one. It produces one result. An interesting diviion of how many runnable processes up to the &#8220;6&#8221; I provided. Also <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/dbench\/\"><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-1949","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1949","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=1949"}],"version-history":[{"count":3,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1949\/revisions"}],"predecessor-version":[{"id":1965,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1949\/revisions\/1965"}],"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=1949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}