Re: Q: PREFETCH_STRIDE/16

From: David S. Miller (davem@redhat.com)
Date: Thu May 23 2002 - 11:21:55 EST


   From: David Mosberger <davidm@napali.hpl.hp.com>
   Date: Thu, 23 May 2002 09:26:54 -0700
   
   That code certainly wasn't optimized for ia64. Furthermore, I also do
   not like the prefetch distance it's using. In fact, in my ia64-patch,
   I use the following code instead:
   
                   prefetchw(pmd + j + PREFETCH_STRIDE/sizeof(*pmd));
   
   This is more sensible (because it really does prefetch by the
   PREFETCH_STRIDE distance) and it also happens to run (slightly) faster
   on Itanium.

All of these particular prefetches are amusing, with or without your
fix, considering there are other more powerful ways to optimize this
stuff. :-)

-
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/



This archive was generated by hypermail 2b29 : Thu May 23 2002 - 22:00:30 EST