我们正在使用高级存储支持的两个新标准DS13(8核,56 GB)虚拟机(都使用最新的/默认的Windows 2012 R2映像)进行性能testing,并在testing本地SSD性能时遇到了步骤1的问题。
我们了解到,这些虚拟机的400GB本地固态硬盘中有25%可用作临时存储,另外75%用于高级存储caching: http : //azure.microsoft.com/blog/2014/12/11/new-保费存储备份的虚拟机/
剩下的25%,我们预计会看到这样的performance: http : //www.brentozar.com/archive/2014/09/azure-really-60-faster/ http://azure.microsoft.com/blog / 2014/10/06 / d-系列-性能-期望/
…但是Crystal Disk Mark显示它正在爬行 :
Sequential Read : 4.097 MB/s Sequential Write : 4.096 MB/s Random Read 512KB : 4.112 MB/s Random Write 512KB : 4.112 MB/s Random Read 4KB (QD=1) : 2.057 MB/s [ 502.3 IOPS] Random Write 4KB (QD=1) : 2.057 MB/s [ 502.2 IOPS] Random Read 4KB (QD=32) : 2.048 MB/s [ 500.0 IOPS] Random Write 4KB (QD=32) : 2.047 MB/s [ 499.7 IOPS] Test : 50 MB [D: 7.2% (8.1/112.0 GB)] (x5) Date : 2015/02/14 15:35:41 OS : Windows Server 2012 R2 Datacenter (Full installation) [6.3 Build 9600] (x64)
操作系统磁盘的性能要好一些,但是对于一个P20磁盘来说,这个性能并不接近150 MB / s(假设这是为默认的127 GB操作系统磁盘分配的)。
期待:
http://azure.microsoft.com/en-us/documentation/articles/storage-premium-storage-preview-portal/
眼看:
Sequential Read : 66.031 MB/s Sequential Write : 63.034 MB/s Random Read 512KB : 65.861 MB/s Random Write 512KB : 63.580 MB/s Random Read 4KB (QD=1) : 2.097 MB/s [ 511.9 IOPS] Random Write 4KB (QD=1) : 2.047 MB/s [ 499.7 IOPS] Random Read 4KB (QD=32) : 2.086 MB/s [ 509.3 IOPS] Random Write 4KB (QD=32) : 2.078 MB/s [ 507.4 IOPS] Test : 50 MB [C: 12.9% (16.4/127.0 GB)] (x5) Date : 2015/02/14 15:46:35 OS : Windows Server 2012 R2 Datacenter (Full installation) [6.3 Build 9600] (x64)
P30磁盘(带有ReadOnlycaching)的性能并不好:
Sequential Read : 204.567 MB/s Sequential Write : 39.677 MB/s Random Read 512KB : 204.549 MB/s Random Write 512KB : 34.865 MB/s Random Read 4KB (QD=1) : 20.951 MB/s [ 5114.9 IOPS] Random Write 4KB (QD=1) : 1.666 MB/s [ 406.7 IOPS] Random Read 4KB (QD=32) : 20.893 MB/s [ 5100.9 IOPS] Random Write 4KB (QD=32) : 20.944 MB/s [ 5113.4 IOPS] Test : 50 MB [E: 0.0% (0.2/1023.0 GB)] (x5) Date : 2015/02/14 15:22:59 OS : Windows Server 2012 R2 Datacenter (Full installation) [6.3 Build 9600] (x64)
与我们当前在D13上部署主机caching的CloudDrive相比(注意4KB随机读取的性能):
Sequential Read : 136.711 MB/s Sequential Write : 10.210 MB/s Random Read 512KB : 190.744 MB/s Random Write 512KB : 9.063 MB/s Random Read 4KB (QD=1) : 10.813 MB/s [ 2639.8 IOPS] Random Write 4KB (QD=1) : 0.508 MB/s [ 107.5 IOPS] Random Read 4KB (QD=32) : 106.533 MB/s [ 26009.1 IOPS] Random Write 4KB (QD=32) : 9.363 MB/s [ 2286.0 IOPS] Test : 50 MB [F: 4.1% (24.9/600.0 GB)] (x5) Date : 2015/02/14 20:25:01 OS : Windows Server 2012 Datacenter (Full installation) [6.2 Build 9200] (x64)
这就是SQLIO为本地SSD报告的内容:
C:\Program Files (x86)\SQLIO>sqlio -dD sqlio v1.5.SG 1 thread reading for 30 secs from file D:testfile.dat using 2KB IOs over 128KB stripes with 64 IOs per run size of file D:testfile.dat needs to be: 8388608 bytes current file size: 0 bytes need to expand by: 8388608 bytes expanding D:testfile.dat ... done. initialization done CUMULATIVE DATA: throughput metrics: IOs/sec: 499.38 MBs/sec: 0.97
而对于P30:
C:\Program Files (x86)\SQLIO>sqlio -dE sqlio v1.5.SG 1 thread reading for 30 secs from file E:testfile.dat using 2KB IOs over 128KB stripes with 64 IOs per run size of file E:testfile.dat needs to be: 8388608 bytes current file size: 0 bytes need to expand by: 8388608 bytes expanding E:testfile.dat ... done. initialization done CUMULATIVE DATA: throughput metrics: IOs/sec: 5103.03 MBs/sec: 9.96
为P30宣传的5000 IOPS正在上涨,但每个磁盘200 MB / s的吞吐量呢?
注意:尝试使用ReadWritecaching策略创buildP30数据磁盘导致:
Update-AzureVm:BadRequest:DataVirtualHardDisk不支持磁盘caching设置ReadWrite。
任何指导将不胜感激:
回答你的问题:
David Berg – Microsoft Azure性能团队
高级存储只支持读高速caching,不像标准磁盘那样读/写
您在SQLIOtesting中的吞吐量是有限的,因为您使用默认的2KB IO块大小。 以目前获得的P30磁盘上的IOPS值乘以块大小,得到5103 IOPS * 2 KB = 10206 KB / s或9.97 MB / s,即testing中报告的吞吐量。 增加SQLIO命令中的块大小(请参阅http://www.mssqltips.com/sqlservertip/2127/benchmarking-sql-server-io-with-sqlio/ ),您将能够find吞吐量限制。 IO块的大小为64 KB应该为您提供5103 IOPS * 64 KB = 326592 KB / s或318.94 MB / s,并testing微软公布的限制。
我没有testing过我的D系列虚拟机上的本地固态硬盘,但我还没有访问高级存储,所以在这种情况下没有帮助。 我唯一的猜测是,一旦你在使用本地固态硬盘容量的75%的机器上使用高端存储,它也可能会限制你的本地固态硬盘访问,以保证优质的存储性能。