5
2
I've an interesting doubt. Since virtual machines create a file that represents a hard disk - the so-called virtual disk -, and it usually takes 20-40GB (and even more), how does this affect a solid-state disk (SSD) life time?
For example, in my case I'm using VirtualBox latest version and since some more-than-a-year version, VirtualBox supports marking virtual hard disks as SSD in order to let guest operating system (i.e. Windows 7 and above) detect the whole disk as SSD and optimize the OS to work better with SSD pros and cons.
My virtual machine is a Windows 7 virtual development environment with Visual Studio and I rarely do intensive write operations. Well, saving code files when I edit them... But these are small writes.
The actual question is how virtualization software systems treat these big virtual disk files. I guess that a write in the guest machine is treated the same way as a write in the host machine, and a virtual machine doesn't shrinks SSD life-time more than a host OS, if I use virtual machines in the same way as host OSes.
You will need to make sure that the necessarily reduced memory in the virtual machine does not cause a lot of swapping, as this will certainly reduce the SSD life, since all reads and writes are in the same area of disc. – AFH – 2014-09-14T17:31:18.960
@AFH Ah yeah, I see. VM has 4GB of RAM and I'm never using more than 2-2,5GB. Host machine has other 4GB (8GB of total physical RAM memory). It seems that swapping concern should be an issue in my case. Thanks for this suggestion. – Matías Fidemraizer – 2014-09-14T17:45:55.170
Read this maybe useful: https://forums.macrumors.com/threads/install-an-os-that-doesnt-have-trim-on-a-vm-on-an-ssd.1707066/
– QMaster – 2018-08-03T13:54:52.917