{"id":519,"date":"2024-01-14T00:39:39","date_gmt":"2024-01-14T00:39:39","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=519"},"modified":"2024-01-14T14:52:49","modified_gmt":"2024-01-14T14:52:49","slug":"kvazaar","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/kvazaar\/","title":{"rendered":"kvazaar"},"content":{"rendered":"\n<p>kvazaar is a CPU-based H.265\/HVEC video encoder. There are 10 workloads with slightly different profiles.<\/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-12.png\" alt=\"\" class=\"wp-image-536\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-12.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-12-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-12-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown shows a high retirement rate and  a moderately high IPC and low backend stalls.<\/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-50.png\" alt=\"\" class=\"wp-image-538\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-50.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-50-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-50-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show moderate branches and floating point.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              912.119\non_cpu               0.693          # 11.09 \/ 16 cores\nutime                9932.777\nstime                182.600\nnvcsw                12845413       # 64.74%\nnivcsw               6994878        # 35.26%\ninblock              264            # 0.29\/sec\nonblock              23160          # 25.39\/sec\ncpu-clock            10114465297623 # 10114.465 seconds\ntask-clock           10116764979019 # 10116.765 seconds\npage faults          13235254       # 1308.250\/sec\ncontext switches     19844222       # 1961.519\/sec\ncpu migrations       640605         # 63.321\/sec\nmajor page faults    2              # 0.000\/sec\nminor page faults    13235252       # 1308.249\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             7040079894927  # 86.141 branches per 1000 inst\nbranch misses        138117270076   # 1.96% branch miss\nconditional          5723817787375  # 70.036 conditional branches per 1000 inst\nindirect             102196241280   # 1.250 indirect branches per 1000 inst\ncpu-cycles           38380640746285 # 2.68 GHz\ninstructions         81778290332723 # 2.13 IPC\nslots                76697920806090 #\nretiring             27177072679714 # 35.4% (53.4%)\n-- ucode             48378509254    #     0.1%\n-- fastpath          27128694170460 #    35.4%\nfrontend             9899551173886  # 12.9% (19.4%)\n-- latency           6468259542018  #     8.4%\n-- bandwidth         3431291631868  #     4.5%\nbackend              12192709447823 # 15.9% (24.0%)\n-- cpu               4881665849323  #     6.4%\n-- memory            7311043598500  #     9.5%\nspeculation          1627119071288  #  2.1% ( 3.2%)\n-- branch mispredict 1597452055902  #     2.1%\n-- pipeline restart  29667015386    #     0.0%\nsmt-contention       25800454064934 # 33.6% ( 0.0%)\ncpu-cycles           38360593720371 # 2.68 GHz\ninstructions         81788694324287 # 2.13 IPC\ninstructions         27231365910883 # 27.847 l2 access per 1000 inst\nl2 hit from l1       631990655342   # 6.24% l2 miss\nl2 miss from l1      26119051706    #\nl2 hit from l2 pf    105109661227   #\nl3 hit from l2 pf    14533190300    #\nl3 miss from l2 pf   6683330307     #\ninstructions         27234833281412 # 118.372 float per 1000 inst\nfloat 512            147            # 0.000 AVX-512 per 1000 inst\nfloat 256            710            # 0.000 AVX-256 per 1000 inst\nfloat 128            3223855176187  # 118.372 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              1752.708\non_cpu               0.729          # 11.67 \/ 16 cores\nutime                20189.555\nstime                259.916\nnvcsw                21337265       # 79.18%\nnivcsw               5609049        # 20.82%\ninblock              18227048       # 10399.36\/sec\nonblock              16296          # 9.30\/sec\ncpu-clock            20444081646099 # 20444.082 seconds\ntask-clock           20448609794012 # 20448.610 seconds\npage faults          22956704       # 1122.654\/sec\ncontext switches     26954173       # 1318.142\/sec\ncpu migrations       1618772        # 79.163\/sec\nmajor page faults    8              # 0.000\/sec\nminor page faults    22956696       # 1122.653\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             10204816339904 # 85.012 branches per 1000 inst\nbranch misses        202054338817   # 1.98% branch miss\nconditional          10204816402432 # 85.012 conditional branches per 1000 inst\nindirect             3083216649874  # 25.685 indirect branches per 1000 inst\nslots                85694368775780 #\nretiring             52854901304730 # 61.7% (61.7%)\n-- ucode             3132879793843  #     3.7%\n-- fastpath          49722021510887 #    58.0%\nfrontend             17834242027048 # 20.8% (20.8%)\n-- latency           7647569102622  #     8.9%\n-- bandwidth         10186672924426 #    11.9%\nbackend              6850505551383  #  8.0% ( 8.0%)\n-- cpu               3568656233437  #     4.2%\n-- memory            3281849317946  #     3.8%\nspeculation          8599470895031  # 10.0% (10.0%)\n-- branch mispredict 8328765172853  #     9.7%\n-- pipeline restart  270705722178   #     0.3%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           51411642310115 # 2.26 GHz\ninstructions         110096175049561 # 2.14 IPC\nl2 access            1142673413867  # 21.984 l2 access per 1000 inst\nl2 miss              176640295281   # 15.46% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process info shows most time spent with kvazaar process.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1320 processes\n\t840 kvazaar              178389.11  2599.01\n\t 68 clinfo                  16.20     5.99\n\t 38 vulkaninfo               1.13     1.15\n\t  6 php                      0.19     0.19\n\t  6 glxinfo:gdrv0            0.14     0.10\n\t  4 vulkani:disk$0           0.12     0.12\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 clang                    0.05     0.07\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.01     0.02\n\t100 sh                       0.00     0.00\n\t 91 sed                      0.00     0.00\n\t 30 ls                       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 phoronix-test-s          0.00     0.00\n\t  3 dconf worker             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 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 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>Core computation pieces<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      107773) kvazaar          cpu=1 start=5.79  finish=71.89\n        107774) kvazaar          cpu=10 start=5.79  finish=71.88\n          107775) kvazaar          cpu=13 start=5.79  finish=5.79 \n            107776) kvazaar          cpu=6 start=5.79  finish=5.79 \n          107777) kvazaar          cpu=7 start=5.79  finish=5.79 \n          107778) kvazaar          cpu=3 start=5.79  finish=5.80 \n            107779) kvazaar          cpu=8 start=5.79  finish=5.79 \n            107780) sed              cpu=13 start=5.79  finish=5.79 \n          107781) kvazaar          cpu=7 start=5.80  finish=5.80 \n            107782) ls               cpu=8 start=5.80  finish=5.80 \n            107783) sed              cpu=3 start=5.80  finish=5.80 \n          107784) kvazaar          cpu=9 start=5.80  finish=5.80 \n          107785) kvazaar          cpu=8 start=5.80  finish=5.80 \n            107786) kvazaar          cpu=13 start=5.80  finish=5.80 \n            107787) sed              cpu=3 start=5.80  finish=5.80 \n          107788) kvazaar          cpu=11 start=5.81  finish=71.88\n          107789) kvazaar          cpu=9 start=5.81  finish=71.88\n          107790) kvazaar          cpu=3 start=5.81  finish=71.88\n          107791) kvazaar          cpu=15 start=5.81  finish=71.88\n          107792) kvazaar          cpu=4 start=5.81  finish=71.88\n          107793) kvazaar          cpu=2 start=5.81  finish=71.88\n          107794) kvazaar          cpu=8 start=5.81  finish=71.88\n          107795) kvazaar          cpu=10 start=5.81  finish=71.88\n          107796) kvazaar          cpu=6 start=5.81  finish=71.88\n          107797) kvazaar          cpu=7 start=5.81  finish=71.88\n          107798) kvazaar          cpu=0 start=5.81  finish=71.88\n          107799) kvazaar          cpu=5 start=5.81  finish=71.88\n          107800) kvazaar          cpu=13 start=5.81  finish=71.88\n          107801) kvazaar          cpu=1 start=5.81  finish=71.88\n          107802) kvazaar          cpu=12 start=5.81  finish=71.88\n          107803) kvazaar          cpu=14 start=5.81  finish=71.88\n          107804) kvazaar          cpu=13 start=5.81  finish=70.40\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>kvazaar is a CPU-based H.265\/HVEC video encoder. There are 10 workloads with slightly different profiles. Topdown shows a high retirement rate and a moderately high IPC and low backend stalls. AMD metrics show moderate branches and floating point. Intel metrics. <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/kvazaar\/\"><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-519","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/519","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=519"}],"version-history":[{"count":3,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/519\/revisions"}],"predecessor-version":[{"id":541,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/519\/revisions\/541"}],"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=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}