[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0708271421130.6566@schroedinger.engr.sgi.com>
Date: Mon, 27 Aug 2007 14:23:45 -0700 (PDT)
From: Christoph Lameter <clameter@....com>
To: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
cc: Peter Zijlstra <peterz@...radead.org>, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org, mingo@...hat.com
Subject: Re: [PATCH] SLUB use cmpxchg_local
On Mon, 27 Aug 2007, Mathieu Desnoyers wrote:
> > a clean solution source code wise. It also minimizes the interrupt holdoff
> > for the non-cmpxchg_local arches. However, it means that we will have to
> > disable interrupts twice for the slow path. If that is too expensive then
> > we need a different solution.
> >
>
> cmpxchg_local is not used on the slow path... ?
Right.
> Did you meant:
>
> it means that we will have to disable preemption _and_ interrupts on the
> fast path for non-cmpxchg_local arches ?
We would have to disable preemption and interrupts once on the fast path.
The interrupt holdoff would just be a couple of instructions.
The slow path would require disable preemption and two interrupt disables.
Question is if this makes sense performance wise. If not then we may have
to look at more complicated schemes.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists