1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/sys/i386
Alan Cox 8155e5d561 Reduce the number of global TLB shootdowns generated by pmap_qenter().
Specifically, teach pmap_qenter() to recognize the case when it is being
asked to replace a mapping with the very same mapping and not generate
a shootdown.  Unfortunately, the buffer cache commonly passes an entire
buffer to pmap_qenter() when only a subset of the mappings are changing.
For the extension of buffers in allocbuf() this was resulting in
unnecessary shootdowns.  The addition of new pages to the end of the
buffer need not and did not trigger a shootdown, but overwriting the
initial mappings with the very same mappings was seen as a change that
necessitated a shootdown.  With this change, that is no longer so.

For a "buildworld" on amd64, this change eliminates 14-15% of the
pmap_invalidate_range() shootdowns, and about 4% of the overall
shootdowns.

MFC after:	3 weeks
2010-07-10 18:22:44 +00:00
..
acpica Restore the machine check register banks on resume. For banks being 2010-06-15 18:51:41 +00:00
bios
compile
conf Import the acpi_aibs(4) driver written by Constantine A. Murenin. 2010-06-25 15:32:46 +00:00
i386 Reduce the number of global TLB shootdowns generated by pmap_qenter(). 2010-07-10 18:22:44 +00:00
ibcs2 Regenerate 2010-06-28 18:17:21 +00:00
include Fix spacing. 2010-07-09 21:27:42 +00:00
isa After the FPU use requires #MF working due to INT13 FPU exception handling 2010-06-23 11:21:19 +00:00
linux Regenerate 2010-06-28 18:17:21 +00:00
pci
svr4
xbox
xen Relax one of the new assertions in pmap_enter() a little. Specifically, 2010-06-11 15:49:39 +00:00
Makefile