qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Purpose of memory-backend-file.discard-data


From: Michal Privoznik
Subject: [Qemu-devel] Purpose of memory-backend-file.discard-data
Date: Fri, 13 Apr 2018 08:21:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Eduardo et al,

I'm looking at 11ae6ed8affdd131e and I wanted to implement libvirt
support for that. But more I look at it less I understand it. My
understanding it is an optimization (although not very effective one
since madvise() is/should be immediately followed by munmap()). So any
application that is trying to keep track of guest memory  can stop doing
so as soon as it sees munmap(). Or does the optimization lies in fact
that madvise() is called sooner and thus the app can stop caring
slightly sooner?

Also, I don't quite understand why is this configurable. What's the harm
in turning it on by default? Yesterday I've posted some patches to
libvirt list [1] (although I have to admit I am still not fully
convinced about the design) and they implement just this - whenever qemu
supports the feature libvirt turns it on.

Michal

1: https://www.redhat.com/archives/libvir-list/2018-April/msg01066.html



reply via email to

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