CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2014/04/03 14:21:01

Modified files:
        sys/uvm        : uvm_fault.c uvm_fault.h uvm_init.c 

Log message:
uvm_fault() will try to fault neighbouring pages for the MADV_NORMAL case,
which is the default, unless the fault call is explicitly used to wire a given
page.

The amount of pages being faulted in was borrowed from the FreeBSD VM code,
about 15 years ago, at a time FreeBSD was only reliably running on 4KB page
size systems.

It is questionable whether faulting the same amount of pages, on platforms
where the page size is larger, is a good idea, as it may cause too much I/O.

Add an uvmfault_init() routine, which will compute the proper number of pages
at runtime, depending upon the actual page size, and attempting to fault in
the same overall size the previous code would have done with 4KB pages.

ok tedu@

Reply via email to