]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make a change to the implementation of the direct map to improve performance
authorAlan Cox <alc@FreeBSD.org>
Wed, 2 Mar 2011 00:24:07 +0000 (00:24 +0000)
committerAlan Cox <alc@FreeBSD.org>
Wed, 2 Mar 2011 00:24:07 +0000 (00:24 +0000)
commitcb25117d540930ee42dfd1c6a7fd22e989c844ef
tree9ea18393286a0b9c12c62f370b14b307ccee33cb
parent3658c9776ecf57d788ab793e9e16215fdabcc0d6
Make a change to the implementation of the direct map to improve performance
on processors that support 1 GB pages.  Specifically, if the end of physical
memory is not aligned to a 1 GB page boundary, then map the residual
physical memory with multiple 2 MB page mappings rather than a single 1 GB
page mapping.  When a 1 GB page mapping is used for this residual memory,
access to the memory is slower than when multiple 2 MB page mappings are
used.  (I suspect that the reason for this slowdown is that the TLB is
actually being loaded with 4 KB page mappings for the residual memory.)

X-MFC after: r214425
sys/amd64/amd64/pmap.c