From: Paolo Bonzini Date: Mon, 15 Feb 2010 07:48:06 GMT Subject: Re: [PATCH] don't use mmap() to hash files Message-ID: <4B78FC36.1090108@gnu.org> In-Reply-To: <37fcd2781002141156n7e2b9673s1eb6c12869facdb2@mail.gmail.com> On 02/14/2010 08:56 PM, Dmitry Potapov wrote: > It may not work without enough swap space No, the kernel will use the file itself as "swap" if it has to page out the memory (since the mmap is PROT_READ). Paolo