当前位置:网站首页>现代存储性能“过剩”,API成最大瓶颈

现代存储性能“过剩”,API成最大瓶颈

2020-12-06 21:03:58 InfoQ

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"过去十年以来,我在一家专业产品公司里度过了自己的宝贵岁月,专注于构建高性能 I\/O 系统。作为从业者,我有幸看到存储技术的迅速发展,工作中的实际感受更像是做团队动员。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"今年,我换了份工作,加入了一家拥有众多从业背景不同的工程师的大型企业。特别让我惊讶的是,虽然这些同事也非常聪明睿智,但大部分都对如何充分运用现代存储技术的性能优势存在误解。换句话说,他们知道存储技术在不断改进,但却不清楚究竟是怎么个改进法。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在反思这种脱节问题时,我意识到之所以长期存在这种误解,主要是一旦人们开始用基准来验证自己的假设,那么数据也将在一定程度上证明这种假设、或者至少看起来能够证明。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这种误解的常见示例包括:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"“好吧,我们可以在这里复制内存并执行高成本计算,毕竟这样能够帮我们节约一次成本更高的 I\/O 操作。”"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"“我正在设计一套需要快速运行的系统,所以必须得运行在内存内。”"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"“如果拆分成多个文件,速度会受到影响,因为它会造成随机 I\/O 模式。我们需要进行优化,在按顺序访问的同时通过单一文件读取。”"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"DirectI\/O 非常慢,而且仅适用于某些非常专业的应用程序。如果没有缓存,那肯定会拖累性能。”"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"但是,如果大家关注过现代 NVMe 设备的规格,就会发现商用设备的延迟早已压缩到微秒范围内,而吞吐量则达到每秒数 GB,能够支持数十万随机 IOPS。性能这么强,为什么认识总是上不去?"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]}

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://www.infoq.cn/article/hsd2g0TqwXwqYZEWLlDx?utm_source=rss&utm_medium=article

随机推荐