|
From: | Alex Bligh |
Subject: | Re: [Qemu-devel] [PATCH] Introduce cache images for the QCOW2 format |
Date: | Wed, 14 Aug 2013 00:16:06 +0100 |
--On 13 August 2013 19:03:56 +0200 Kaveh Razavi <address@hidden> wrote:
Also, simultaneously booting VMs from more than one VM image creates a bottleneck at the storage device of the base image, if the storage device does not fair well with the random access pattern that happens during booting.
Additional question (sorry for spitting them) The above para implies you intend one cache file to be shared by two VMs booting from the same backing image on the same node. If that's true, how do you protect yourself from the following: VM1 VM2 1. Read rq for block 1234 2. Start writing block 1234 to cache file 3. Read fq for blk 1234 4. Read blk 1234 from cache file 5. Finish writing block 1234 to cache file As far as I can see VM1 could read an incomplete write from the cache file. Further, unless you're opening these files O_DIRECT, how do you know half the writes from VM1 won't be sitting dirty in the page cache when you read using VM2? -- Alex Bligh
[Prev in Thread] | Current Thread | [Next in Thread] |