Re: Some interesting observations when trying to optimize vmstat handling

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <clameter@...>
Cc: <linux-kernel@...>, <linux-mm@...>, <ak@...>, <mathieu.desnoyers@...>
Date: Thursday, November 8, 2007 - 7:24 pm

From: Christoph Lameter <clameter@sgi.com>
Date: Thu, 8 Nov 2007 11:58:58 -0800 (PST)


I bet this can be defeated by prefetching for a write before
the read, but of course this won't help if the read is
being used to conditionally avoid the cmpxchg_local but I don't
think that's what you're trying to do here.

I've always wanted to add a write prefetch at the beginning of all of
the sparc64 atomic operation primitives because of this problem.
I just never got around to measuring if it's worthwhile or not.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Some interesting observations when trying to optimize vm..., David Miller, (Thu Nov 8, 7:24 pm)
Re: Some interesting observations when trying to optimize vm..., Jeremy Fitzhardinge, (Thu Nov 8, 8:19 pm)