Re: [patch 0/6] mm: alloc_percpu and bigrefs

From: Andrew Morton
Date: Fri Sep 23 2005 - 02:12:39 EST



(Added linux-kernel)

Ravikiran G Thirumalai <kiran@xxxxxxxxxxxx> wrote:
>
> Hi Andrew,
> This patchset contains alloc_percpu + bigrefs + bigrefs for netdevice
> refcount. This patchset improves tbench lo performance by 6% on a 8 way IBM
> x445.

I think we'd need more comprehensive benchmarks than this before adding
large amounts of complex core code.

We'd also need to know how much of any performance improvement was due to
alloc_percpu versus bigrefs, please.

Bigrefs look reasonably sane to me, but a whole new memory allocator is a
big deal. Given that alloc_percpu() is already numa-aware, is that extra
cross-node fetch and pointer hop really worth all that new code? The new
version will have to do a tlb load (including a cross-node fetch)
approximately as often as the old version will get a CPU cache miss on the
percpu array, maybe?


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/