Re: adjust prefetch in free_one_pgd()

David Mosberger (davidm@napali.hpl.hp.com)
Fri, 2 Aug 2002 09:38:12 -0700


>>>>> On 02 Aug 2002 18:49:27 +0100, Alan Cox <alan@lxorguk.ukuu.org.uk> said:

Alan> I can't think of anything cachable with nasty side effects we
Alan> might encounter right now but one day someone will do it just
Alan> to be annoying.

Cacheable and side-effects don't go together. Even without explicit
software prefetches, most modern CPUs will happily and aggressively
prefetch stuff from cacheable translations.

That's (partly) why we have this strange situation where execution in
virtual address space is actually _faster_ than in physical space,
even though the former involves more work per memory access.

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