{"id":870,"date":"2024-01-24T12:40:20","date_gmt":"2024-01-24T12:40:20","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=870"},"modified":"2024-01-26T01:54:00","modified_gmt":"2024-01-26T01:54:00","slug":"openscad","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/openscad\/","title":{"rendered":"openscad"},"content":{"rendered":"\n<p>3D CAD modeler program. There are five different workloads.  From the profile, these look to be single-threaded with something extra running during the first workload. The relative times also stand out with first workload taking almost as much time as the other four combined.<\/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-64.png\" alt=\"\" class=\"wp-image-932\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-64.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-64-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-64-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows a high retirement rate and mix of backend and 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\/01\/amdtopdown-101.png\" alt=\"\" class=\"wp-image-933\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-101.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-101-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-101-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics reflect a low on-core percentage, ~1\/5 instructions are branches and very little floating point.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              422.749\non_cpu               0.050          # 0.80 \/ 16 cores\nutime                332.058\nstime                4.627\nnvcsw                23009          # 92.58%\nnivcsw               1844           # 7.42%\ninblock              264            # 0.62\/sec\nonblock              14608          # 34.55\/sec\ncpu-clock            336740720119   # 336.741 seconds\ntask-clock           336754926269   # 336.755 seconds\npage faults          1910499        # 5673.262\/sec\ncontext switches     26752          # 79.441\/sec\ncpu migrations       638            # 1.895\/sec\nmajor page faults    4              # 0.012\/sec\nminor page faults    1910495        # 5673.250\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             1031901503702  # 195.758 branches per 1000 inst\nbranch misses        4885209147     # 0.47% branch miss\nconditional          681508801840   # 129.287 conditional branches per 1000 inst\nindirect             68784371657    # 13.049 indirect branches per 1000 inst\ncpu-cycles           1547029539906  # 0.23 GHz\ninstructions         5265953090888  # 3.40 IPC\nslots                3098409161730  #\nretiring             1761428833226  # 56.8% (56.9%)\n-- ucode             3746874236     #     0.1%\n-- fastpath          1757681958990  #    56.7%\nfrontend             676634274863   # 21.8% (21.8%)\n-- latency           350628159138   #    11.3%\n-- bandwidth         326006115725   #    10.5%\nbackend              535081034943   # 17.3% (17.3%)\n-- cpu               77646362712    #     2.5%\n-- memory            457434672231   #    14.8%\nspeculation          124848917485   #  4.0% ( 4.0%)\n-- branch mispredict 119125690073   #     3.8%\n-- pipeline restart  5723227412     #     0.2%\nsmt-contention       415746112      #  0.0% ( 0.0%)\ncpu-cycles           1837831312838  # 0.21 GHz\ninstructions         6327727125019  # 3.44 IPC\ninstructions         2111272455778  # 5.506 l2 access per 1000 inst\nl2 hit from l1       10450947730    # 12.78% l2 miss\nl2 miss from l1      878626140      #\nl2 hit from l2 pf    565877018      #\nl3 hit from l2 pf    424006556      #\nl3 miss from l2 pf   183262736      #\ninstructions         2111120557854  # 4.827 float per 1000 inst\nfloat 512            89             # 0.000 AVX-512 per 1000 inst\nfloat 256            590            # 0.000 AVX-256 per 1000 inst\nfloat 128            10190850857    # 4.827 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         1              # 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              484.067\non_cpu               0.051          # 0.82 \/ 16 cores\nutime                393.998\nstime                3.122\nnvcsw                8520           # 78.47%\nnivcsw               2337           # 21.53%\ninblock              66600          # 137.58\/sec\nonblock              3424           # 7.07\/sec\ncpu-clock            397153907639   # 397.154 seconds\ntask-clock           397165603053   # 397.166 seconds\npage faults          1847986        # 4652.936\/sec\ncontext switches     13066          # 32.898\/sec\ncpu migrations       526            # 1.324\/sec\nmajor page faults    453            # 1.141\/sec\nminor page faults    1847533        # 4651.795\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             1031007465039  # 195.753 branches per 1000 inst\nbranch misses        4322959209     # 0.42% branch miss\nconditional          1031007485583  # 195.753 conditional branches per 1000 inst\nindirect             68768741049    # 13.057 indirect branches per 1000 inst\nslots                8979723509168  #\nretiring             5073544138778  # 56.5% (56.5%)\n-- ucode             293115212521   #     3.3%\n-- fastpath          4780428926257  #    53.2%\nfrontend             2583017982853  # 28.8% (28.8%)\n-- latency           1148193498713  #    12.8%\n-- bandwidth         1434824484140  #    16.0%\nbackend              738150744894   #  8.2% ( 8.2%)\n-- cpu               365619503836   #     4.1%\n-- memory            372531241058   #     4.1%\nspeculation          747395099127   #  8.3% ( 8.3%)\n-- branch mispredict 669939473186   #     7.5%\n-- pipeline restart  77455625941    #     0.9%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           1496122737534  # 0.19 GHz\ninstructions         5266572245280  # 3.52 IPC\nl2 access            31350249974    # 5.953 l2 access per 1000 inst\nl2 miss              7792586637     # 24.86% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process overview gives processes logical names like disk.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>490 processes\n\t 45 openscad               330.67     3.16\n\t 15 openscad:cs0           330.63     3.16\n\t 15 opensca:disk$0         330.62     3.16\n\t 15 openscad:sh0           330.62     3.16\n\t 15 openscad:gdrv0         330.61     3.16\n\t 15 openscad:gl0           330.61     3.16\n\t 15 openscad:shlo0         330.61     3.16\n\t 68 clinfo                  16.56     6.40\n\t  2 openscad:sh1            16.36     0.24\n\t 38 vulkaninfo               1.33     0.92\n\t  6 glxinfo:gdrv0            0.17     0.02\n\t  6 glxinfo:gl0              0.17     0.02\n\t  4 vulkani:disk$0           0.14     0.09\n\t  6 php                      0.09     0.17\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.07     0.02\n\t  2 glxinfo:cs0              0.07     0.02\n\t  2 glxinfo:disk$0           0.07     0.02\n\t  2 glxinfo:sh0              0.07     0.02\n\t  2 glxinfo:shlo0            0.07     0.02\n\t  6 clang                    0.06     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 89 sh                       0.00     0.00\n\t 12 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 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 cc                       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><br>The compute structure looks like a parent process opens various functional processes on different cores.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      632441) openscad         cpu=7 start=5.45  finish=69.37\n        632442) openscad         cpu=11 start=5.46  finish=69.28\n          632444) openscad:cs0     cpu=13 start=68.59 finish=69.28\n          632445) opensca:disk$0   cpu=7 start=68.59 finish=69.28\n          632446) openscad:sh0     cpu=15 start=68.59 finish=69.28\n          632447) openscad:shlo0   cpu=9 start=68.59 finish=69.28\n          632448) openscad:gdrv0   cpu=10 start=68.60 finish=69.27\n          632449) openscad:gl0     cpu=2 start=68.60 finish=69.27\n        632453) openscad         cpu=13 start=69.36 finish=69.37\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>3D CAD modeler program. There are five different workloads. From the profile, these look to be single-threaded with something extra running during the first workload. The relative times also stand out with first workload taking almost as much time as <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/openscad\/\"><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-870","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/870","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=870"}],"version-history":[{"count":3,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/870\/revisions"}],"predecessor-version":[{"id":934,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/870\/revisions\/934"}],"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=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}