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 Thu, 31 Dec 2009 21:54:10 +0100, Behdad Esfahbod <behdad@xxxxxxxxxx> wrote:

> 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?

Hrm. I recall measuring this a while ago and finding some difference in
the page fault counts, but I cannot replicate that now (even after
fixing my patch to not call mmap twice). I'd say you can discard this patch.

> An alternative would be calling fadvise().

This also has no effect:

     posix_fadvise(fd, 0, fd_stat->st_size, POSIX_FADV_WILLNEED))

Looks like whatever effect I measured has disappeared in more recent
kernels.

-- 
keith.packard@xxxxxxxxx

Attachment: pgpaelc9kYCBs.pgp
Description: PGP signature

_______________________________________________
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