Re: [PATCH] avoid unnecessary cache flushes

From: Andrea Arcangeli (andrea@suse.de)
Date: Mon Sep 03 2001 - 21:31:51 EST


On Tue, Sep 04, 2001 at 11:53:22AM +1000, Paul Mackerras wrote:
> For alpha, the thing that my patch does that might hurt is the change
> from flush_icache_page to flush_icache_range in kernel/ptrace.c. Any
> comment on that?

For the alpha such change will imply a performance penablity (will throw
away the whole icache, not only the one belonging to the ptraced task).

We cannot change flush_icache_range to bump the asn because there's no
vma in the flush_icache_range API (flush_icache_range in short is for
the kernel side, like with vmalloc and kernel modules where a
vma/mm/tsk wouldn't make sense anyways).

what's the point of such change? The whole point of the patch is to work
with pages not with virtual addresses so you can do the bitflag
bookeeping on the page structure, so I don't see why would you want to
do the opposite change there.

Andrea
-
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 : Fri Sep 07 2001 - 21:00:23 EST