[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220428202714.17630-1-kbusch@kernel.org>
Date: Thu, 28 Apr 2022 14:27:12 -0600
From: kbusch@...nel.org
To: linux-kernel@...r.kernel.org, linux-mm@...ck.org
Cc: willy@...radead.org, kernel-team@...com,
Keith Busch <kbusch@...nel.org>
Subject: [PATCH 0/2] dmapool performance enhancements
From: Keith Busch <kbusch@...nel.org>
Allocating and freeing blocks from the dmapool iterates a list of all
allocated pages. We can save time removing the per-alloc/free list
traversal for a constant time lookup, so this series does that.
Compared to current kernel, perf record from running io_uring benchmarks
on nvme reports dma_pool_alloc() cost reduction cut in half from 0.81% to
0.41%.
Keith Busch (2):
mm/dmapool: replace linked list with xarray
mm/dmapool: link blocks across pages
mm/dmapool.c | 107 +++++++++++++++++++++++++++------------------------
1 file changed, 56 insertions(+), 51 deletions(-)
--
2.30.2
Powered by blists - more mailing lists