[Fontconfig] [PATCH 1/2] Use MAP_POPULATE to eliminate startup page faults.
behdad at behdad.org
Thu Dec 31 12:54:10 PST 2009
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);
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().
More information about the Fontconfig