]> 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>
Fri, 10 Feb 2023 23:36:03 +0000 (15:36 -0800)
commit48522b153dc2c50363f931a7a5e897d977036eb8
treed09bfe05d78f07c06d1a42672a8acd990f9a5d4d
parent52bf82231031f3300cffb1b8c8bfb86b25deb869
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]