ESXI安装好ubuntu18后测试了一下ubuntu虚拟机的速度。

time dd if=/dev/zero of=./testReadOrWrite bs=8k count=1000000
^C353658+0 records in
353658+0 records out
2897166336 bytes (2.9 GB, 2.7 GiB) copied, 73.0942 s, 39.6 MB/s

这跑的实在受不了,中断了,发现只有39.6MB/s, 这是nvme? 冒牌U盘吧。

想了下,估计还是esxi6.7对于nvme支持不够好,一番搜索,果然找到答案:

https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.storage.doc/GUID-6035DE0C-9285-4D37-B631-A7DC3606DB61.html

官网里面说的很明白,你需要开启HPP(High-Performance Plug-In),命令如下:

esxcli storage core claimrule add -r 10 -t vendor -V=NVMe -M=* -P HPP --force-reserved

再测试下:

$ time dd if=/dev/zero of=./testReadOrWrite bs=8k count=1000
1000+0 records in
1000+0 records out
8192000 bytes (8.2 MB, 7.8 MiB) copied, 0.00517313 s, 1.6 GB/s

real    0m8.571s
user    0m0.000s
sys     0m0.154s

1.6GB/s, 一般般吧。

然后用windows server2012跑了下ssd benchmark,写入慢,读取正常。

image-20210702180938596

或许应该把scsi改成vmware paravirtual? 但重启server后出错,改成LSI Logic SAS之后:

image-20210702182352478

再跑,又正常了,我!@#¥。有哪位大神明白原因的?

image-20210702182258305

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐