最近在研究ramcloud,我对ramcloud的其中一个指标很感兴趣, ramcloud宣称能达到5us的读时延和15us的写时延,一般hdd的时延是ms级别的,相差1000倍, ramcloud采用了什么技术达到如此低的时延?
看了ramcloud相关的paper, 有如下一句话:"The RAMCloud Storage System" :When used with leading-edge networking, RAMCloud offers exceptionally low latency for remote access. In our 80-node development cluster, a client can read any 100-byte object in less than 5 µs, and durable writes take about 15 µs.
要达到如此低的时延,有前提条件的:1、leading-edge networking;2、100字节左右的小对象。
什么叫leading-edge交换,查了一下字典,大致的意思是采用了最先进的网络交换技术。那到底采用了哪些先进的网络交换机书呢? 下面我们详细地来看一下。
一、首先我们看一下当前数据中心的网络交换时延的现状:
1) 当前数据中心一般一个来回的数据报文需要200~500us. 我用ping 工具测试了一下(4k大小的报文),一般是0.2ms左右(1G以太网),如果是10g 以太网,一般是0.15ms左右。
上面的图说明了tcp 通讯时各个模块花费的时间