SSD, TRIM, Mavericks, and Parallels

Discussion in 'Linux Virtual Machine' started by Parallels User, May 16, 2014.

  1. I have a basic question on using Parallels VM off of an SSD. My system (Mavericks) has TRIM enabled for my Samsung 840 SSD. Linux Mint 16 can support TRIM. However the VM does not seem to emulate a TRIM enabled device. Since OS X only issues a TRIM when a file is actually deleted, the VM files never get TRIMed since OS X never sees the Linux delete (thats a VM for you). I know all the internet babble on TRIM or no TRIM .... everyone seems to get confused by Garbage Collection on an SSD and TRIM ... not the same things although they do interact somewhat. TRIM reduces write-amplification (see Wiki).

    So two questions -
    - Since OS X may be running TRIM triggered by a background task while I am using Parallels is there a data loss or corruption issue if the VM turns on trim (if that is even possible).
    - If the VM doesn't support TRIM, how do I get TRIM done on the VM virtual disk (Samsung strongly recommends turning on TRIM).

    It seems to me that for now I would be much better off either booting Linux native and tossing Parallels or giving up on Linux and Parallels and doing all my development on Mac. Let's not even get started on Windows issues and TRIM !!!
     
    Last edited by a moderator: May 16, 2014
  2. mmika

    mmika Pro

    Messages:
    488
    No. It is not possible. OS X TRIM does not affect VM hdd image files unless these file are being truncated.
    And this is not the case of normal VM functioning.

    You can use the "compact Vm" feature. Parallels will examine your virtual drive and trim unused data. The VM image file will be truncated as result, so OS X TRIM will discard data freed by Parallels.
     
  3. I guess having to use Compress eliminates any hope of running a server on Parallels Desktop (unless I plan on rebooting it now and then).
     

Share This Page