{"id":4262,"date":"2016-08-20T18:08:01","date_gmt":"2016-08-20T17:08:01","guid":{"rendered":"https:\/\/stevepedwards.today\/DebianAdmin\/?p=4262"},"modified":"2016-08-20T18:08:01","modified_gmt":"2016-08-20T17:08:01","slug":"how-slow-can-you-go-old-and-new-tech-moores-law-comparison-3-memory","status":"publish","type":"post","link":"https:\/\/stevepedwards.today\/DebianAdmin\/how-slow-can-you-go-old-and-new-tech-moores-law-comparison-3-memory\/","title":{"rendered":"How Slow Can You Go? Sysbench Comparisons &#8211; Memory"},"content":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_4262\" class=\"pvc_stats all  \" data-element-id=\"4262\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>stevee@AMDA8 ~ $ <span style=\"color: #0000ff;\">sudo sysbench --test=mutex --memory-oper=<strong>read<\/strong> run<\/span><br \/>\n[sudo] password for stevee:<br \/>\nsysbench 0.4.12: multi-threaded system evaluation benchmark<\/p>\n<p>Running the test with following options:<br \/>\nNumber of threads: 1<\/p>\n<p>Doing mutex performance test<br \/>\nThreads started!<br \/>\nDone.<br \/>\nTest execution summary:<br \/>\ntotal time: 0.0071s<br \/>\ntotal number of events: 1<br \/>\ntotal time taken by event execution: <span style=\"color: #ff0000;\"><strong>0.0066<\/strong><\/span><br \/>\nper-request statistics:<br \/>\nmin: 6.57ms<br \/>\n<span style=\"color: #ff0000;\">avg: 6.57ms<\/span><br \/>\nmax: 6.57ms<br \/>\napprox. 95 percentile: 10000000.00ms<\/p>\n<p>Threads fairness:<br \/>\nevents (avg\/stddev): 1.0000\/0.00<br \/>\nexecution time (avg\/stddev): 0.0066\/0.00<\/p>\n<p>stevee@AMDA8 ~ $ <span style=\"color: #0000ff;\">sudo sysbench --test=mutex --memory-oper=<strong>write<\/strong> run<\/span><br \/>\nsysbench 0.4.12: multi-threaded system evaluation benchmark<\/p>\n<p>Running the test with following options:<br \/>\nNumber of threads: 1<\/p>\n<p>Doing mutex performance test<br \/>\nThreads started!<br \/>\nDone.<br \/>\nTest execution summary:<br \/>\ntotal time: 0.0086s<br \/>\ntotal number of events: 1<br \/>\ntotal time taken by event execution: <span style=\"color: #ff0000;\"><strong>0.0080<\/strong><\/span><br \/>\nper-request statistics:<br \/>\nmin: 8.01ms<br \/>\n<span style=\"color: #ff0000;\">avg: 8.01ms<\/span><br \/>\nmax: 8.01ms<br \/>\napprox. 95 percentile: 10000000.00ms<\/p>\n<p>Threads fairness:<br \/>\nevents (avg\/stddev): 1.0000\/0.00<br \/>\nexecution time (avg\/stddev): 0.0080\/0.00<\/p>\n<p>stevee@hpmint ~ $ <span style=\"color: #0000ff;\">sudo sysbench --test=mutex --memory-oper=<strong>read<\/strong> run<\/span><br \/>\nsysbench 0.4.12: multi-threaded system evaluation benchmark<\/p>\n<p>Running the test with following options:<br \/>\nNumber of threads: 1<\/p>\n<p>Doing mutex performance test<br \/>\nThreads started!<br \/>\nDone.<br \/>\nTest execution summary:<br \/>\ntotal time: 0.0117s<br \/>\ntotal number of events: 1<br \/>\ntotal time taken by event execution: <strong>0.0112<\/strong><br \/>\nper-request statistics:<br \/>\nmin: 11.21ms<br \/>\navg: 11.21ms<br \/>\nmax: 11.21ms<br \/>\napprox. 95 percentile: 10000000.00ms<\/p>\n<p>Threads fairness:<br \/>\nevents (avg\/stddev): 1.0000\/0.00<br \/>\nexecution time (avg\/stddev): 0.0112\/0.00<\/p>\n<p>stevee@hpmint ~ $ <span style=\"color: #0000ff;\">sudo sysbench --test=mutex --memory-oper=<strong>write<\/strong> run<\/span><br \/>\nsysbench 0.4.12: multi-threaded system evaluation benchmark<\/p>\n<p>Running the test with following options:<br \/>\nNumber of threads: 1<\/p>\n<p>Doing mutex performance test<br \/>\nThreads started!<br \/>\nDone.<br \/>\nTest execution summary:<br \/>\ntotal time: 0.0116s<br \/>\ntotal number of events: 1<br \/>\ntotal time taken by event execution: <strong>0.0108<\/strong><br \/>\nper-request statistics:<br \/>\nmin: 10.81ms<br \/>\navg: 10.81ms<br \/>\nmax: 10.81ms<br \/>\napprox. 95 percentile: 10000000.00ms<\/p>\n<p>Threads fairness:<br \/>\nevents (avg\/stddev): 1.0000\/0.00<br \/>\nexecution time (avg\/stddev): 0.0108\/0.00<\/p>\n<p>stevee@DELLMINT ~ $ <span style=\"color: #0000ff;\">sudo sysbench --test=mutex --memory-oper=<strong>read<\/strong> run<\/span><br \/>\n[sudo] password for stevee:<br \/>\nsysbench 0.4.12: multi-threaded system evaluation benchmark<\/p>\n<p>Running the test with following options:<br \/>\nNumber of threads: 1<\/p>\n<p>Doing mutex performance test<br \/>\nThreads started!<br \/>\nDone.<br \/>\nTest execution summary:<br \/>\ntotal time: 0.0111s<br \/>\ntotal number of events: 1<br \/>\ntotal time taken by event execution: <strong>0.0103<\/strong><br \/>\nper-request statistics:<br \/>\nmin: 10.34ms<br \/>\navg: 10.34ms<br \/>\nmax: 10.34ms<br \/>\napprox. 95 percentile: 10000000.00ms<\/p>\n<p>Threads fairness:<br \/>\nevents (avg\/stddev): 1.0000\/0.00<br \/>\nexecution time (avg\/stddev): 0.0103\/0.00<\/p>\n<p>stevee@DELLMINT ~ $ <span style=\"color: #0000ff;\">sudo sysbench --test=mutex --memory-oper=<strong>write<\/strong> run<\/span><br \/>\nsysbench 0.4.12: multi-threaded system evaluation benchmark<\/p>\n<p>Running the test with following options:<br \/>\nNumber of threads: 1<\/p>\n<p>Doing mutex performance test<br \/>\nThreads started!<br \/>\nDone.<br \/>\nTest execution summary:<br \/>\ntotal time: 0.0120s<br \/>\ntotal number of events: 1<br \/>\ntotal time taken by event execution: <strong>0.0111<\/strong><br \/>\nper-request statistics:<br \/>\nmin: 11.06ms<br \/>\navg: 11.06ms<br \/>\nmax: 11.06ms<br \/>\napprox. 95 percentile: 10000000.00ms<\/p>\n<p>Threads fairness:<br \/>\nevents (avg\/stddev): 1.0000\/0.00<br \/>\nexecution time (avg\/stddev): 0.0111\/0.00<\/p>\n<p>stevee@localhost ~ $ <span style=\"color: #0000ff;\">sudo sysbench --test=mutex --memory-oper=read run<\/span><br \/>\n[sudo] password for stevee:<br \/>\nsysbench 0.4.12: multi-threaded system evaluation benchmark<\/p>\n<p>Running the test with following options:<br \/>\nNumber of threads: 1<\/p>\n<p>Doing mutex performance test<br \/>\nThreads started!<br \/>\nDone.<br \/>\nTest execution summary:<br \/>\ntotal time: 0.0132s<br \/>\ntotal number of events: 1<br \/>\ntotal time taken by event execution: <strong>0.0126<\/strong><br \/>\nper-request statistics:<br \/>\nmin: 12.62ms<br \/>\navg: 12.62ms<br \/>\nmax: 12.62ms<br \/>\napprox. 95 percentile: 10000000.00ms<\/p>\n<p>Threads fairness:<br \/>\nevents (avg\/stddev): 1.0000\/0.00<br \/>\nexecution time (avg\/stddev): 0.0126\/0.00<\/p>\n<p>stevee@localhost ~ $ <span style=\"color: #0000ff;\">sudo sysbench --test=mutex --memory-oper=write run<\/span><br \/>\nsysbench 0.4.12: multi-threaded system evaluation benchmark<\/p>\n<p>Running the test with following options:<br \/>\nNumber of threads: 1<\/p>\n<p>Doing mutex performance test<br \/>\nThreads started!<br \/>\nDone.<br \/>\nTest execution summary:<br \/>\ntotal time: 0.0284s<br \/>\ntotal number of events: 1<br \/>\ntotal time taken by event execution: <strong>0.0279<\/strong><br \/>\nper-request statistics:<br \/>\nmin: 27.93ms<br \/>\navg: 27.93ms<br \/>\nmax: 27.93ms<br \/>\napprox. 95 percentile: 10000000.00ms<\/p>\n<p>Threads fairness:<br \/>\nevents (avg\/stddev): 1.0000\/0.00<br \/>\nexecution time (avg\/stddev): <strong>0.0279<\/strong>\/0.00<\/p>\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">\n<colgroup>\n<col width=\"51*\" \/>\n<col width=\"51*\" \/>\n<col width=\"51*\" \/>\n<col width=\"51*\" \/>\n<col width=\"51*\" \/><\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><strong>AMDA8 localhost core<\/strong><\/td>\n<td width=\"20%\"><strong>Dell 64 bit dual core<\/strong><\/td>\n<td width=\"20%\"><strong>HP Pav 64 bit dual\u00a0<\/strong><\/td>\n<td width=\"20%\"><strong>HP Pav 32 bit mono<\/strong><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"20%\">\u00a0Memory DRAM<\/td>\n<td width=\"20%\">\u00a08GB<\/td>\n<td width=\"20%\">\u00a06GB<\/td>\n<td width=\"20%\">\u00a04GB<\/td>\n<td width=\"20%\">\u00a01GB<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"20%\">reads ratio times slower<\/p>\n<p>write\u00a0ratio times slower<\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>0.0066\/<\/strong><strong>0.0066 = 1<\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>0.008\/<\/strong><strong>0.008 = 1\u00a0<\/strong><\/span><\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>0.0103\/<\/strong><strong>0.0066 =\u00a01.56<\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>0.0111\/<\/strong><strong>0.008 =\u00a01.39<\/strong><\/span><\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>0.0112<\/strong><strong>\/0.0066 = 1.7<\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>0.0126\/0.008 = 1.6<\/strong><\/span><\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>0.0126\/0.0066 =\u00a01.9<\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>0.028\/<\/strong><strong>0.008 = 3.5\u00a0<\/strong><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">\n<tbody>\n<tr valign=\"top\">\n<td width=\"20%\"><span style=\"color: #00ff00;\"><strong>Added 4\/10\/16<\/strong><\/span><\/td>\n<td width=\"20%\"><span style=\"color: #00ff00;\"><strong>HP \u00a0Intel Pent Dual<\/strong><\/span><\/td>\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"20%\"><strong>\u00a0Memory DRAM<\/strong><\/td>\n<td width=\"20%\"><span style=\"color: #ffffff;\">\u00a02GB<\/span><\/td>\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"20%\">reads ratio times slower<\/p>\n<p><span style=\"color: #ff0000;\">write\u00a0ratio times slower<\/span><\/td>\n<td width=\"20%\"><strong><span style=\"color: #ff0000;\">0.0056\/0.0064 =\u00a01.143<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #ff0000;\">0.0084\/0.0088 =\u00a00.95<\/span><\/strong><\/td>\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Again, the added HP Intel Dual is slightly faster than the localhost core for write time!<\/p>\n<p>Some read ratios compared to the localhost core are slower than writes and vice-versa here.<\/p>\n<p>The 32 bit Celeron is up to 3.5 times slower in these memory tests.<\/p>\n<p>You can start to imagination the time accumulation for each area combining between compared systems - CPU, memory and Disk IO - making the overall impact of being many times slower for a worst case, from a user experience perspective, as for every clock tick of a CPU that goes by and effective work can not be done due to these combined latencies - let alone considering multiple processes across a whole OS - you can imagine\u00a0where the slowest bottlenecks for a given process affect the final results system wide.<\/p>\n<p>There is an interesting table on p20 of System Performance that shows lost time from a 3GHz processor's perspective\u00a0to human terms:<a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/08\/cpulosttime.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4275\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/08\/cpulosttime.jpg\" alt=\"cpulosttime.jpg\" width=\"816\" height=\"459\" \/><\/a><\/p>\n<p>Level 1 cache - 3 times slower than CPU<\/p>\n<p>Level 2 cache - 9 times slower than CPU<\/p>\n<p>Level 3 cache - 43 times slower than CPU<\/p>\n<p>This puts main memory in perspective to CPU cycles - 6 mins in human 1sec terms to CPU clock ticks - or 6 x 60 =<\/p>\n<p>Main memory - 360 times slower than CPU<\/p>\n<p>The sooner they build larger memory directly onto the CPU chip the better eh?<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_4262\" class=\"pvc_stats all  \" data-element-id=\"4262\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>stevee@AMDA8 ~ $ sudo sysbench --test=mutex --memory-oper=read run [sudo] password for stevee: sysbench 0.4.12: multi-threaded system evaluation benchmark Running the test with following options: Number of threads: 1 Doing mutex performance test Threads started! Done. Test execution summary: total time: 0.0071s total number of events: 1 total time taken by event execution: 0.0066 per-request statistics: <a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/how-slow-can-you-go-old-and-new-tech-moores-law-comparison-3-memory\/\" class=\"more-link\">...<span class=\"screen-reader-text\">\u00a0 How Slow Can You Go? Sysbench Comparisons &#8211; Memory<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-4262","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"a3_pvc":{"activated":true,"total_views":2,"today_views":0},"_links":{"self":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/4262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/comments?post=4262"}],"version-history":[{"count":0,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/4262\/revisions"}],"wp:attachment":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/media?parent=4262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/categories?post=4262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/tags?post=4262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}