Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to turn off caching for the whole partition which stores the virtual machines?
I know it can be done individually for each VM but considering that all virtualized operating systems will always be doing their own caching it seems more correct to turn it off for the whole partition which stores all of my VMs.
You could use sync on the file system mount options but there may be significant performance penalties (would have to test). If the data the VMs are writing is critical it might be worth investigating whether they can use raw partitions instead of files on the host.
You could use sync on the file system mount options but there may be significant performance penalties (would have to test). If the data the VMs are writing is critical it might be worth investigating whether they can use raw partitions instead of files on the host.
Thanks catkin, I will try the 'sync' mount option, see how that performs. It is not so much that the data is critical but that I want to prevent double caching, all of the host VMs will be doing their own caching anyway just don't want to double up with caching on top of caching and the problems that entails.
Speed; double caching is very slow turning off caching on the VMs allows them to run much faster.
Thanks Nick
I am surprised. Normally caching is faster because the data is written less often (and in larger chunks, but that has a small effect on the time taken), hence caching vs. not caching is usually a choice between performance and data security. Do you have any test results to demonstrate the scale of the problem?
Why I don't know. Just that I have found Win 7 VMs install much quicker with individual machine caching set to none rather than default. Now instead of having to do this for each VM I thought that because I have all VMs in the same partition perhaps I could turn off caching for all of them by using this mount option.
Why I don't know. Just that I have found Win 7 VMs install much quicker with individual machine caching set to none rather than default. Now instead of having to do this for each VM I thought that because I have all VMs in the same partition perhaps I could turn off caching for all of them by using this mount option.
which caching option is this? where do you install the VM from? you cannot post such claims without investigating the underlying root cause, that's all I'm saying, and your conclusions are pretty far fetched
---------- Post added 03-28-12 at 01:20 PM ----------
Quote:
Originally Posted by Nick_C
How can I see what mount options are currently in use
Code:
mount
Quote:
and then how can I add that sync mount option to the mounting of my /vm partition?
edit your fstab, and add the option after "defaults"
would be great to find out, at the lowest possible level, what is causing this. I don't think double caching as such is the culprit, but maybe in the way qemu implements it's caching, some extra overhead gets introduced - this needs to be proven of course.
In addition, you might be running buggy builds that do weird things, seen plenty of that before
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.