{"id":1145,"date":"2024-01-31T01:16:29","date_gmt":"2024-01-31T01:16:29","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1145"},"modified":"2024-01-31T15:26:26","modified_gmt":"2024-01-31T15:26:26","slug":"blogbench","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/blogbench\/","title":{"rendered":"blogbench"},"content":{"rendered":"\n<p>Various file system operations to simulate a server responding to blog type requests. There is a regular pattern of many processes running.<\/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-96.png\" alt=\"\" class=\"wp-image-1201\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-96.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-96-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-96-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows 1\/5 instructions are branches and a high frontend stall rate and low IPC. Interesting progression as the benchmark proceeds.<\/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-133.png\" alt=\"\" class=\"wp-image-1203\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-133.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-133-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-133-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              1079.623\non_cpu               0.775          # 12.40 \/ 16 cores\nutime                626.479\nstime                12757.518\nnvcsw                73243125       # 83.01%\nnivcsw               14993431       # 16.99%\ninblock              2959912896     # 2741618.10\/sec\nonblock              459798480      # 425888.15\/sec\ncpu-clock            13419582557960 # 13419.583 seconds\ntask-clock           13423723045113 # 13423.723 seconds\npage faults          154186         # 11.486\/sec\ncontext switches     88241810       # 6573.572\/sec\ncpu migrations       735112         # 54.762\/sec\nmajor page faults    1184           # 0.088\/sec\nminor page faults    153002         # 11.398\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             4970850530952  # 204.072 branches per 1000 inst\nbranch misses        538477710845   # 10.83% branch miss\nconditional          2623040629198  # 107.686 conditional branches per 1000 inst\nindirect             37891337710    # 1.556 indirect branches per 1000 inst\ncpu-cycles           55221583370294 # 3.19 GHz\ninstructions         24271910195888 # 0.44 IPC low\nslots                110237354811972 #\nretiring             9825952528094  #  8.9% ( 9.9%) low\n-- ucode             74437066062    #     0.1%\n-- fastpath          9751515462032  #     8.8%\nfrontend             54710145602163 # 49.6% (55.1%) high\n-- latency           40378446965442 #    36.6%\n-- bandwidth         14331698636721 #    13.0%\nbackend              34371309469125 # 31.2% (34.6%)\n-- cpu               6359112678567  #     5.8%\n-- memory            28012196790558 #    25.4%\nspeculation          334336833030   #  0.3% ( 0.3%) low\n-- branch mispredict 333511069585   #     0.3%\n-- pipeline restart  825763445      #     0.0%\nsmt-contention       10994435584774 # 10.0% ( 0.0%)\ncpu-cycles           55148842595156 # 3.18 GHz\ninstructions         24193263117001 # 0.44 IPC low\ninstructions         8039343498228  # 115.461 l2 access per 1000 inst\nl2 hit from l1       714674602559   # 26.40% l2 miss\nl2 miss from l1      102585058942   #\nl2 hit from l2 pf    71109015126    #\nl3 hit from l2 pf    73790816609    #\nl3 miss from l2 pf   68659563010    #\ninstructions         8036663877975  # 15.899 float per 1000 inst\nfloat 512            60             # 0.000 AVX-512 per 1000 inst\nfloat 256            638            # 0.000 AVX-256 per 1000 inst\nfloat 128            127776369542   # 15.899 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>This program is too large to fit on my Intel PC with 16 GB of memory. It dies ~two and a half minutes after starting and syslog has an indication of out of memory error<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Jan 31 05:19:23 hobart systemd&#91;1483]: vte-spawn-b19b7cc3-12af-4ccb-a307-5a8207114d9f.scope: systemd-oomd killed 120 process(es) in this unit.\nJan 31 05:19:23 hobart systemd&#91;1483]: vte-spawn-b19b7cc3-12af-4ccb-a307-5a8207114d9f.scope: Consumed 23min 48.045s CPU time.\n<\/code><\/pre>\n\n\n\n<p>Process overview<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1034 processes\n\t666 blogbench            121278.09 2560639.54\n\t 68 clinfo                  18.85    13.69\n\t 12 rm                      11.37   461.20\n\t 38 vulkaninfo               1.15     2.28\n\t  6 php                      0.18     0.68\n\t  4 vulkani:disk$0           0.13     0.24\n\t  6 glxinfo:gdrv0            0.10     0.10\n\t  6 glxinfo:gl0              0.10     0.10\n\t  2 llvmpipe-0               0.07     0.12\n\t  2 llvmpipe-1               0.07     0.12\n\t  2 llvmpipe-10              0.07     0.12\n\t  2 llvmpipe-11              0.07     0.12\n\t  2 llvmpipe-12              0.07     0.12\n\t  2 llvmpipe-13              0.07     0.12\n\t  2 llvmpipe-14              0.07     0.12\n\t  2 llvmpipe-15              0.07     0.12\n\t  2 llvmpipe-2               0.07     0.12\n\t  2 llvmpipe-3               0.07     0.12\n\t  2 llvmpipe-4               0.07     0.12\n\t  2 llvmpipe-5               0.07     0.12\n\t  2 llvmpipe-6               0.07     0.12\n\t  2 llvmpipe-7               0.07     0.12\n\t  2 llvmpipe-8               0.07     0.12\n\t  2 llvmpipe-9               0.07     0.12\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.08\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.00     0.03\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 12 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  6 mkdir                    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 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\n120 maximum processes\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Various file system operations to simulate a server responding to blog type requests. There is a regular pattern of many processes running. Topdown profile shows 1\/5 instructions are branches and a high frontend stall rate and low IPC. Interesting progression <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/blogbench\/\"><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-1145","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1145","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=1145"}],"version-history":[{"count":4,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1145\/revisions"}],"predecessor-version":[{"id":1205,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1145\/revisions\/1205"}],"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=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}