{"id":1287,"date":"2024-02-02T10:36:39","date_gmt":"2024-02-02T10:36:39","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1287"},"modified":"2024-02-02T10:51:00","modified_gmt":"2024-02-02T10:51:00","slug":"octave-benchmark","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/octave-benchmark\/","title":{"rendered":"octave-benchmark"},"content":{"rendered":"\n<p>Testing the octave system, octave is a free alternative to MATLAB. This is a quick running single-threaded benchmark.<\/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-10.png\" alt=\"\" class=\"wp-image-1291\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-10.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-10-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-10-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile is sparse because it runs quickly. Frontend stalls are the highest points.<\/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-10.png\" alt=\"\" class=\"wp-image-1293\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-10.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-10-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-10-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show a moderate amount of floating point and branches. Frontend stalls are highest and L2 access is medium.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              55.884\non_cpu               0.062          # 0.99 \/ 16 cores\nutime                26.643\nstime                28.665\nnvcsw                2780           # 70.92%\nnivcsw               1140           # 29.08%\ninblock              0              # 0.00\/sec\nonblock              12864          # 230.19\/sec\ncpu-clock            55362965828    # 55.363 seconds\ntask-clock           55367314515    # 55.367 seconds\npage faults          6875381        # 124177.614\/sec\ncontext switches     3996           # 72.173\/sec\ncpu migrations       313            # 5.653\/sec\nmajor page faults    2              # 0.036\/sec\nminor page faults    6875379        # 124177.578\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             58210945745    # 178.634 branches per 1000 inst\nbranch misses        3701019594     # 6.36% branch miss\nconditional          35919164160    # 110.227 conditional branches per 1000 inst\nindirect             1511947416     # 4.640 indirect branches per 1000 inst\ncpu-cycles           223736534984   # 0.25 GHz\ninstructions         319496971848   # 1.43 IPC\nslots                458067001674   #\nretiring             116873163991   # 25.5% (27.1%)\n-- ucode             395914695      #     0.1%\n-- fastpath          116477249296   #    25.4%\nfrontend             198927914473   # 43.4% (46.2%) high\n-- latency           155336378784   #    33.9%\n-- bandwidth         43591535689    #     9.5%\nbackend              102766552193   # 22.4% (23.8%)\n-- cpu               26948799788    #     5.9%\n-- memory            75817752405    #    16.6%\nspeculation          12321716346    #  2.7% ( 2.9%)\n-- branch mispredict 12280928392    #     2.7%\n-- pipeline restart  40787954       #     0.0%\nsmt-contention       27177056448    #  5.9% ( 0.0%)\ncpu-cycles           223525502490   # 0.25 GHz\ninstructions         317724992290   # 1.42 IPC\ninstructions         108005569859   # 38.344 l2 access per 1000 inst\nl2 hit from l1       2399855682     # 34.92% l2 miss\nl2 miss from l1      231338749      #\nl2 hit from l2 pf    526636641      #\nl3 hit from l2 pf    307262794      #\nl3 miss from l2 pf   907586168      #\ninstructions         108542387592   # 95.199 float per 1000 inst\nfloat 512            51             # 0.000 AVX-512 per 1000 inst\nfloat 256            516            # 0.000 AVX-256 per 1000 inst\nfloat 128            10333149587    # 95.199 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              58.600\non_cpu               0.064          # 1.03 \/ 16 cores\nutime                32.886\nstime                27.497\nnvcsw                6459           # 10.68%\nnivcsw               54018          # 89.32%\ninblock              807488         # 13779.71\/sec\nonblock              1656           # 28.26\/sec\ncpu-clock            60397704794    # 60.398 seconds\ntask-clock           60403781993    # 60.404 seconds\npage faults          7056547        # 116822.933\/sec\ncontext switches     60544          # 1002.321\/sec\ncpu migrations       371            # 6.142\/sec\nmajor page faults    4464           # 73.903\/sec\nminor page faults    7052083        # 116749.031\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             66834801836    # 165.728 branches per 1000 inst\nbranch misses        581466042      # 0.87% branch miss\nconditional          66834829516    # 165.728 conditional branches per 1000 inst\nindirect             9408973871     # 23.331 indirect branches per 1000 inst\nslots                858075168266   #\nretiring             341480831081   # 39.8% (39.8%)\n-- ucode             45413402048    #     5.3%\n-- fastpath          296067429033   #    34.5%\nfrontend             138002222524   # 16.1% (16.1%)\n-- latency           59024767747    #     6.9%\n-- bandwidth         78977454777    #     9.2%\nbackend              311839880049   # 36.3% (36.3%)\n-- cpu               88994455313    #    10.4%\n-- memory            222845424736   #    26.0%\nspeculation          66948869773    #  7.8% ( 7.8%)\n-- branch mispredict 61374935005    #     7.2%\n-- pipeline restart  5573934768     #     0.6%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           169554050987   # 0.18 GHz\ninstructions         324634684671   # 1.91 IPC\nl2 access            12674501547    # 39.131 l2 access per 1000 inst\nl2 miss              8563359304     # 67.56% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process overview shows a large number of invocations of the octave-cli in a short period<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>780 processes\n\t420 octave-cli             435.53   469.62\n\t 68 clinfo                  16.20     5.99\n\t 38 vulkaninfo               1.15     0.95\n\t  4 vulkani:disk$0           0.13     0.10\n\t  6 glxinfo:gdrv0            0.09     0.08\n\t  6 glxinfo:gl0              0.09     0.08\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  6 php                      0.05     0.08\n\t  6 clang                    0.05     0.07\n\t  2 glxinfo                  0.05     0.03\n\t  2 glxinfo:cs0              0.05     0.03\n\t  2 glxinfo:disk$0           0.05     0.03\n\t  2 glxinfo:sh0              0.05     0.03\n\t  2 glxinfo:shlo0            0.05     0.03\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.00     0.01\n\t  1 ps                       0.00     0.01\n\t 81 sh                       0.00     0.00\n\t 12 gcc                      0.00     0.00\n\t 11 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 cut                      0.00     0.00\n\t  5 head                     0.00     0.00\n\t  5 octave-benchmar          0.00     0.00\n\t  5 phoronix-test-s          0.00     0.00\n\t  3 gmain                    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 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>Multiple instances of the octave-cli are started though apparently only one is runnable<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      181699) octave-benchmar  cpu=15 start=5.55  finish=12.01\n        181700) octave-cli       cpu=1 start=5.55  finish=7.51 \n          181701) octave-cli       cpu=2 start=5.57  finish=7.51 \n          181702) octave-cli       cpu=3 start=5.57  finish=7.51 \n          181703) octave-cli       cpu=4 start=5.57  finish=7.51 \n          181704) octave-cli       cpu=13 start=5.57  finish=7.51 \n          181705) octave-cli       cpu=0 start=5.57  finish=7.51 \n          181706) octave-cli       cpu=6 start=5.57  finish=7.51 \n          181707) octave-cli       cpu=15 start=5.57  finish=7.51 \n          181708) octave-cli       cpu=9 start=5.57  finish=7.51 \n          181709) octave-cli       cpu=10 start=5.57  finish=7.51 \n          181710) octave-cli       cpu=11 start=5.57  finish=7.51 \n          181711) octave-cli       cpu=12 start=5.57  finish=7.51 \n          181712) octave-cli       cpu=5 start=5.58  finish=7.51 \n          181713) octave-cli       cpu=8 start=5.58  finish=7.51 \n          181714) octave-cli       cpu=14 start=5.58  finish=7.51 \n          181715) octave-cli       cpu=7 start=5.58  finish=7.51 \n          181716) octave-cli       cpu=9 start=5.58  finish=7.51 \n        181719) octave-cli       cpu=0 start=7.52  finish=10.65\n          181720) octave-cli       cpu=3 start=7.53  finish=10.65\n          181721) octave-cli       cpu=5 start=7.53  finish=10.65\n          181722) octave-cli       cpu=6 start=7.53  finish=10.65\n          181723) octave-cli       cpu=4 start=7.53  finish=10.65\n          181724) octave-cli       cpu=15 start=7.53  finish=10.65\n          181725) octave-cli       cpu=2 start=7.53  finish=10.65\n          181726) octave-cli       cpu=9 start=7.53  finish=10.65\n          181727) octave-cli       cpu=8 start=7.54  finish=10.65\n          181728) octave-cli       cpu=10 start=7.54  finish=10.65\n          181729) octave-cli       cpu=11 start=7.54  finish=10.65\n          181730) octave-cli       cpu=13 start=7.54  finish=10.65\n          181731) octave-cli       cpu=14 start=7.54  finish=10.65\n          181732) octave-cli       cpu=12 start=7.54  finish=10.65\n          181733) octave-cli       cpu=7 start=7.54  finish=10.65\n          181734) octave-cli       cpu=1 start=7.54  finish=10.65\n          181735) octave-cli       cpu=1 start=7.54  finish=10.65\n        181736) octave-cli       cpu=2 start=10.66 finish=11.21\n          181737) octave-cli       cpu=3 start=10.68 finish=11.21\n          181738) octave-cli       cpu=4 start=10.68 finish=11.21\n          181739) octave-cli       cpu=1 start=10.68 finish=11.21\n          181740) octave-cli       cpu=5 start=10.68 finish=11.21\n          181741) octave-cli       cpu=7 start=10.68 finish=11.21\n          181742) octave-cli       cpu=6 start=10.68 finish=11.21\n          181743) octave-cli       cpu=0 start=10.68 finish=11.21\n          181744) octave-cli       cpu=10 start=10.68 finish=11.21\n          181745) octave-cli       cpu=14 start=10.68 finish=11.21\n          181746) octave-cli       cpu=12 start=10.68 finish=11.21\n          181747) octave-cli       cpu=9 start=10.68 finish=11.21\n          181748) octave-cli       cpu=13 start=10.68 finish=11.21\n          181749) octave-cli       cpu=15 start=10.68 finish=11.21\n          181750) octave-cli       cpu=8 start=10.68 finish=11.21\n          181751) octave-cli       cpu=11 start=10.68 finish=11.21\n          181752) octave-cli       cpu=3 start=10.68 finish=11.21\n        181753) octave-cli       cpu=0 start=11.21 finish=11.98\n          181754) octave-cli       cpu=1 start=11.23 finish=11.98\n          181755) octave-cli       cpu=5 start=11.23 finish=11.98\n          181756) octave-cli       cpu=3 start=11.23 finish=11.98\n          181757) octave-cli       cpu=6 start=11.23 finish=11.98\n          181758) octave-cli       cpu=15 start=11.23 finish=11.98\n          181759) octave-cli       cpu=4 start=11.23 finish=11.98\n          181760) octave-cli       cpu=2 start=11.23 finish=11.98\n          181761) octave-cli       cpu=8 start=11.23 finish=11.98\n          181762) octave-cli       cpu=13 start=11.23 finish=11.98\n          181763) octave-cli       cpu=14 start=11.23 finish=11.98\n          181764) octave-cli       cpu=11 start=11.23 finish=11.98\n          181765) octave-cli       cpu=12 start=11.23 finish=11.98\n          181766) octave-cli       cpu=7 start=11.23 finish=11.98\n          181767) octave-cli       cpu=10 start=11.23 finish=11.98\n          181768) octave-cli       cpu=9 start=11.23 finish=11.98\n          181769) octave-cli       cpu=1 start=11.24 finish=11.98\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Testing the octave system, octave is a free alternative to MATLAB. This is a quick running single-threaded benchmark. Topdown profile is sparse because it runs quickly. Frontend stalls are the highest points. AMD metrics show a moderate amount of floating <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/octave-benchmark\/\"><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-1287","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1287","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=1287"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1287\/revisions"}],"predecessor-version":[{"id":1294,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1287\/revisions\/1294"}],"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=1287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}