OSDN Git Service

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>
Thu, 6 Apr 2023 02:42:38 +0000 (19:42 -0700)
commitdef8574308edbc3bca821fb965e429a2fe5f4971
tree415822a2abc80d0897b69c0c3e9b03a4981fa3a6
parent3c556d2425b04054e22045d4ef7d34f163b7a71a
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]