{"id":441,"date":"2024-01-13T00:40:35","date_gmt":"2024-01-13T00:40:35","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=441"},"modified":"2024-01-13T03:05:42","modified_gmt":"2024-01-13T03:05:42","slug":"encode-flac","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/encode-flac\/","title":{"rendered":"encode-flac"},"content":{"rendered":"\n<p>Encode-flac is one of several quick-running encode benchmarks.  These are quick-running high-IPC programs with just a few threads.<\/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-3.png\" alt=\"\" class=\"wp-image-463\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-3.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-3-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-3-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>This benchmark has a high retirement rate and is more CPU-bound than memory bound with low L2 miss.<\/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-41.png\" alt=\"\" class=\"wp-image-465\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-41.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-41-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-41-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show floating point code with not many branches.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              93.904\non_cpu               0.048          # 0.76 \/ 16 cores\nutime                66.862\nstime                4.649\nnvcsw                3722           # 87.95%\nnivcsw               510            # 12.05%\ninblock              0              # 0.00\/sec\nonblock              5640680        # 60068.41\/sec\ncpu-clock            71525785522    # 71.526 seconds\ntask-clock           71529766766    # 71.530 seconds\npage faults          162447         # 2271.041\/sec\ncontext switches     4477           # 62.589\/sec\ncpu migrations       270            # 3.775\/sec\nmajor page faults    2              # 0.028\/sec\nminor page faults    162445         # 2271.013\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             65228324666    # 71.850 branches per 1000 inst\nbranch misses        1591404724     # 2.44% branch miss\nconditional          59579320218    # 65.628 conditional branches per 1000 inst\nindirect             490112514      # 0.540 indirect branches per 1000 inst\ncpu-cycles           323977802299   # 0.22 GHz\ninstructions         904831623895   # 2.79 IPC\nslots                651847439922   #\nretiring             311005626504   # 47.7% (47.7%)\n-- ucode             65161529       #     0.0%\n-- fastpath          310940464975   #    47.7%\nfrontend             65843616795    # 10.1% (10.1%)\n-- latency           46788223812    #     7.2%\n-- bandwidth         19055392983    #     2.9%\nbackend              244873674549   # 37.6% (37.6%)\n-- cpu               153325136436   #    23.5%\n-- memory            91548538113    #    14.0%\nspeculation          30043583943    #  4.6% ( 4.6%)\n-- branch mispredict 29995069423    #     4.6%\n-- pipeline restart  48514520       #     0.0%\nsmt-contention       80673799       #  0.0% ( 0.0%)\ncpu-cycles           323744049163   # 0.22 GHz\ninstructions         904518738078   # 2.79 IPC\ninstructions         302395723028   # 15.402 l2 access per 1000 inst\nl2 hit from l1       3959063208     # 2.31% l2 miss\nl2 miss from l1      61181661       #\nl2 hit from l2 pf    652279775      #\nl3 hit from l2 pf    20257366       #\nl3 miss from l2 pf   25932827       #\ninstructions         302701668926   # 166.545 float per 1000 inst\nfloat 512            96             # 0.000 AVX-512 per 1000 inst\nfloat 256            548            # 0.000 AVX-256 per 1000 inst\nfloat 128            50413408213    # 166.545 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>Intel metrics<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              113.828\non_cpu               0.048          # 0.76 \/ 16 cores\nutime                83.861\nstime                3.127\nnvcsw                2748           # 86.50%\nnivcsw               429            # 13.50%\ninblock              162072         # 1423.83\/sec\nonblock              5629448        # 49455.54\/sec\ncpu-clock            86979198019    # 86.979 seconds\ntask-clock           86983205871    # 86.983 seconds\npage faults          146728         # 1686.854\/sec\ncontext switches     3522           # 40.491\/sec\ncpu migrations       337            # 3.874\/sec\nmajor page faults    11             # 0.126\/sec\nminor page faults    146717         # 1686.728\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             63988050279    # 70.760 branches per 1000 inst\nbranch misses        1163447765     # 1.82% branch miss\nconditional          63988063783    # 70.760 conditional branches per 1000 inst\nindirect             487545594      # 0.539 indirect branches per 1000 inst\nslots                1954170198794  #\nretiring             942912014258   # 48.3% (48.3%)\n-- ucode             99080065199    #     5.1%\n-- fastpath          843831949059   #    43.2%\nfrontend             104879180630   #  5.4% ( 5.4%)\n-- latency           40085804158    #     2.1%\n-- bandwidth         64793376472    #     3.3%\nbackend              751955215673   # 38.5% (38.5%)\n-- cpu               625940284325   #    32.0%\n-- memory            126014931348   #     6.4%\nspeculation          160840325105   #  8.2% ( 8.2%)\n-- branch mispredict 157503943312   #     8.1%\n-- pipeline restart  3336381793     #     0.2%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           326126427127   # 0.18 GHz\ninstructions         904427032045   # 2.77 IPC\nl2 access            7350624832     # 8.130 l2 access per 1000 inst\nl2 miss              336115083      # 4.57% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process structure shows test overhead (clinfo) is a significant portion of time.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>397 processes\n\t 50 flac                    65.80     3.55\n\t 68 clinfo                  15.86     5.99\n\t 38 vulkaninfo               1.14     1.14\n\t  4 vulkani:disk$0           0.12     0.12\n\t  6 glxinfo:gdrv0            0.12     0.09\n\t  2 llvmpipe-0               0.06     0.06\n\t  2 llvmpipe-1               0.06     0.06\n\t  2 llvmpipe-10              0.06     0.06\n\t  2 llvmpipe-11              0.06     0.06\n\t  2 llvmpipe-12              0.06     0.06\n\t  2 llvmpipe-13              0.06     0.06\n\t  2 llvmpipe-14              0.06     0.06\n\t  2 llvmpipe-15              0.06     0.06\n\t  2 llvmpipe-2               0.06     0.06\n\t  2 llvmpipe-3               0.06     0.06\n\t  2 llvmpipe-4               0.06     0.06\n\t  2 llvmpipe-5               0.06     0.06\n\t  2 llvmpipe-6               0.06     0.06\n\t  2 llvmpipe-7               0.06     0.06\n\t  2 llvmpipe-8               0.06     0.06\n\t  2 llvmpipe-9               0.06     0.06\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 php                      0.05     0.10\n\t  6 clang                    0.04     0.07\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.00     0.03\n\t 82 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t 10 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 encode-flac              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 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>Process structure shows processes launched in groups of 10, though not all of them run as shown by process queue at top of the page.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      40642) encode-flac      cpu=15 start=5.64  finish=19.65\n        40643) flac             cpu=1 start=5.65  finish=7.29 \n        40644) flac             cpu=15 start=7.29  finish=8.67 \n        40645) flac             cpu=1 start=8.67  finish=10.03\n        40646) flac             cpu=15 start=10.03 finish=11.41\n        40647) flac             cpu=1 start=11.42 finish=12.78\n        40648) flac             cpu=7 start=12.78 finish=14.16\n        40649) flac             cpu=0 start=14.16 finish=15.53\n        40652) flac             cpu=15 start=15.53 finish=16.91\n        40653) flac             cpu=9 start=16.91 finish=18.28\n        40654) flac             cpu=2 start=18.28 finish=19.65\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Encode-flac is one of several quick-running encode benchmarks. These are quick-running high-IPC programs with just a few threads. This benchmark has a high retirement rate and is more CPU-bound than memory bound with low L2 miss. AMD metrics show floating <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/encode-flac\/\"><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-441","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/441","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=441"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/441\/revisions"}],"predecessor-version":[{"id":466,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/441\/revisions\/466"}],"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=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}