{"id":501,"date":"2024-01-13T20:26:38","date_gmt":"2024-01-13T20:26:38","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=501"},"modified":"2024-01-13T21:28:46","modified_gmt":"2024-01-13T21:28:46","slug":"avifenc","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/avifenc\/","title":{"rendered":"avifenc"},"content":{"rendered":"\n<p>Testing the AOMedia libavif encoding of a JPEG image to AV1 Image Format (AVIF). There are five workloads with the first ones taking longer and the later ones quicker.<\/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-10.png\" alt=\"\" class=\"wp-image-505\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-10.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-10-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-10-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Overall a moderate retirement rate that is gated by frontend latency more than other areas.<\/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-48.png\" alt=\"\" class=\"wp-image-507\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-48.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-48-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-48-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show a moderate floating point and some L2 access but not much beyond L2.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              776.030\non_cpu               0.646          # 10.33 \/ 16 cores\nutime                7988.946\nstime                29.236\nnvcsw                8249           # 9.62%\nnivcsw               77530          # 90.38%\ninblock              48             # 0.06\/sec\nonblock              2390352        # 3080.23\/sec\ncpu-clock            8018509489294  # 8018.509 seconds\ntask-clock           8018569834006  # 8018.570 seconds\npage faults          14178882       # 1768.256\/sec\ncontext switches     89454          # 11.156\/sec\ncpu migrations       853            # 0.106\/sec\nmajor page faults    6              # 0.001\/sec\nminor page faults    14178876       # 1768.255\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             4999746488897  # 88.461 branches per 1000 inst\nbranch misses        183057751032   # 3.66% branch miss\nconditional          3993200127251  # 70.652 conditional branches per 1000 inst\nindirect             131442769397   # 2.326 indirect branches per 1000 inst\ncpu-cycles           31496871284503 # 2.53 GHz\ninstructions         56521896350795 # 1.79 IPC\nslots                62999784287940 #\nretiring             19017089379488 # 30.2% (40.8%)\n-- ucode             27844082154    #     0.0%\n-- fastpath          18989245297334 #    30.1%\nfrontend             16572601697641 # 26.3% (35.6%)\n-- latency           11800440778260 #    18.7%\n-- bandwidth         4772160919381  #     7.6%\nbackend              8950046575799  # 14.2% (19.2%)\n-- cpu               2128369509241  #     3.4%\n-- memory            6821677066558  #    10.8%\nspeculation          2041783535763  #  3.2% ( 4.4%)\n-- branch mispredict 2027861096394  #     3.2%\n-- pipeline restart  13922439369    #     0.0%\nsmt-contention       16418232029740 # 26.1% ( 0.0%)\ncpu-cycles           31502845615599 # 2.53 GHz\ninstructions         56531672686501 # 1.79 IPC\ninstructions         18842407946560 # 42.197 l2 access per 1000 inst\nl2 hit from l1       760501763207   # 1.67% l2 miss\nl2 miss from l1      6393162262     #\nl2 hit from l2 pf    27683711157    #\nl3 hit from l2 pf    5594154536     #\nl3 miss from l2 pf   1307684273     #\ninstructions         18829007448200 # 147.987 float per 1000 inst\nfloat 512            63             # 0.000 AVX-512 per 1000 inst\nfloat 256            358            # 0.000 AVX-256 per 1000 inst\nfloat 128            2786445041761  # 147.987 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         15968          # 0.000 scalar 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              956.784\non_cpu               0.665          # 10.65 \/ 16 cores\nutime                10165.201\nstime                22.171\nnvcsw                7196           # 8.21%\nnivcsw               80461          # 91.79%\ninblock              57248          # 59.83\/sec\nonblock              2379104        # 2486.56\/sec\ncpu-clock            10187609455299 # 10187.609 seconds\ntask-clock           10187653273451 # 10187.653 seconds\npage faults          14163058       # 1390.218\/sec\ncontext switches     92244          # 9.054\/sec\ncpu migrations       1442           # 0.142\/sec\nmajor page faults    336            # 0.033\/sec\nminor page faults    14162722       # 1390.185\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             5009193900823  # 88.583 branches per 1000 inst\nbranch misses        199137122570   # 3.98% branch miss\nconditional          5009193921015  # 88.583 conditional branches per 1000 inst\nindirect             1467672076348  # 25.954 indirect branches per 1000 inst\nslots                53403197834060 #\nretiring             29484351019190 # 55.2% (55.2%)\n-- ucode             1741320683354  #     3.3%\n-- fastpath          27743030335836 #    52.0%\nfrontend             14595687311600 # 27.3% (27.3%)\n-- latency           5657081227319  #    10.6%\n-- bandwidth         8938606084281  #    16.7%\nbackend              3226373489203  #  6.0% ( 6.0%)\n-- cpu               2198382173669  #     4.1%\n-- memory            1027991315534  #     1.9%\nspeculation          6392542097180  # 12.0% (12.0%)\n-- branch mispredict 6291794118001  #    11.8%\n-- pipeline restart  100747979179   #     0.2%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           30333382233266 # 1.98 GHz\ninstructions         54496813365970 # 1.80 IPC\nl2 access            1080131034156  # 36.968 l2 access per 1000 inst\nl2 miss              29894399020    # 2.77% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process structure<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>605 processes\n\t 30 avifenc               7972.69    28.53\n\t 68 clinfo                  16.12     6.32\n\t 38 vulkaninfo               1.33     0.95\n\t225 aom enc worker           0.30     0.00\n\t  4 vulkani:disk$0           0.14     0.10\n\t  6 php                      0.12     0.12\n\t  6 glxinfo:gdrv0            0.12     0.10\n\t  6 clang                    0.07     0.05\n\t  2 llvmpipe-0               0.07     0.05\n\t  2 llvmpipe-1               0.07     0.05\n\t  2 llvmpipe-10              0.07     0.05\n\t  2 llvmpipe-11              0.07     0.05\n\t  2 llvmpipe-12              0.07     0.05\n\t  2 llvmpipe-13              0.07     0.05\n\t  2 llvmpipe-14              0.07     0.05\n\t  2 llvmpipe-15              0.07     0.05\n\t  2 llvmpipe-2               0.07     0.05\n\t  2 llvmpipe-3               0.07     0.05\n\t  2 llvmpipe-4               0.07     0.05\n\t  2 llvmpipe-5               0.07     0.05\n\t  2 llvmpipe-6               0.07     0.05\n\t  2 llvmpipe-7               0.07     0.05\n\t  2 llvmpipe-8               0.07     0.05\n\t  2 llvmpipe-9               0.07     0.05\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  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.00     0.02\n\t  1 ps                       0.00     0.01\n\t 90 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t 12 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  3 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 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 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>Straightforward process structure with workers on each core.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      93101) avifenc          cpu=14 start=6.01  finish=144.91\n        93102) avifenc          cpu=8 start=6.01  finish=144.90\n          93103) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93104) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93105) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93106) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93107) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93108) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93109) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93110) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93111) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93112) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93113) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93114) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93115) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93116) aom enc worker   cpu=0 start=6.74  finish=144.84\n          93117) aom enc worker   cpu=0 start=6.74  finish=144.84\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Testing the AOMedia libavif encoding of a JPEG image to AV1 Image Format (AVIF). There are five workloads with the first ones taking longer and the later ones quicker. Overall a moderate retirement rate that is gated by frontend latency <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/avifenc\/\"><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-501","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/501","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=501"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/501\/revisions"}],"predecessor-version":[{"id":508,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/501\/revisions\/508"}],"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=501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}