summaryrefslogtreecommitdiff
path: root/lib/test_parman.c
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2019-05-20 10:14:47 -0400
committerThomas Gleixner <tglx@linutronix.de>2019-06-14 14:51:14 +0200
commit634d61f45d6f668fe7e468b62d00ae469a583ca2 (patch)
treec0a85cfb076ba93b00da054c11cd9cd3ae9b4969 /lib/test_parman.c
parentd86998b17a01050c0232231fa481e65ef8171ca6 (diff)
debugobjects: Percpu pool lookahead freeing/allocation
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: Waiman Long <longman@redhat.com> Signed-off-by: Thomas 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
Diffstat (limited to 'lib/test_parman.c')
0 files changed, 0 insertions, 0 deletions