{"id":2118,"date":"2024-03-20T12:15:12","date_gmt":"2024-03-20T12:15:12","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=2118"},"modified":"2024-03-21T12:35:22","modified_gmt":"2024-03-21T12:35:22","slug":"minife","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/minife\/","title":{"rendered":"minife"},"content":{"rendered":"\n<p>MiniFE Finite Element is an application for unstructured finite element codes. There is a small, medium and large model. Only the small model runs on my 8GB Intel system or AMD 16 GB system. The large one fails quicker than the medium case.<\/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\/03\/systemtime-35.png\" alt=\"\" class=\"wp-image-2135\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-35.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-35-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-35-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows backend stalls dominate and frontend stalls are also higher leaving a small retirement rate.<\/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\/03\/amdtopdown-37.png\" alt=\"\" class=\"wp-image-2137\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-37.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-37-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-37-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics confirm a low 9% retirement rate. This is floating point code with a reasonable L2 miss rate.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              243.690\non_cpu               0.524          # 8.39 \/ 16 cores\nutime                1993.160\nstime                51.697\nnvcsw                13870          # 46.17%\nnivcsw               16171          # 53.83%\ninblock              3344           # 13.72\/sec\nonblock              12608          # 51.74\/sec\ncpu-clock            2047157103380  # 2047.157 seconds\ntask-clock           2047257770017  # 2047.258 seconds\npage faults          31046999       # 15165.164\/sec\ncontext switches     33542          # 16.384\/sec\ncpu migrations       971            # 0.474\/sec\nmajor page faults    720            # 0.352\/sec\nminor page faults    31046279       # 15164.812\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             706236278470   # 161.538 branches per 1000 inst\nbranch misses        5014293222     # 0.71% branch miss\nconditional          641878405657   # 146.817 conditional branches per 1000 inst\nindirect             2013712249     # 0.461 indirect branches per 1000 inst\ncpu-cycles           9210992376881  # 2.38 GHz\ninstructions         4361725796880  # 0.47 IPC low\nslots                18424742893032 #\nretiring             1408820057528  #  7.6% ( 9.0%) low\n-- ucode             2257470384     #     0.0%\n-- fastpath          1406562587144  #     7.6%\nfrontend             5043746195655  # 27.4% (32.3%)\n-- latency           4347570093138  #    23.6%\n-- bandwidth         696176102517   #     3.8%\nbackend              9173912664192  # 49.8% (58.7%)\n-- cpu               827799698650   #     4.5%\n-- memory            8346112965542  #    45.3%\nspeculation          7079727654     #  0.0% ( 0.0%) low\n-- branch mispredict 6974699002     #     0.0%\n-- pipeline restart  105028652      #     0.0%\nsmt-contention       2791179374818  # 15.1% ( 0.0%)\ncpu-cycles           9202270231305  # 2.38 GHz\ninstructions         4356300172549  # 0.47 IPC low\ninstructions         1452484540467  # 40.542 l2 access per 1000 inst\nl2 hit from l1       36762046483    # 36.18% l2 miss\nl2 miss from l1      2251102278     #\nl2 hit from l2 pf    3068590825     #\nl3 hit from l2 pf    61142096       #\nl3 miss from l2 pf   18994133948    #\ninstructions         1454513550889  # 186.109 float per 1000 inst\nfloat 512            91             # 0.000 AVX-512 per 1000 inst\nfloat 256            624            # 0.000 AVX-256 per 1000 inst\nfloat 128            270698676105   # 186.109 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         2              # 0.000 scalar per 1000 inst\ninstructions         4359084815682  #\nopcache              874086295911   # 200.521 opcache per 1000 inst\nopcache miss         30119422719    #  3.4% opcache miss rate\nl1 dTLB miss         1340796010     # 0.308 L1 dTLB per 1000 inst\nl2 dTLB miss         1081626104     # 0.248 L2 dTLB per 1000 inst\ninstructions         4357779438705  #\nicache               71313624570    # 16.365 icache per 1000 inst\nicache miss          1458400180     #  2.0% icache miss rate\nl1 iTLB miss         9490258        # 0.002 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            44877          # 0.000 TLB flush per 1000 inst\n<\/code><\/pre>\n\n\n\n<p>Intel metrics show 40% of the memory stalls are dram<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              247.687\non_cpu               0.533          # 8.52 \/ 16 cores\nutime                2075.936\nstime                34.629\nnvcsw                23274          # 59.55%\nnivcsw               15812          # 40.45%\ninblock              673936         # 2720.92\/sec\nonblock              1336           # 5.39\/sec\ncpu-clock            2111985298342  # 2111.985 seconds\ntask-clock           2112024687329  # 2112.025 seconds\npage faults          23467689       # 11111.465\/sec\ncontext switches     48757          # 23.085\/sec\ncpu migrations       3111           # 1.473\/sec\nmajor page faults    12398          # 5.870\/sec\nminor page faults    23455288       # 11105.594\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             659038623656   # 157.161 branches per 1000 inst\nbranch misses        524366491      # 0.08% branch miss\nconditional          659038641448   # 157.161 conditional branches per 1000 inst\nindirect             208339155122   # 49.683 indirect branches per 1000 inst\nslots                10368305007182 #\nretiring             2669877911887  # 25.8% (25.8%)\n-- ucode             222134393351   #     2.1%\n-- fastpath          2447743518536  #    23.6%\nfrontend             1210078632156  # 11.7% (11.7%)\n-- latency           859054106519   #     8.3%\n-- bandwidth         351024525637   #     3.4%\nbackend              6892978942426  # 66.5% (66.5%)\n-- cpu               2269699099109  #    21.9%\n-- memory            4623279843317  #    44.6%\nspeculation          129944168269   #  1.3% ( 1.3%)\n-- branch mispredict 104901134836   #     1.0%\n-- pipeline restart  25043033433    #     0.2%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           14924883336483 # 1.80 GHz\ninstructions         10110279002150 # 0.68 IPC low\nl2 access            178924470824   # 31.017 l2 access per 1000 inst\nl2 miss              106730592575   # 59.65% l2 miss\ncpu-cycles           3247227300486  # 60.2% memory latency\nload stalls          1921815818188  #  0.0% l1 bound\nl1 miss              1950070359204  #  8.5% l2 bound\nl2 miss              1673267884336  # 11.9% l3 bound\nl3 miss              1288195279271  # 39.7% dram bound\nstore_stalls         31750377590    #  1.0% store bound\n<\/code><\/pre>\n\n\n\n<p>Process overview shows miniFE.x as the running process<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>591 processes\n\t180 miniFE.x             37870.42   922.58\n\t 68 clinfo                  16.87     5.89\n\t 54 orted                    2.29     5.33\n\t 38 vulkaninfo               1.71     0.95\n\t  4 vulkani:disk$0           0.18     0.10\n\t  6 php                      0.13     0.13\n\t  2 llvmpipe-0               0.09     0.05\n\t  2 llvmpipe-1               0.09     0.05\n\t  2 llvmpipe-10              0.09     0.05\n\t  2 llvmpipe-11              0.09     0.05\n\t  2 llvmpipe-12              0.09     0.05\n\t  2 llvmpipe-13              0.09     0.05\n\t  2 llvmpipe-14              0.09     0.05\n\t  2 llvmpipe-15              0.09     0.05\n\t  2 llvmpipe-2               0.09     0.05\n\t  2 llvmpipe-3               0.09     0.05\n\t  2 llvmpipe-4               0.09     0.05\n\t  2 llvmpipe-5               0.09     0.05\n\t  2 llvmpipe-6               0.09     0.05\n\t  2 llvmpipe-7               0.09     0.05\n\t  2 llvmpipe-8               0.09     0.05\n\t  2 llvmpipe-9               0.09     0.05\n\t  6 clang                    0.08     0.04\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.01     0.01\n\t  1 ps                       0.00     0.01\n\t 83 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t 11 gsettings                0.00     0.00\n\t  9 cat                      0.00     0.00\n\t  9 minife                   0.00     0.00\n\t  9 rm                       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  4 glxinfo                  0.00     0.00\n\t  3 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 setterm                  0.00     0.00\n\t  2 uname                    0.00     0.00\n\t  2 which                    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\n0 processes running\n47 maximum processes\n<\/code><\/pre>\n\n\n\n<p>Computation blocks<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      164783) minife           cpu=7 start=5.62  finish=6.45 \n        164784) rm               cpu=6 start=5.63  finish=5.63 \n        164785) miniFE.x         cpu=1 start=5.63  finish=6.43 \n          164786) orted            cpu=0 start=5.63  finish=6.46 \n            164789) orted            cpu=3 start=5.83  finish=6.46 \n            164790) orted            cpu=6 start=5.84  finish=5.84 \n            164791) orted            cpu=6 start=5.86  finish=6.45 \n            164792) orted            cpu=1 start=5.96  finish=6.45 \n            164793) orted            cpu=5 start=5.96  finish=6.46 \n          164794) miniFE.x         cpu=4 start=5.97  finish=6.43 \n          164795) miniFE.x         cpu=0 start=5.97  finish=6.43 \n          164798) miniFE.x         cpu=10 start=6.12  finish=6.43 \n          164799) miniFE.x         cpu=14 start=6.12  finish=6.12 \n          164800) miniFE.x         cpu=9 start=6.35  finish=6.42 \n          164801) miniFE.x         cpu=11 start=6.35  finish=6.42 \n          164802) miniFE.x         cpu=4 start=6.35  finish=6.42 \n          164803) miniFE.x         cpu=8 start=6.35  finish=6.42 \n          164804) miniFE.x         cpu=7 start=6.35  finish=6.42 \n          164805) miniFE.x         cpu=6 start=6.35  finish=6.42 \n          164806) miniFE.x         cpu=2 start=6.35  finish=6.42 \n          164807) miniFE.x         cpu=8 start=6.35  finish=6.42 \n          164808) miniFE.x         cpu=9 start=6.35  finish=6.42 \n          164809) miniFE.x         cpu=3 start=6.35  finish=6.42 \n          164810) miniFE.x         cpu=12 start=6.35  finish=6.42 \n          164811) miniFE.x         cpu=13 start=6.35  finish=6.42 \n          164812) miniFE.x         cpu=15 start=6.35  finish=6.42 \n          164813) miniFE.x         cpu=11 start=6.35  finish=6.42 \n          164814) miniFE.x         cpu=14 start=6.35  finish=6.42 \n        164816) cat              cpu=2 start=6.45  finish=6.45 \n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>MiniFE Finite Element is an application for unstructured finite element codes. There is a small, medium and large model. Only the small model runs on my 8GB Intel system or AMD 16 GB system. The large one fails quicker than <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/minife\/\"><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-2118","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/2118","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=2118"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/2118\/revisions"}],"predecessor-version":[{"id":2138,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/2118\/revisions\/2138"}],"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=2118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}