qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] pc: madvise(MADV_DONTNEED) memory on reset


From: Samuel Thibault
Subject: Re: [Qemu-devel] [PATCH] pc: madvise(MADV_DONTNEED) memory on reset
Date: Thu, 25 Feb 2010 00:56:01 +0100
User-agent: Mutt/1.5.12-2006-07-14

Hello,

I just want to note the fact that although Linux got it badly wrong,
according to POSIX, MADV_DONTNEED is _not_ supposed to drop the content
of the memory, but just to tune the write-back heuristics and such.
(see glibc's ./sysdeps/unix/sysv/linux/posix_madvise.c if you're not
convinced)

qemu should probably try to use MADV_REMOVE (proper linux variant) or
MADV_FREE (solaris variant).

Samuel




reply via email to

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