{"id":2019,"date":"2024-03-06T00:36:07","date_gmt":"2024-03-06T00:36:07","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=2019"},"modified":"2024-03-06T11:59:38","modified_gmt":"2024-03-06T11:59:38","slug":"memcached","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/memcached\/","title":{"rendered":"memcached"},"content":{"rendered":"\n<p>A distributed memory object caching system. There are five tests. These run on AMD system but appeared to hang on my Intel system. Overall a high level of interrupts.<\/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-21.png\" alt=\"\" class=\"wp-image-2023\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-21.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-21-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-21-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows a high level of frontend stalls and lower 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\/03\/amdtopdown-22.png\" alt=\"\" class=\"wp-image-2024\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-22.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-22-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-22-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show little floating point. There is a high opcache miss rate and relatively high icache miss rate.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              1084.896\non_cpu               0.389          # 6.22 \/ 16 cores\nutime                1805.389\nstime                4939.507\nnvcsw                222708743      # 99.61%\nnivcsw               879355         # 0.39%\ninblock              0              # 0.00\/sec\nonblock              13520          # 12.46\/sec\ncpu-clock            14028143035597 # 14028.143 seconds\ntask-clock           14037521121094 # 14037.521 seconds\npage faults          414637         # 29.538\/sec\ncontext switches     452028530      # 32201.450\/sec\ncpu migrations       13908050       # 990.777\/sec\nmajor page faults    4              # 0.000\/sec\nminor page faults    414633         # 29.537\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             7951525581786  # 201.057 branches per 1000 inst\nbranch misses        699053211919   # 8.79% branch miss\nconditional          4336195723529  # 109.642 conditional branches per 1000 inst\nindirect             190468268236   # 4.816 indirect branches per 1000 inst\ncpu-cycles           55276954057609 # 3.19 GHz\ninstructions         40357397448074 # 0.73 IPC\nslots                109074132046182 #\nretiring             14946314860049 # 13.7% (15.0%)\n-- ucode             84759708463    #     0.1%\n-- fastpath          14861555151586 #    13.6%\nfrontend             72590179804234 # 66.6% (72.8%) high\n-- latency           61583813788416 #    56.5%\n-- bandwidth         11006366015818 #    10.1%\nbackend              11812472983875 # 10.8% (11.8%) low\n-- cpu               1924685512382  #     1.8%\n-- memory            9887787471493  #     9.1%\nspeculation          405394937992   #  0.4% ( 0.4%) low\n-- branch mispredict 404417600603   #     0.4%\n-- pipeline restart  977337389      #     0.0%\nsmt-contention       9314599861603  #  8.5% ( 0.0%)\ncpu-cycles           55180514514939 # 3.18 GHz\ninstructions         40266935720025 # 0.73 IPC\ninstructions         13262256645581 # 96.029 l2 access per 1000 inst\nl2 hit from l1       1230269784634  # 3.68% l2 miss\nl2 miss from l1      35338152294    #\nl2 hit from l2 pf    31699410997    #\nl3 hit from l2 pf    11257846706    #\nl3 miss from l2 pf   331933190      #\ninstructions         13269290387328 # 12.628 float per 1000 inst\nfloat 512            110            # 0.000 AVX-512 per 1000 inst\nfloat 256            378            # 0.000 AVX-256 per 1000 inst\nfloat 128            167564373522   # 12.628 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         40133117880873 #\nopcache              10528047887039 # 262.328 opcache per 1000 inst\nopcache miss         6905745934303  # 65.6% opcache miss rate\nl1 dTLB miss         190180493018   # 4.739 L1 dTLB per 1000 inst\nl2 dTLB miss         24651135861    # 0.614 L2 dTLB per 1000 inst\ninstructions         39830954865181 #\nicache               10343658357264 # 259.689 icache per 1000 inst\nicache miss          2793707140548  # 27.0% icache miss rate\nl1 iTLB miss         83597661651    # 2.099 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            407944934      # 0.010 TLB flush per 1000 inst\n<\/code><\/pre>\n\n\n\n<p>Process summary shows memtier_benchmark as the primary driver process.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>971 processes\n\t255 memtier_benchma      32375.71 83025.09\n\t240 mc-worker            19305.92 97636.80\n\t 30 memcached             1206.62  6102.30\n\t 15 mc-assocmaint         1206.62  6102.30\n\t 15 mc-itemcrawler        1206.62  6102.30\n\t 15 mc-log                1206.62  6102.30\n\t 15 mc-lrumaint           1206.62  6102.30\n\t 15 mc-slabmaint          1206.62  6102.30\n\t 68 clinfo                  16.22     6.33\n\t 38 vulkaninfo               1.33     1.15\n\t  4 vulkani:disk$0           0.14     0.12\n\t  6 php                      0.08     0.24\n\t  2 llvmpipe-0               0.07     0.06\n\t  2 llvmpipe-1               0.07     0.06\n\t  2 llvmpipe-10              0.07     0.06\n\t  2 llvmpipe-11              0.07     0.06\n\t  2 llvmpipe-12              0.07     0.06\n\t  2 llvmpipe-13              0.07     0.06\n\t  2 llvmpipe-14              0.07     0.06\n\t  2 llvmpipe-15              0.07     0.06\n\t  2 llvmpipe-2               0.07     0.06\n\t  2 llvmpipe-3               0.07     0.06\n\t  2 llvmpipe-4               0.07     0.06\n\t  2 llvmpipe-5               0.07     0.06\n\t  2 llvmpipe-6               0.07     0.06\n\t  2 llvmpipe-7               0.07     0.06\n\t  2 llvmpipe-8               0.07     0.06\n\t  2 llvmpipe-9               0.07     0.06\n\t  6 glxinfo:gdrv0            0.06     0.12\n\t  6 glxinfo:gl0              0.06     0.12\n\t  6 clang                    0.06     0.06\n\t  2 glxinfo                  0.04     0.05\n\t  2 glxinfo:cs0              0.04     0.05\n\t  2 glxinfo:disk$0           0.04     0.05\n\t  2 glxinfo:sh0              0.04     0.04\n\t  2 glxinfo:shlo0            0.04     0.04\n\t  1 lspci                    0.01     0.01\n\t  3 rocminfo                 0.00     0.03\n\t  1 ps                       0.00     0.01\n\t 90 sh                       0.00     0.00\n\t 15 sleep                    0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t  8 stat                     0.00     0.00\n\t  8 systemd-detect-          0.00     0.00\n\t  7 gsettings                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  4 dconf worker             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 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\n49 maximum processes\n<\/code><\/pre>\n\n\n\n<p>Process summary shows a collection of worker threads started on each core and then a set of benchmark threads started six seconds later.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      988848) memcached        cpu=12 start=5.73  finish=71.75\n        988849) memcached        cpu=15 start=5.73  finish=72.03\n          988851) mc-log           cpu=2 start=5.74  finish=72.03\n          988852) mc-worker        cpu=8 start=5.76  finish=72.03\n          988853) mc-worker        cpu=13 start=5.76  finish=72.03\n          988854) mc-worker        cpu=0 start=5.76  finish=72.03\n          988855) mc-worker        cpu=3 start=5.76  finish=72.03\n          988856) mc-worker        cpu=9 start=5.76  finish=72.03\n          988857) mc-worker        cpu=14 start=5.76  finish=72.03\n          988858) mc-worker        cpu=10 start=5.76  finish=72.03\n          988859) mc-worker        cpu=4 start=5.76  finish=72.03\n          988860) mc-worker        cpu=5 start=5.76  finish=72.03\n          988861) mc-worker        cpu=12 start=5.76  finish=72.03\n          988862) mc-worker        cpu=10 start=5.76  finish=72.03\n          988863) mc-worker        cpu=7 start=5.76  finish=72.03\n          988864) mc-worker        cpu=11 start=5.76  finish=72.03\n          988865) mc-worker        cpu=6 start=5.76  finish=72.03\n          988866) mc-worker        cpu=7 start=5.76  finish=72.03\n          988867) mc-worker        cpu=1 start=5.76  finish=72.03\n          988868) mc-assocmaint    cpu=1 start=5.76  finish=72.03\n          988869) mc-itemcrawler   cpu=15 start=5.76  finish=72.03\n          988870) mc-lrumaint      cpu=3 start=5.76  finish=72.03\n          988871) mc-slabmaint     cpu=5 start=5.76  finish=72.03\n        988850) sleep            cpu=15 start=5.73  finish=11.73\n        988872) memtier_benchma  cpu=12 start=11.74 finish=71.75\n          988873) memtier_benchma  cpu=11 start=11.74 finish=71.74\n          988874) memtier_benchma  cpu=15 start=11.74 finish=71.74\n          988875) memtier_benchma  cpu=1 start=11.74 finish=71.74\n          988876) memtier_benchma  cpu=15 start=11.74 finish=71.74\n          988877) memtier_benchma  cpu=5 start=11.74 finish=71.74\n          988878) memtier_benchma  cpu=1 start=11.74 finish=71.74\n          988879) memtier_benchma  cpu=13 start=11.74 finish=71.74\n          988880) memtier_benchma  cpu=9 start=11.74 finish=71.74\n          988881) memtier_benchma  cpu=12 start=11.74 finish=71.74\n          988882) memtier_benchma  cpu=8 start=11.74 finish=71.74\n          988883) memtier_benchma  cpu=13 start=11.74 finish=71.74\n          988884) memtier_benchma  cpu=14 start=11.74 finish=71.74\n          988885) memtier_benchma  cpu=5 start=11.74 finish=71.74\n          988886) memtier_benchma  cpu=0 start=11.74 finish=71.74\n          988887) memtier_benchma  cpu=6 start=11.74 finish=71.74\n          988888) memtier_benchma  cpu=10 start=11.74 finish=71.74\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A distributed memory object caching system. There are five tests. These run on AMD system but appeared to hang on my Intel system. Overall a high level of interrupts. Topdown profile shows a high level of frontend stalls and lower <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/memcached\/\"><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-2019","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/2019","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=2019"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/2019\/revisions"}],"predecessor-version":[{"id":2025,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/2019\/revisions\/2025"}],"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=2019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}