Multiple page size support on FreeBSD?

Sebastian Feld sebastian.n.feld at gmail.com
Wed Apr 10 20:12:46 UTC 2013


On Wed, Apr 10, 2013 at 7:49 PM, Wojciech Puchar
<wojtek at wojtek.tensor.gdynia.pl> wrote:
>> How do your tests work?  Do you examine PTEs directly to check for
>> superpages
>> or are you relying on the vm.pmap.pde sysctls?
>
>
> the later.
>
> anyway - algorithm described on list - that heuristics detects consecutive
> page access doesn't really help the urgent case - RANDOM access to large
> amount of memory.
>
> sequential access will get minimal improvement.
>
> IMHO the only way that really make sens is to add options to madvise to give
> kernel information about usage.

Solaris has an API to control the usage for large pages, search for
MPSS - multiple page size support.
It consists of APIs in madvise, and /usr/bin/pagesize -a to list all
available page sizes, and other stuff. Since this has been established
since at least Solaris 9 (and 10) and is used by database and HPC
software, it might be a good starting point.


More information about the freebsd-hackers mailing list