public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Q: PREFETCH_STRIDE/16
@ 2002-05-23 15:12 Hugh Dickins
  2002-05-23 16:26 ` David Mosberger
  0 siblings, 1 reply; 8+ messages in thread
From: Hugh Dickins @ 2002-05-23 15:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrea Arcangeli, Linus Torvalds

Could anyone please shed light on PREFETCH_STRIDE,
and in particular its sole use:
		prefetchw(pmd+j+(PREFETCH_STRIDE/16));
in mm/memory.c: free_one_pgd().

That looks to me suspiciously like something inserted to suit
one particular architecture - ia64? is it really suitable for
others? is 4*L1_CACHE_SIZE really right for PREFETCH_STRIDE
on anything that prefetches except ia64? what's the "/ 16"?
shouldn't there be a "/ sizeof(pmd_t)" somewhere (PAE or not)?
is it right to prefetch each time around that loop? isn't it
appropriate only to the exit_mm (0 to TASK_SIZE) clearance?

All in all, I'm thinking that line shouldn't be there,
or not without a substantial comment...

Thanks,
Hugh


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-05-23 18:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-23 15:12 Q: PREFETCH_STRIDE/16 Hugh Dickins
2002-05-23 16:26 ` David Mosberger
2002-05-23 16:21   ` David S. Miller
2002-05-23 16:43     ` David Mosberger
2002-05-23 16:34       ` David S. Miller
2002-05-23 17:02         ` David Mosberger
2002-05-23 17:00           ` David S. Miller
2002-05-23 18:32             ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox