Re: [PATCH] don't use mmap() to hash files

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

 



On Mon, Feb 15, 2010 at 10:48 AM, Paolo Bonzini <bonzini@xxxxxxx> wrote:
> 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).

I was speaking about read(), when the whole file is read  in memory. In
this case, you are going to use a lot of "swap" and it is not pretty...
That's why I said maybe we should have an option here...


Dmitry
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]