Messages in this thread | | | Date | Thu, 12 Apr 2007 14:18:09 -0400 | From | Dave Jones <> | Subject | Re: [PATCH 3/4] Pte xchg optimization.patch |
| |
On Wed, Apr 11, 2007 at 10:30:58PM -0700, Zachary Amsden wrote: > In situations where page table updates need only be made locally, and there > is no cross-processor A/D bit races involved, we need not use the heavyweight > xchg instruction to atomically fetch and clear page table entries. Instead, > we can just read and clear them directly. > > This introduces a neat optimization for non-SMP kernels; drop the atomic > xchg operations from page table updates.
Would it be feasible to do this using the smp_alternatives stuff? Given many distros are now shipping SMP-only kernels, it'd be nice to get that win without using having to rebuild their kernels.
Dave
-- http://www.codemonkey.org.uk - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |