{"id":1403,"date":"2024-02-03T20:52:39","date_gmt":"2024-02-03T20:52:39","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1403"},"modified":"2024-02-03T22:40:13","modified_gmt":"2024-02-03T22:40:13","slug":"aobench","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/aobench\/","title":{"rendered":"aobench"},"content":{"rendered":"\n<p>An ambient occlusion renderer written in C. There is one workload which runs quickly and is single-threaded.<\/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\/02\/systemtime-23.png\" alt=\"\" class=\"wp-image-1427\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-23.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-23-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-23-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows a fair retirement with backend stalls. Branch mispredictions are high while frontend stalls are low.<\/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\/02\/amdtopdown-23.png\" alt=\"\" class=\"wp-image-1428\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-23.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-23-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-23-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              102.495\non_cpu               0.054          # 0.86 \/ 16 cores\nutime                87.363\nstime                1.020\nnvcsw                1999           # 69.43%\nnivcsw               880            # 30.57%\ninblock              0              # 0.00\/sec\nonblock              86264          # 841.64\/sec\ncpu-clock            88410340018    # 88.410 seconds\ntask-clock           88413216623    # 88.413 seconds\npage faults          304139         # 3439.972\/sec\ncontext switches     3221           # 36.431\/sec\ncpu migrations       283            # 3.201\/sec\nmajor page faults    2              # 0.023\/sec\nminor page faults    304137         # 3439.949\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             81795025595    # 92.951 branches per 1000 inst\nbranch misses        3180554743     # 3.89% branch miss\nconditional          47929599290    # 54.467 conditional branches per 1000 inst\nindirect             5305288022     # 6.029 indirect branches per 1000 inst\ncpu-cycles           406522857441   # 0.25 GHz\ninstructions         877863716496   # 2.16 IPC\nslots                815064673812   #\nretiring             313009309772   # 38.4% (38.4%)\n-- ucode             595913736      #     0.1%\n-- fastpath          312413396036   #    38.3%\nfrontend             88237262487    # 10.8% (10.8%)\n-- latency           48716465088    #     6.0%\n-- bandwidth         39520797399    #     4.8%\nbackend              263992965803   # 32.4% (32.4%)\n-- cpu               224705468131   #    27.6%\n-- memory            39287497672    #     4.8%\nspeculation          149780891444   # 18.4% (18.4%) high\n-- branch mispredict 148122841279   #    18.2%\n-- pipeline restart  1658050165     #     0.2%\nsmt-contention       44009663       #  0.0% ( 0.0%)\ncpu-cycles           406560579104   # 0.25 GHz\ninstructions         878913529305   # 2.16 IPC\ninstructions         293297866428   # 0.482 l2 access per 1000 inst\nl2 hit from l1       121907588      # 18.04% l2 miss\nl2 miss from l1      14912506       #\nl2 hit from l2 pf    8978579        #\nl3 hit from l2 pf    4321477        #\nl3 miss from l2 pf   6292570        #\ninstructions         293187261114   # 286.414 float per 1000 inst\nfloat 512            45             # 0.000 AVX-512 per 1000 inst\nfloat 256            434            # 0.000 AVX-256 per 1000 inst\nfloat 128            83972975802    # 286.414 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         2678177        #\nopcache              992616         # 370.631 opcache per 1000 inst\nopcache miss         535144         # 53.9% opcache miss rate\nl1 dTLB miss         6691           # 2.498 L1 dTLB per 1000 inst\nl2 dTLB miss         1192           # 0.445 L2 dTLB per 1000 inst\ninstructions         2716755        #\nicache               1316655        # 484.643 icache per 1000 inst\nicache miss          110449         #  8.4% icache miss rate\nl1 iTLB miss         12             # 0.004 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            19             # 0.007 TLB flush per 1000 inst<\/code><\/pre>\n\n\n\n<p>Intel metrics show most of the memory time in L1 and hence also little backend memory stalls.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              99.367\non_cpu               0.053          # 0.85 \/ 16 cores\nutime                83.595\nstime                0.708\nnvcsw                1838           # 77.85%\nnivcsw               523            # 22.15%\ninblock              376            # 3.78\/sec\nonblock              75024          # 755.02\/sec\ncpu-clock            84314176287    # 84.314 seconds\ntask-clock           84316871118    # 84.317 seconds\npage faults          293264         # 3478.118\/sec\ncontext switches     2682           # 31.809\/sec\ncpu migrations       256            # 3.036\/sec\nmajor page faults    3              # 0.036\/sec\nminor page faults    293261         # 3478.082\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             81437652894    # 92.693 branches per 1000 inst\nbranch misses        3150488706     # 3.87% branch miss\nconditional          81437664862    # 92.693 conditional branches per 1000 inst\nindirect             5324683966     # 6.061 indirect branches per 1000 inst\nslots                1909779189608  #\nretiring             844514250146   # 44.2% (44.2%)\n-- ucode             22927963393    #     1.2%\n-- fastpath          821586286753   #    43.0%\nfrontend             97708395771    #  5.1% ( 5.1%)\n-- latency           47599342664    #     2.5%\n-- bandwidth         50109053107    #     2.6%\nbackend              424540183774   # 22.2% (22.2%)\n-- cpu               384651028950   #    20.1%\n-- memory            39889154824    #     2.1%\nspeculation          543044850727   # 28.4% (28.4%) high\n-- branch mispredict 540435652666   #    28.3%\n-- pipeline restart  2609198061     #     0.1%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           318526215737   # 0.20 GHz\ninstructions         878918735087   # 2.76 IPC\nl2 access            306437238      # 0.349 l2 access per 1000 inst\nl2 miss              95837357       # 31.27% l2 miss\ncpu-cycles           318387579528   #  7.0% memory latency\nload stalls          22063711216    #  6.7% l1 bound\nl1 miss              799531261      #  0.1% l2 bound\nl2 miss              402304447      #  0.0% l3 bound\nl3 miss              286747182      #  0.1% dram bound\nstore_stalls         159923946      #  0.1% store bound\n<\/code><\/pre>\n\n\n\n<p>Process overview shows three invocations of &#8220;ao&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>354 processes\n\t  3 ao                      86.32     0.24\n\t 68 clinfo                  15.86     6.66\n\t 38 vulkaninfo               0.96     1.15\n\t  6 glxinfo:gdrv0            0.12     0.06\n\t  6 glxinfo:gl0              0.12     0.06\n\t  4 vulkani:disk$0           0.10     0.12\n\t  6 php                      0.06     0.08\n\t  2 glxinfo                  0.06     0.03\n\t  2 glxinfo:cs0              0.06     0.03\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.05     0.07\n\t  2 llvmpipe-0               0.05     0.06\n\t  2 llvmpipe-1               0.05     0.06\n\t  2 llvmpipe-10              0.05     0.06\n\t  2 llvmpipe-11              0.05     0.06\n\t  2 llvmpipe-12              0.05     0.06\n\t  2 llvmpipe-13              0.05     0.06\n\t  2 llvmpipe-14              0.05     0.06\n\t  2 llvmpipe-15              0.05     0.06\n\t  2 llvmpipe-2               0.05     0.06\n\t  2 llvmpipe-3               0.05     0.06\n\t  2 llvmpipe-4               0.05     0.06\n\t  2 llvmpipe-5               0.05     0.06\n\t  2 llvmpipe-6               0.05     0.06\n\t  2 llvmpipe-7               0.05     0.06\n\t  2 llvmpipe-8               0.05     0.06\n\t  2 llvmpipe-9               0.05     0.06\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.00     0.02\n\t  1 ps                       0.00     0.01\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 aobench                  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 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 blocks<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      356574) aobench          cpu=6 start=5.50  finish=34.37\n        356575) ao               cpu=8 start=5.51  finish=34.36\n      356578) aobench          cpu=15 start=38.37 finish=67.28\n        356579) ao               cpu=0 start=38.38 finish=67.27\n      356580) aobench          cpu=14 start=71.28 finish=100.13\n        356581) ao               cpu=7 start=71.28 finish=100.12\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>An ambient occlusion renderer written in C. There is one workload which runs quickly and is single-threaded. Topdown profile shows a fair retirement with backend stalls. Branch mispredictions are high while frontend stalls are low. AMD metrics Intel metrics show <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/aobench\/\"><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-1403","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1403","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=1403"}],"version-history":[{"count":3,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1403\/revisions"}],"predecessor-version":[{"id":1437,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1403\/revisions\/1437"}],"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=1403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}