Usually when we get this question the IT admin is concerned with Hyper-V performance.
Hyper-V and NTFS Block Sizes Explained
Understanding the best NTFS cluster block size for Hyper-V requires an understanding of how hard drives, file systems, and Hyper-V work.
However, the max. difference in performance we discovered was a mere ~10%. IT admins are more likely to kill performance by using one of the “bad” speed killers listed below.
But first, let’s talk about block sizes. In the case of VHD, Hyper-V uses 512 byte disk I/O operations internally as it aligned with most modern hard drives until about a decade ago. That’s why for the VHDX virtual disk format, Microsoft aligned their internal block size to 4096 bytes, to match new modern hard drive characteristics.
NTFS default format has a default of 4096 bytes, but that cluster size only works for partitions of up to 16TB. If you use that cluster size, hence, it should be fine. If you use more, such as 64KB, the issue is that the system will need to read the entire block before being able to write to it. 64 KB will need to be cached somewhere, usually inside of the hard disk, then 4KB need to be changed, and the entire thing needs to be written back. And yet this process will cost you only a 10% performance decrease on average.
Typical Hyper-V Performance Killers
Let’s talk about the “bad stuff” now because that’s where performance is being killed in a large scale:
- Worst thing ever: Snapshots a.k.a. Checkpoints in newer Hyper-V versions. It’s not recommended to use them if you want best performance. If you need a copy of the VM, use a backup, or export the VM instead. Checkpoints are intended for demo and development systems only. In the case of mechanical drives, the disk’s heads need to jump back and forth, contiguous blocks are no longer contiguous, which affects Windows disk caching, and disk fragmentation will likely skyrocket as virtual disks grow in size often.
- Why does disk fragmentation become a problem with snapshots? It’s because of the underlying dynamically growing disks. Dynamically growing disks will surely affect even the most capable server with just a dozen VMs, unless SSDs are used. Again, the issue is that the drive’s seek time adds up even for virtually neighboring’ blocks, which may now be 5msec apart from each other. A mere thousand of these read operations and you’re looking at a dramatic 5 second delay. Unfortunately RAID arrays offer no relief when this happens either, since they usually operate at a larger block size than NTFS. SSD hard drives are a fix for this, however, but there is still some CPU overhead involved in managing snapshots. Another thing to consider is that SSDs will likely wear down faster when checkpoints or dynamic disks are being used.
- Another important factor: free disk space. You’ll need at least 15% free space everywhere, including inside VMs and a minimum of 10GB. This is a characteristic of NTFS and when NTFS doesn’t have enough space to work with, it ends up fragmenting the drive really badly and file access time suffers as a consequence.
Hyper-V Backups: Fast, Customizable, Reliable, Affordable Backups
Backup Software OverviewThe Best Backup Software in 2023 Download BackupChain®
BackupChain is the all-in-one server backup software for:
Disk Image Backup
Drive Cloning and Disk Copy
File Server Backup
Virtual Machine Backup
Server Backup Solution
- Best Practices for Server Backups
- NAS Backup: Buffalo, Drobo, Synology
- How to use BackupChain for Cloud and Remote
- DriveMaker: Map FTP, SFTP, S3 Sites to a Drive Letter (Freeware)
- VM Backup
- V4 Articles
- Knowledge Base
- Archive 2022
- Archive 2021
- Archive 2020
- Archive 2019
- Archive 2017
- Archive 2016
- Archive 2015
- Archive 2014
- Archive 2013
- BackupChain (German)
- German Help Pages
- BackupChain (Greek)
- BackupChain (Spanish)
- BackupChain (French)
- BackupChain (Dutch)
- BackupChain (Italian)
- BackupChain is an all-in-one, reliable backup solution for Windows and Hyper-V that is more affordable than Veeam, Acronis, and Altaro.
Other Backup How-To Guides
- Alternative to Amazon S3, Glacier, Azure, OpenStack, Google Cloud Drive
- Image Backup for Hyper-V, VMware, OS, VirtualBox, System, Physical
- RAID Backup Software for RAID Array Backup (0, 1, 5, 10)
- Easy and Secure FTPS Server
- Command-line Access S3, FTP, Wasabi, SFTP, Cloud Drive Windows
- Backup Hyper-V on USB External Hard Drive Pros and Cons
- How to: Hyper-V Replication for Immediate Disaster Recovery
- Backup Verification and Validation: Use Self Validating Backups
- Virtual Machine Backup Software Guide & Tutorial Links
- How to Fix VolSnap 36 Error User Imposed Limit – Volume Snapshot
- Backup Software with VSS Support for Windows Server and Windows 11
- Backup Software with Deduplication for Data, VM, Database Backup
- How to Fix: Data error (cyclic redundancy check)
- Protection Against Ransomware, CryptoLocker, Trojans and Viruses
- Discounts for Schools: Cloud Backup, Storage, Backup Solution
- Backup Software with Encryption for Windows 11, Windows Server 2022
- Volume Shadow Copy Error Diagnostic Freeware VssDiag
- Backup Software Without Compression Option: As-Is File Backup
- SMTP Troubleshooting Sending Email Alerts and Logs
- How to Fix Error 64 “The specified network name is no longer available”