Date: Thu, 15 Jul 2010 16:25:51 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/amd64/amd64 pmap.c Message-ID: <201007151626.o6FGQFAK065763@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
alc 2010-07-15 16:25:51 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 210124 on 2010-07-15 16:25:51Z by alc Optimize pmap_remove()'s handling of PG_G mappings. Specifically, instead of calling pmap_invalidate_page() for each PG_G mapping, call pmap_invalidate_range() for each range of PG_G mappings. In addition, eliminate a redundant call to pmap_invalidate_page(). Both pmap_remove_pte() and pmap_remove_page() called pmap_invalidate_page() when the mapping had the PG_G attribute. Now, only pmap_remove_page() calls pmap_invalidate_page(). Altogether, these changes eliminate 53% of the TLB shootdowns for a "buildworld" on a ZFS file system. On FFS, the reduction is 3%. MFC after: 6 weeks Revision Changes Path 1.709 +15 -14 src/sys/amd64/amd64/pmap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007151626.o6FGQFAK065763>