]> git.baikalelectronics.ru Git - kernel.git/commit
dma-debug: increase HASH_SIZE
authorEric Dumazet <edumazet@google.com>
Wed, 30 Oct 2019 18:48:44 +0000 (11:48 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 09:52:18 +0000 (10:52 +0100)
commit792d8a936a0c1235fb7000130d9e2b51e1edeb41
tree95c35b5219632553bb218904da8bce60fe222626
parent92f3a5e4d349ed53fa53d315098d53e2cefa7807
dma-debug: increase HASH_SIZE

With modern NIC, it is not unusual having about ~256,000 active dma
mappings and a hash size of 1024 buckets is too small.

Forcing full cache line per bucket does not seem useful, especially now
that we have contention on free_entries_lock for allocations and freeing
of entries.  Better use the space to fit more buckets.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/debug.c