Re: [PATCH 1/2] Use MAP_POPULATE to eliminate startup page faults.

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

 



On 12/31/2009 09:49 PM, Keith Packard wrote:
> +	cache = mmap (0, fd_stat->st_size, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0);

Hi Keith,

The mmap manpage says: MAP_POPULATE is  only  supported  for private mappings 
since Linux 2.6.23.  Does the POPULATE do anything with MAP_SHARED?

An alternative would be calling fadvise().

Thanks,
behdad
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux