• Waiman Long's avatar
    debugobjects: Percpu pool lookahead freeing/allocation · 634d61f4
    Waiman Long authored
    Most workloads will allocate a bunch of memory objects, work on them
    and then freeing all or most of them. So just having a percpu free pool
    may not reduce the pool_lock contention significantly if large number
    of objects are being used.
    
    To help those situations, we are now doing lookahead allocation and
    freeing of the debug objects into and out of the percpu free pool. This
    will hopefully reduce the number of times the pool_lock needs to be
    taken and hence its contention level.
    Signed-off-by: default avatarWaiman Long <longman@redhat.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Yang Shi <yang.shi@linux.alibaba.com>
    Cc: "Joel Fernandes (Google)" <joel@joelfernandes.org>
    Cc: Qian Cai <cai@gmx.us>
    Cc: Zhong Jiang <zhongjiang@huawei.com>
    Link: https://lkml.kernel.org/r/20190520141450.7575-3-longman@redhat.com
    634d61f4
debugobjects.c 32.4 KB