lkml.org 
[lkml]   [2009]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] SLQB slab allocator
    On Fri, Jan 23, 2009 at 10:55:26AM +0100, Andi Kleen wrote:
    > Nick Piggin <npiggin@suse.de> writes:
    > > +#ifdef CONFIG_NUMA
    > > +void *__kmalloc_node(size_t size, gfp_t flags, int node);
    > > +void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
    > > +
    > > +static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
    >
    > kmalloc_node should be infrequent, i suspect it can be safely out of lined.

    Hmm, it only takes up another couple of hundred bytes for a full
    numa kernel. Completely out of lining it can take a slightly slower
    path and makes the code slightly different from the kmalloc case.
    So I'll leave this change for now.



    \
     
     \ /
      Last update: 2009-01-23 13:57    [W:4.647 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site