qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH][v2] Align file accesses with cache=off (O_D


From: Anthony Liguori
Subject: Re: [Qemu-devel] Re: [PATCH][v2] Align file accesses with cache=off (O_DIRECT)
Date: Wed, 21 May 2008 15:35:33 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Andrea Arcangeli wrote:
As has been pointed out, this is probably not ideal since it would cause heavy vma fragmentation. We may be able to simulate this using the slots API although slots are quite similar to vma's in that we optimize for a small number of them.

I'm quite sure remap_file_pages can be extended to work on
MAP_PRIVATE. But I don't see the big benefit in sharing the ram
between host and guest, when having it in the guest is enough and this
only works for read anyway and it can only share ram among different
guests with -snapshot.

Or if multiple guests are using the same backing file (imagine each guest has it's own qcow file backed to a common one). Or if we had a more advanced storage system that did something like content addressable storage.

Regards,

Anthony Liguori

So while it sounds a clever trick, I doubt it's a worthwhile
optimization, it has downsides, and the worst is that I don't see how
we could extend this logic to work for writes because the pagecache of
the guest can't be written on disk before the dma is explicitly
started on the guest.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]