"WRITE BACK" OPTION FOR HYPER-V

Copper Contributor

Hi Hyper-V Friends,

the following important fact will probably only be known to very few admins today.

In all previously published and also the current Hyper-V versions, all write operations that are processed by the Hyper-V storage stack are always passed on to the underlying storage subsystem as WRITE-THROUGH.

 

The bottom line is that, every Hyper-V forces the underlying storage subsystem to completely bypass the write cache built into the RAID controller or the SAN. Even then, if the Write Cache is activated in the controller policy and is also requested via the application. This active bypassing of the write cache leads in most cases to very massive performance losses when writing!

 

Incidentally, this behavior is documented by Microsoft, but this information is very well hidden and not easy to decipher at first glance.

 

https://docs.microsoft.com/en-us/troubleshoot/windows-server/virtualization/hyper-v-storage-caching-...

 

“Host filesystem cache. The Hyper-V storage stack also uses unbufferred writes to make sure that the writes from the guest bypass the underlying host filesystem stack.”

 

I understand that in some systems / scenarios, especially those where critical data is involved and the write cache of the storage is for example not buffered by a battery, it is wiser to work with WRITE-THROUGH. Therefore I would respect, if the Hyperv works per standard with "WRITE-THROUGH", but I as the admin would also have the possibility to change this behavior to "WRITE-BACK" or "ORIGINAL IO", so thus my expensive and batterybuffered SAN cache, can be used sensibly for writing again.

 

Best Regards from Germany

 

Alex

0 Replies