freebsd-nq/sys/amd64
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
amd64 Reduce the number of global TLB shootdowns generated by pmap_qenter(). 2010-07-10 18:22:44 +00:00
compile
conf Add the u3g(4) driver. I can't find any reason why it's not here. 2010-07-07 09:23:46 +00:00
ia32 Move prototypes for kern_sigtimedwait() and kern_sigprocmask() to 2010-06-30 18:03:42 +00:00
include For both i386 and amd64 pmap, 2010-07-09 20:05:56 +00:00
linux32 Regenerate 2010-06-28 18:17:21 +00:00
pci number of cleanups in i386 and amd64 pci md code 2009-09-24 07:11:23 +00:00
Makefile Adjustments to make a tags file a bit more suitable to amd64. 2008-12-01 14:15:10 +00:00