Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The biggest adverse effect of this is that if you suspend your VM on a removable drive it takes a significant amount of time to completely suspend to disk. Parallels give NO indication of what's going on in the background, if you eject and/or unplug the drive the VM will most likely be corrupted.
Hi Guys,
This is beginning to upset me!
When resuming or sleeping parallels only loads or saves the ram image at 20MB/sec.
When the VMS are running they R/W to the disk perfectly.
Is there a setting somewhere to stop parallels acting in this way?
Thanks for any help
Andy
Gregorio, thanks a lot for explaining the real issue for you - now I see the problem and must admit that we missed the removable drive use case.
Let me explain you how it works, why you see 20Mb/s and how to workaround it.
1. How it works and why 20Mb/s:
By default VM memory resides in a plain file and is mapped to Parallels VM process.
When VM is suspended, Parallels just closes the file and MacOS should do the rest - write the file on the media.
Unfortunately, MacOS doesn't do file writeback until real memory must be freed for some purpose.
This is not so good since when some other application will need memory MacOS will have to do a slow file write to get the memory and thus overall system performance may feel slow a long time after VM suspend "finished".
To remove this negative effect Parallels (and Fusion BTW as well) force writeback of the file on the disk.
This works well, except for another unfortunate effect - system may feel slow due to heavy I/O for tenth of seconds (and user will have no clue of what is happening), so we limited I/O speed to ~20Mb/s to improve user experience.
You are right for sure that this should not be done for removable media. I will schedule a fix for the next update.
2. How to workaround (for PD6 only):
Add "vm.mem_anonymous=1" to VM -> Configure -> Hardware -> Boot Order -> Boot flags and restart VM.
This flag will make PD6 to save compressed suspend state which should improve performance on slow media (e.g. USB drive) and greatly improve cold resume time. In this mode suspend dialog won't complete also before real data is written. I guess this is what should be enabled as default mode on removable media. Your feedback on whether it helps your problem is greatly appreciated.
It is pretty annoying not just on removable media but also on shutdown of the machine. If for instance I have a VM using 8GB that I shutdown and then try to shutdown the machine I have to wait for this to be written at 20MB/sec on a machine that can do over 200MB/sec, 10 times longer!
Also way on my laptop with 8GB I tend to swap between a 6GB windows 7 vm and a 4GB xp vm, so when I shut one down to start the other I have to wait bloody ages for the file to be written before starting the other one as the ram has not been released, the disk can manage 80MB/sec so I am waiting 4 times more.
Could we please, please have a setup option to say write to disk at full speed, maybe vm.suspendFlatOut![]()
I definitely see a very slow shutdown while a suspend is going on, this is one of the reasons I first started trying to work out what was going on.
Thanks for all your help
1. Because the RAM is not freed and other processes connot use it.
2. Because I close the VM down and then shut the machine down and it takes forever to shutdown as the file is being written!
I just got this from support:
Dear Andy,
We got a reply from our development team. The speed of suspend is not under control of Parallels Desktop as it is controlled by Mac OS X.
It is a MacOS X background async disk flushes which is activated on memory reclamation. Parallels Desktop does not control it. If this operation requires more memory, then MacOS X will flush it at full speed. In this situation, Mac OS X thinks that much memory is not required and flushes at 20 MB/s.
So, as the issue is not related to Parallels Desktop, we are closing this request.
If you have any questions, please, do not hesitate to contact us.
Best Regards,
--
Andrey Polienko
Team Leader
Support Department
Parallels
And here is my reply:
Hi Andrey,
Thanks for the info but it is not correct.
I can proved that when memory requests are made to the system the file is not flushed any quicker even when the machine is totally out of RAM and failing mallocs.
Also when the machine is shutdown this speed is the same and you sit there waiting at the blue screen, I would say that your developers need to look at it again!
Thanks
Andy
Could we please, please have a setup option to say write to disk at full speed, maybe vm.suspendFlatOut
Andy