• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Virtual Machines and Caching

Chiefcrowe

Diamond Member
Do you set your virtual hard drives to turn of write caching?
I have been told that is the best practice but I wanted to see what the consensus was.
 
My computer is on a UPS so I leave Write Caching on. I've never benchmarked it, but I assume its adding some amount of increased performance.

File Systems are pretty resilient to corruption, but with Virtualization you're technically adding 2 layers (the Guest OS filesystem, the VM software, and the host OS filesystem - unless its a standalone hypervisor), which can increase the possibility of corruption.
 
Are you talking about the guest VMs, or the actual host VM?

In respect to the guest VM's I don't think it matters because the host is going to emulate all the device responses anyways which are invisible to the guest VM. I know this gets a bit technical when you start dealing with low level hypervisors and such, but everything I've seen shows it doesn't matter in terms of the guest.

In terms of the host, it can make a huge difference. Write-though disk access (cacheing off) is only advised when you have a single guest VM that you wish to basically take over the disk (or RAID controller).

In all other scenarios, if you have more than one guest VM then write-back (cache on) should be enabled. With typical onboard SATA controllers this typically isn't pertinent, but with better RAID controllers involved not having write-back (cache-on) enabled can cause catastrophic disk problems with more than one VM . I've seen VMs seize up for minutes at a time when when multiple guests try to write to a disk array when write-through (cache-off) was toggled.
 
I'm talking about in the guest VMs. I also read that for virtual domain controllers, caching should be turned off under the properties of the HD.
 
I'm talking about in the guest VMs. I also read that for virtual domain controllers, caching should be turned off under the properties of the HD.

Should be that way for physical DC's.

Only exception is battery backed up ones that have a proper shutdown interface with the UPS. And even those it often isn't worth it.
 
Back
Top