|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCHv5 06/10] migration: search for zero instead of dup pages |
Date: | Mon, 08 Apr 2013 10:38:11 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 |
Il 06/04/2013 00:06, Peter Lieven ha scritto: >> > I think we should MADV_DONTNEED it. > i have to correct myself, on Linux it seems that MADV_DONTNEED guarantees that > subsequent reads will return a zero filled page. > > If I am right with that we could MADV_DONTNEED the memory on startup and keep > not sending zero pages in bulk stage if we are running under Linux. Am I > right with that? Actually we can use mmap+munmap to allocate a well-aligned, always zero block for the RAM. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |