]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmapool: add alloc/free performance test
authorKeith Busch <kbusch@kernel.org>
Thu, 26 Jan 2023 21:51:14 +0000 (13:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:03 +0000 (16:02 -0700)
commitb9926ba4c7d02acde7e33086e1d9267047122c03
tree598827828f8beca318577566d0dc6de6b6ee6cc1
parent38db252e75197de0225e2b61b6c5a01227859e02
dmapool: add alloc/free performance test

Patch series "dmapool enhancements", v4.

Time spent in dma_pool alloc/free increases linearly with the number of
pages backing the pool.  We can reduce this to constant time with minor
changes to how free pages are tracked.

This patch (of 12):

Provide a module that allocates and frees many blocks of various sizes and
report how long it takes.  This is intended to provide a consistent way to
measure how changes to the dma_pool_alloc/free routines affect timing.

Link: https://lkml.kernel.org/r/20230126215125.4069751-1-kbusch@meta.com
Link: https://lkml.kernel.org/r/20230126215125.4069751-2-kbusch@meta.com
Signed-off-by: Keith Busch <kbusch@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/Kconfig
mm/Makefile
mm/dmapool_test.c [new file with mode: 0644]