Messages in this thread | | | Date | Wed, 1 Apr 2009 22:18:59 -0400 (EDT) | From | Christoph Lameter <> | Subject | Re: [PATCH UPDATED] percpu: use dynamic percpu allocator as the default percpu allocator |
| |
On Thu, 2 Apr 2009, Ingo Molnar wrote:
> So ... we regressed the performance of percpu_free(NULL) with a > potential cross-CPU cacheline bounce. Without the patch, > percpu_free(NULL) would never do such a bounce. So i dont think the > patch is a good idea.
But percpu_free is not an operation typical for hot code paths. Per cpu variables are allocated and freed in rarely used code paths. Typically the use of the per cpu variables occurs in hot code paths, not their allocations.
| |