{"id":1446,"date":"2024-02-03T23:19:16","date_gmt":"2024-02-03T23:19:16","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1446"},"modified":"2024-02-06T01:04:21","modified_gmt":"2024-02-06T01:04:21","slug":"basis","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/basis\/","title":{"rendered":"basis"},"content":{"rendered":"\n<p>A GPU texture codec.  We convert sRGB PNGs into Basis format.  There are four test cases: one for ETC1S format and the other three are settings of UASTC.<\/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-28.png\" alt=\"\" class=\"wp-image-1544\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-28.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-28-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-28-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows the latter cases have a high retirement rate and lower backend stalls and even lower frontend 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\/02\/amdtopdown-29.png\" alt=\"\" class=\"wp-image-1546\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-29.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-29-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-29-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics shows little L2 access. There are relatively low amounts of both floating point and branches. The retirement rate is high.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              393.438\non_cpu               0.568          # 9.09 \/ 16 cores\nutime                3556.506\nstime                19.117\nnvcsw                104051         # 73.09%\nnivcsw               38311          # 26.91%\ninblock              0              # 0.00\/sec\nonblock              1034568        # 2629.56\/sec\ncpu-clock            3575685439676  # 3575.685 seconds\ntask-clock           3575739871237  # 3575.740 seconds\npage faults          10123639       # 2831.201\/sec\ncontext switches     144127         # 40.307\/sec\ncpu migrations       546            # 0.153\/sec\nmajor page faults    2              # 0.001\/sec\nminor page faults    10123637       # 2831.201\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             1860603453653  # 62.324 branches per 1000 inst\nbranch misses        46545288283    # 2.50% branch miss\nconditional          1574153948382  # 52.729 conditional branches per 1000 inst\nindirect             18464690805    # 0.619 indirect branches per 1000 inst\ncpu-cycles           14719060282545 # 2.34 GHz\ninstructions         29857793829195 # 2.03 IPC\nslots                29440547407560 #\nretiring             10251143761091 # 34.8% (59.5%) high\n-- ucode             2526045358     #     0.0%\n-- fastpath          10248617715733 #    34.8%\nfrontend             1591349042820  #  5.4% ( 9.2%)\n-- latency           1177272934056  #     4.0%\n-- bandwidth         414076108764   #     1.4%\nbackend              4652362002095  # 15.8% (27.0%)\n-- cpu               2873256958424  #     9.8%\n-- memory            1779105043671  #     6.0%\nspeculation          721889065401   #  2.5% ( 4.2%)\n-- branch mispredict 712138305407   #     2.4%\n-- pipeline restart  9750759994     #     0.0%\nsmt-contention       12223752882981 # 41.5% ( 0.0%)\ncpu-cycles           14724190174595 # 2.34 GHz\ninstructions         29848045087509 # 2.03 IPC\ninstructions         9954066979774  # 1.926 l2 access per 1000 inst\nl2 hit from l1       17922234932    # 5.54% l2 miss\nl2 miss from l1      364414574      #\nl2 hit from l2 pf    547494977      #\nl3 hit from l2 pf    130041269      #\nl3 miss from l2 pf   567968539      #\ninstructions         9947200217083  # 52.036 float per 1000 inst\nfloat 512            76             # 0.000 AVX-512 per 1000 inst\nfloat 256            426            # 0.000 AVX-256 per 1000 inst\nfloat 128            517613926919   # 52.036 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         2648711        #\nopcache              982432         # 370.909 opcache per 1000 inst\nopcache miss         530583         # 54.0% opcache miss rate\nl1 dTLB miss         5128           # 1.936 L1 dTLB per 1000 inst\nl2 dTLB miss         1081           # 0.408 L2 dTLB per 1000 inst\ninstructions         2702117        #\nicache               1303643        # 482.452 icache per 1000 inst\nicache miss          107870         #  8.3% icache miss rate\nl1 iTLB miss         8              # 0.003 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            20             # 0.007 TLB flush per 1000 inst<\/code><\/pre>\n\n\n\n<p>Intel metrics<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              564.028\non_cpu               0.621          # 9.94 \/ 16 cores\nutime                5587.346\nstime                19.458\nnvcsw                350602         # 88.43%\nnivcsw               45891          # 11.57%\ninblock              119136         # 211.22\/sec\nonblock              1462992        # 2593.83\/sec\ncpu-clock            5606668790586  # 5606.669 seconds\ntask-clock           5606750505852  # 5606.751 seconds\npage faults          12957851       # 2311.116\/sec\ncontext switches     399115         # 71.185\/sec\ncpu migrations       977            # 0.174\/sec\nmajor page faults    26             # 0.005\/sec\nminor page faults    12957825       # 2311.111\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             2581393381877  # 61.878 branches per 1000 inst\nbranch misses        64084539150    # 2.48% branch miss\nconditional          2581393402549  # 61.878 conditional branches per 1000 inst\nindirect             485684172431   # 11.642 indirect branches per 1000 inst\nslots                31009559996612 #\nretiring             20683755340987 # 66.7% (66.7%) high\n-- ucode             900670609933   #     2.9%\n-- fastpath          19783084731054 #    63.8%\nfrontend             4086258401910  # 13.2% (13.2%)\n-- latency           2151755377775  #     6.9%\n-- bandwidth         1934503024135  #     6.2%\nbackend              2810948298561  #  9.1% ( 9.1%) low\n-- cpu               2115192794049  #     6.8%\n-- memory            695755504512   #     2.2%\nspeculation          3566097449765  # 11.5% (11.5%) high\n-- branch mispredict 3466175330406  #    11.2%\n-- pipeline restart  99922119359    #     0.3%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           12506418678251 # 1.39 GHz\ninstructions         26601249276020 # 2.13 IPC\nl2 access            42456611815    # 2.043 l2 access per 1000 inst\nl2 miss              6363280059     # 14.99% l2 miss\ncpu-cycles           9757175649420  # 10.0% memory latency\nload stalls          965497573205   #  9.4% l1 bound\nl1 miss              49236423562    #  0.2% l2 bound\nl2 miss              27779716539    #  0.1% l3 bound\nl3 miss              19026555974    #  0.2% dram bound\nstore_stalls         13608703956    #  0.1% store bound\n<\/code><\/pre>\n\n\n\n<p>Process overview shows basisu is the primary process<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>558 processes\n\t192 basisu               56746.72   281.28\n\t 68 clinfo                  16.53     6.00\n\t 38 vulkaninfo               1.14     1.14\n\t  6 php                      0.13     0.08\n\t  4 vulkani:disk$0           0.12     0.12\n\t  6 glxinfo:gdrv0            0.12     0.06\n\t  6 glxinfo:gl0              0.12     0.06\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.02\n\t  2 glxinfo:cs0              0.06     0.02\n\t  2 glxinfo:disk$0           0.06     0.02\n\t  2 glxinfo:sh0              0.06     0.02\n\t  2 glxinfo:shlo0            0.06     0.02\n\t  6 clang                    0.05     0.07\n\t  1 lspci                    0.00     0.02\n\t 88 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t 13 gsettings                0.00     0.00\n\t 12 basis                    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 rocminfo                 0.00     0.00\n\t  2 cc                       0.00     0.00\n\t  2 gmain                    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 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>The process structure is simple.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      667833) basis            cpu=13 start=5.53  finish=29.94\n        667834) basisu           cpu=7 start=5.53  finish=29.90\n          667835) basisu           cpu=6 start=5.56  finish=29.90\n          667836) basisu           cpu=13 start=5.56  finish=29.90\n          667837) basisu           cpu=9 start=5.56  finish=29.90\n          667838) basisu           cpu=8 start=5.56  finish=29.90\n          667839) basisu           cpu=10 start=5.57  finish=29.90\n          667840) basisu           cpu=11 start=5.57  finish=29.90\n          667841) basisu           cpu=5 start=5.57  finish=29.90\n          667842) basisu           cpu=14 start=5.57  finish=29.90\n          667843) basisu           cpu=2 start=5.57  finish=29.90\n          667844) basisu           cpu=0 start=5.57  finish=29.90\n          667845) basisu           cpu=4 start=5.57  finish=29.90\n          667846) basisu           cpu=1 start=5.57  finish=29.90\n          667847) basisu           cpu=15 start=5.57  finish=29.90\n          667848) basisu           cpu=7 start=5.57  finish=29.90\n          667849) basisu           cpu=12 start=5.57  finish=29.90\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A GPU texture codec. We convert sRGB PNGs into Basis format. There are four test cases: one for ETC1S format and the other three are settings of UASTC. Topdown profile shows the latter cases have a high retirement rate and <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/basis\/\"><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-1446","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1446","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=1446"}],"version-history":[{"count":3,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1446\/revisions"}],"predecessor-version":[{"id":1547,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1446\/revisions\/1547"}],"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=1446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}