Re: [PATCH] ring_buffer: NUMA aware page allocations

From: Ingo Molnar
Date: Mon Jan 12 2009 - 20:37:50 EST



* Eric Dumazet <dada1@xxxxxxxxxxxxx> wrote:

> Hi Robert & Steven
>
> While browsing oprofile code in current tree, I discovered
> drivers/oprofile/cpu_buffer.c was using new ring_buffer code.
>
> Apparently we lost in the conversion NUMA allocations, unless
> I am mistaken, since rb_allocate_pages() uses plain
> __get_free_page(GFP_KERNEL) calls to allocate pages.
>
> All "buffer_page" structs are allocated with kzalloc_node(),
> but not the pages themselves.
>
> Thank you
>
> [PATCH] ring_buffer: NUMA aware page allocations
>
> rb_allocate_pages() & ring_buffer_resize() should use alloc_pages_node()
> instead of __get_free_page() to allocate pages.

nice improvement!

Ingo
--
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/