살펴보니 Disk생성 시 SectorSize를 줘서 Powershell로 생성하게 되면 Linux에서도 동일한 성능을 보장한다.
명령어 : New-VHD
New-VHD [-Path] <String[]> [-SizeBytes] <UInt64> [-AsJob] [-BlockSizeBytes <UInt32> ] [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-ComputerName <String[]> ] [-Credential <System.Management.Automation.PSCredential[]> ] [-Dynamic] [-LogicalSectorSizeBytes <UInt32> {512 | 4096} ] [-PhysicalSectorSizeBytes <UInt32> {512 | 4096} ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Sector Size를 4KB로 고정하고 os를 설치해 보았다.
New-VHD -Path "E:\Hyper-V\os.vhdx" -SizeBytes 512GB –LogicalSectorSize 4KB
이렇게 생성된 vhdx파일로 linux설치 후 io성능 측정을 위해서 hdparm을 돌려봤다.
|
# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 16392 MB in 2.00 seconds = 8207.08 MB/sec
Timing buffered disk reads: 6658 MB in 3.00 seconds = 2219.23 MB/sec
# hdparm -tT --direct /dev/sda
/dev/sda:
Timing O_DIRECT cached reads: 2752 MB in
2.00 seconds = 1375.90 MB/sec
Timing O_DIRECT disk reads: 11888 MB in 3.00 seconds = 3962.17 MB/sec
|
디스크 1개 성능이 나올때 겨우 200~300MB/sec이 나왔었는데 잘나온다 ^^b
끝~~
댓글 없음:
댓글 쓰기