{"id":26346,"date":"2012-02-06T22:58:10","date_gmt":"2012-02-06T14:58:10","guid":{"rendered":"http:\/\/www.yankay.com\/?p=26346"},"modified":"2012-02-06T22:58:10","modified_gmt":"2012-02-06T14:58:10","slug":"%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/yankay.com\/%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f\/","title":{"rendered":"\u5185\u5b58\u7a76\u7adf\u6709\u591a\u5feb\uff1f"},"content":{"rendered":"

\u4e00\u822c\u6765\u8bf4\u3002CPU\u9700\u89810\u4e2a\u5468\u671f\u6765\u8bbf\u95ee\u5176\u5bc4\u5b58\u5668\uff0c1-30\u4e2a\u5468\u671f\u6765\u8bbf\u95ee\u9ad8\u901f\u7f13\u5b58\uff0c50-200\u4e2a\u5468\u671f\u6765\u8bbf\u95ee\u4e3b\u5b58\u3002<\/p>\n

\u5bf9\u4e8eIntel Core i7\u6765\u8bf4\u3002\u8fd9\u4e2a\u503c\u53ef\u4ee5\u5f88\u5177\u4f53\u3002Intel Core i7\u7684\u4e3b\u9891\u7ea6\u57282-3GHz\u3002\u53ef\u4ee5\u8ba1\u7b97\u51fa\u3002<\/p>\n\n\n\n\n\n\n
<\/td>\nL1\u2014\u6307\u4ee4\u7f13\u5b58<\/td>\nL1-\u6570\u636e\u7f13\u5b58<\/td>\nL2-\u7f13\u5b58<\/td>\nL3-\u7f13\u5b58<\/td>\n\u5185\u5b58<\/td>\n<\/tr>\n
\u8bbf\u95ee\u5468\u671f<\/td>\n4<\/td>\n4<\/td>\n11<\/td>\n30-40<\/td>\n50-200<\/td>\n<\/tr>\n
\u7f13\u5b58\u5927\u5c0f<\/td>\n32KB<\/td>\n32KB<\/td>\n256KB<\/td>\n8MB<\/td>\n\u82e5\u5e72GB<\/td>\n<\/tr>\n
\u8bbf\u95ee\u65f6\u95f4<\/td>\n2ns<\/td>\n2ns<\/td>\n5ns<\/td>\n14-18ns<\/td>\n24-93ns<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4e5f\u5c31\u662f\u8bf4\uff0c\u8bbf\u95ee\u5185\u5b58\u7684\u65f6\u95f4\u662fns\u7ea7\u522b\u7684\u3002<\/p>\n

\u518d\u6765\u770b\u770b\u78c1\u76d8\u3002<\/strong><\/p>\n

\u78c1\u76d8\u7684\u8bbf\u95ee\u65f6\u95f4=\u5bfb\u9053\u65f6\u95f4+\u65cb\u8f6c\u5ef6\u8fdf+\u6570\u636e\u4f20\u8f93\u65f6\u95f4\u3002\u5bf9\u4e8e\u666e\u901a\u76847200\u8f6cSATA\u78c1\u76d8\u3002\u8fd9\u4e2a\u503c\u662f:9ms+4ms+0.02ms=13.02ms\u3002<\/p>\n

\u4e5f\u5c31\u662f\u8bf4\uff0c\u5982\u679c\u4ece\u78c1\u76d8\u968f\u673a\u8bbf\u95ee\u4e00\u4e2a\u5b57\u8282\uff0c\u9700\u898113.02ms\uff0c\u6bd4\u4ece\u5185\u5b58\u83b7\u53d6\u7684\u65f6\u95f424-93ns\uff0c\u81f3\u5c11\u8981\u591a14\u4e07\u500d\u3002\u76f8\u5dee5\u4e2a\u6570\u636e\u7ea7\uff0c\u4f55\u5176\u5de8\u5927\u7684\u5dee\u8ddd\u3002<\/p>\n

\u987a\u5e8f\u8bfb\u5199\u78c1\u76d8\u4f1a\u5feb\u4e00\u4e9b\u3002 \u5047\u8bbe\u4e00\u4e2a\u76d8\u7247\u67091000\u4e2a\u6247\u533a\uff0c\u6bcf\u4e2a\u6247\u533a512\u5b57\u8282\uff0c7200\u8f6c\u3002\u987a\u5e8f\u8bfb\u53ef\u4ee5\u5ffd\u7565\u6389\u5bfb\u9053\u7684\u65f6\u95f4\u3002\u6240\u4ee5\u541e\u5410\u91cf\u662f\u00a0\u6247\u533a\u6570\u00d7\u6247\u533a\u5927\u5c0f\u00d7\u8f6c\u901f=1000*512\/(60\/7200)=58MB\/s\u3002\u8fd9\u4e2a\u6570\u636e\u4f3c\u4e4e\u4e0d\u548b\u6837\u3002\u5982\u679c\u4f7f\u7528\u591a\u76d8\u7cfb\u7edf\u3002SATA II\u7684\u63a5\u53e3\uff0c\u541e\u5410\u91cf\u53ef\u4ee5\u8fbe\u5230300MB\/s\u3002\u8ffd\u6c42\u6781\u9650\u6027\u80fd\u53ef\u4ee5mount\u88f8\u76d8\u76f4\u63a5\u64cd\u4f5c\u591a\u76d8\u3002<\/p>\n

\u5b58\u50a8\u5668\u5c71<\/strong><\/p>\n

\u300a\u6df1\u5165\u7406\u89e3\u8ba1\u7b97\u673a\u7cfb\u7edf\u300b\u4e00\u4e66\u4e2d\u63d0\u5230\u4e86\u4e00\u4e2a\u5b58\u50a8\u5668\u5c71<\/a>\u7684\u6982\u5ff5\u3002\u6559\u6388\u5148\u751f\u522b\u51fa\u5fc3\u88c1\u7684\u5c06\u5b58\u50a8\u5668\u7684\u541e\u5410\u91cf\uff0c\u753b\u6210\u4e86\u4e00\u5ea7\u5c71\u3002<\/p>\n

\"\"<\/a><\/p>\n

 <\/p>\n

\u5b58\u50a8\u5668\u5c71\u7684\u6d4b\u8bd5\u7a0b\u5e8f\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n

Kernel_loop(elems, stride):<\/strong>\nfor (i = 0; i < elems; i += stride)\n    result = data[i];<\/pre>\n

X\u8f74\u8868\u793a\u7684\u662f\u8bfb\u53d6\u6b65\u957f\uff0cY\u8f74\u662f\u541e\u5410\u91cf\uff0cZ\u8f74\u662f\u6570\u636e\u603b\u91cf\u7684\u5927\u5c0f\u3002<\/p>\n

\u53ef\u4ee5\u770b\u51fa\u6765\u6b65\u957f\u8d8a\u5c0f\uff0c\u6570\u636e\u6570\u636e\u603b\u91cf\u8d8a\u5c0f\u3002\u6027\u80fd\u8d8a\u597d\u3002<\/p>\n

\u5f88\u660e\u663e\uff0c\u5c71\u662f\u4e0d\u662f\u5e73\u6ed1\u7684\uff0c\u662f\u6210\u9636\u68af\u72b6\u3002\u7ea2\u8272\u90e8\u5206\u4e3aL1\u7f13\u5b58\uff0c\u7eff\u8272\u4e3aL2\u7f13\u5b58\uff0c\u6d45\u84dd\u662fL3\u7f13\u5b58\uff0c\u6df1\u84dd\u662f\u5185\u5b58\u3002\u6211\u4eec\u53ef\u4ee5\u5f97\u4e00\u4e9b\u6570\u636e\u3002<\/p>\n\n\n\n\n\n\n
<\/td>\nL1-\u6570\u636e\u7f13\u5b58<\/td>\nL2-\u7f13\u5b58<\/td>\nL3-\u7f13\u5b58<\/td>\n\u5185\u5b58<\/td>\n\u78c1\u76d8<\/td>\nSSD<\/td>\n<\/tr>\n
\u7f13\u5b58\u5927\u5c0f<\/td>\n32KB<\/td>\n256KB<\/td>\n8MB<\/td>\n\u5341\u51e0GB<\/td>\n\u51e0TB<\/td>\n\u51e0\u767eGB<\/td>\n<\/tr>\n
\u8bbf\u95ee\u65f6\u95f4<\/td>\n2ns<\/td>\n5ns<\/td>\n14-18ns<\/td>\n24-93ns<\/td>\n13.0ms<\/td>\n30-300us<\/td>\n<\/tr>\n
\u541e\u5410\u91cf<\/td>\n6500MB\/s<\/td>\n3300MB\/s<\/td>\n2200MB\/s<\/td>\n800MB\/s<\/td>\n60MB\/s<\/td>\n250MB\/s<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4e5f\u5c31\u662f\u8bf4\uff0c\u53bb\u9664\u9ad8\u901f\u7f13\u5b58\u7684\u5185\u5b58\uff0c\u541e\u5410\u91cf\u6027\u80fd\u53ea\u6709800MB\/s\u800c\u5df2\u3002\u6bd4\u8d77\u78c1\u76d8\u7684300MB\/s,\u7f51\u7edc\u7684100MB\/s\u3002\u4e5f\u53ea\u662f\u5feb\u4e86\u51e0\u500d\u3002\u5e73\u65f6\u8bf4\u5185\u5b58\u6bd4\u78c1\u76d8\u5feb\u8bb8\u591a\uff0c\u5176\u5b9e\u6ca1\u6709\u90a3\u4e48\u591a\uff0c\u5982\u679c\u4e0d\u597d\u597d\u64cd\u4f5c\u5185\u5b58\uff0c\u5185\u5b58\u7684\u9891\u7e41\u8bfb\u5199\uff0c\u4e5f\u53ef\u4ee5\u6210\u4e3a\u7cfb\u7edf\u74f6\u9888\u3002<\/p>\n

\u603b\u7ed3<\/strong><\/p>\n

\u73b0\u5728\u5904\u7406\u5668\u7684\u4e3b\u9891\u5df2\u7ecf\u505c\u6b62\u4e86\u589e\u957f\u3002\u4f46\u662f\u9ad8\u901f\u7f13\u5b58\u4ecd\u7136\u4ee5\u6469\u5c14\u5b9a\u5f8b\u7684\u901f\u5ea6\u589e\u957f\u7684\u3002\u957f\u4e45\u7684\u770b\uff0c\u9ad8\u901f\u7f13\u5b58\u9891\u7387\u9010\u6e10\u4f1a\u8ffd\u4e0a\u5904\u7406\u5668\u7684\u6027\u80fd\uff0c\u5bb9\u91cf\u4e5f\u4f1a\u8d8a\u6765\u8d8a\u5927\u3002\u4f46\u662f\u5185\u5b58\u5219\u4e0d\u5bb9\u4e50\u89c2\uff0c\u867d\u7136\u5bb9\u91cf\u589e\u52a0\u4e86\u8bb8\u591a\uff0c\u4f46\u662f\u6027\u80fd\u786e\u6ca1\u6709\u5927\u7684\u63d0\u5347,\u78c1\u76d8\u7684\u72b6\u51b5\u4e5f\u662f\u7c7b\u4f3c;SSD\u521a\u521a\u5f00\u59cb\u666e\u53ca,\u8d8b\u52bf\u4e0d\u660e\u663e\u3002<\/p>\n

\u4f46\u53ef\u4ee5\u770b\u5230\uff0cSSD\u7684\u541e\u5410\u91cf\u548c\u5185\u5b58\u7684\u541e\u5410\u91cf\u76f8\u53bb\u5e76\u4e0d\u5927\u3002\u4e5f\u5c31\u662f\u8bf4\u5728\u672a\u6765\uff0c\u5f53SSD\u5b8c\u5168\u66ff\u4ee3\u4e86\u78c1\u76d8\u3002\u6211\u4eec\u8981\u50cf\u73b0\u5728\u64cd\u4f5c\u78c1\u76d8\u4e00\u6837\u5c0f\u5fc3\u7ffc\u7ffc\u5730\u64cd\u4f5c\u5185\u5b58\uff0c\u624d\u6709\u53ef\u80fd\u5199\u51fa\u7b26\u5408\u90a3\u4e2a\u65f6\u4ee3\u8ba1\u7b97\u673a\u6027\u80fd\u7684\u7a0b\u5e8f\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cSSD\u7684\u4f7f\u7528\u6bd4\u78c1\u76d8\u8981\u8f7b\u677e\u4e00\u4e9b\uff0c\u6bd5\u7adf\u968f\u673a\u8bfb\u5199\u7684\u901f\u5ea6\u5728\u4e00\u4e24\u4e2a\u6570\u91cf\u7ea7\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e00\u822c\u6765\u8bf4\u3002CPU\u9700\u89810\u4e2a\u5468\u671f\u6765\u8bbf\u95ee\u5176\u5bc4\u5b58\u5668\uff0c1-30\u4e2a\u5468\u671f\u6765\u8bbf\u95ee\u9ad8\u901f\u7f13\u5b58\uff0c50-200\u4e2a\u5468\u671f\u6765\u8bbf\u95ee\u4e3b\u5b58\u3002<\/p>\n

\u9605\u8bfb\u66f4\u591a......<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[83,105],"yoast_head":"\n\u5185\u5b58\u7a76\u7adf\u6709\u591a\u5feb\uff1f - \u6211\u81ea\u7136<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/yankay.com\/\u5185\u5b58\u7a76\u7adf\u6709\u591a\u5feb\uff1f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5185\u5b58\u7a76\u7adf\u6709\u591a\u5feb\uff1f - \u6211\u81ea\u7136\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u822c\u6765\u8bf4\u3002CPU\u9700\u89810\u4e2a\u5468\u671f\u6765\u8bbf\u95ee\u5176\u5bc4\u5b58\u5668\uff0c1-30\u4e2a\u5468\u671f\u6765\u8bbf\u95ee\u9ad8\u901f\u7f13\u5b58\uff0c50-200\u4e2a\u5468\u671f\u6765\u8bbf\u95ee\u4e3b\u5b58\u3002\" \/>\n<meta property=\"og:url\" content=\"http:\/\/yankay.com\/\u5185\u5b58\u7a76\u7adf\u6709\u591a\u5feb\uff1f\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6211\u81ea\u7136\" \/>\n<meta property=\"article:published_time\" content=\"2012-02-06T14:58:10+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/yankaycom-wordpress.stor.sinaapp.com\/uploads\/2012\/02\/MemoryMountain17.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/yankay.com\/#website\",\"url\":\"http:\/\/yankay.com\/\",\"name\":\"\\u6211\\u81ea\\u7136\",\"description\":\"\\u989c\\u5f00\\u7684\\u535a\\u5ba2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/yankay.com\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/yankay.com\/%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f\/#primaryimage\",\"inLanguage\":\"zh-CN\",\"url\":\"http:\/\/yankaycom-wordpress.stor.sinaapp.com\/uploads\/2012\/02\/MemoryMountain17.png\",\"contentUrl\":\"http:\/\/yankaycom-wordpress.stor.sinaapp.com\/uploads\/2012\/02\/MemoryMountain17.png\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/yankay.com\/%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f\/#webpage\",\"url\":\"http:\/\/yankay.com\/%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f\/\",\"name\":\"\\u5185\\u5b58\\u7a76\\u7adf\\u6709\\u591a\\u5feb\\uff1f - \\u6211\\u81ea\\u7136\",\"isPartOf\":{\"@id\":\"http:\/\/yankay.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/yankay.com\/%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f\/#primaryimage\"},\"datePublished\":\"2012-02-06T14:58:10+00:00\",\"dateModified\":\"2012-02-06T14:58:10+00:00\",\"author\":{\"@id\":\"http:\/\/yankay.com\/#\/schema\/person\/f52d918e9bfa51c4454172c2caa7704f\"},\"breadcrumb\":{\"@id\":\"http:\/\/yankay.com\/%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/yankay.com\/%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/yankay.com\/%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/yankay.com\/\",\"url\":\"http:\/\/yankay.com\/\",\"name\":\"\\u9996\\u9875\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@id\":\"http:\/\/yankay.com\/%e5%86%85%e5%ad%98%e7%a9%b6%e7%ab%9f%e6%9c%89%e5%a4%9a%e5%bf%ab%ef%bc%9f\/#webpage\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/yankay.com\/#\/schema\/person\/f52d918e9bfa51c4454172c2caa7704f\",\"name\":\"yankay\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/yankay.com\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/426bb830224c1471011d92a830a6ed4f?s=96&d=wavatar&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/426bb830224c1471011d92a830a6ed4f?s=96&d=wavatar&r=g\",\"caption\":\"yankay\"},\"sameAs\":[\"http:\/\/47.100.65.109\"],\"url\":\"http:\/\/yankay.com\/author\/yankay\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts\/26346"}],"collection":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/comments?post=26346"}],"version-history":[{"count":0,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts\/26346\/revisions"}],"wp:attachment":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/media?parent=26346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/categories?post=26346"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/tags?post=26346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}