Files
linux/drivers
Mikulas Patocka a38425935f dm-transaction-manager: use red-black trees instead of linear lists
There was reported performance degradation when the shadow map contained
too many entries [1]. The shadow map uses 256-bucket hash with linear
lists - when there are too many entries, it has quadratic complexity.

Meir Elisha proposed to add a module parameter that could configure the
size of the hash array - however, this is not ideal because users don't
know that they should increase the parameter when they get bad
performance.

This commit replaces the linear lists with rb-trees (so that there's a
hash of rb-trees), they have logarithmic complexity, so it solves the
performance degradation.

Link: https://patchwork.kernel.org/project/dm-devel/patch/20241014134944.1264991-1-meir.elisha@volumez.com/ [1]
Reported-by: Meir Elisha <meir.elisha@volumez.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
2025-01-17 22:05:40 +01:00
..
2025-01-13 07:46:20 -07:00
2024-12-23 08:17:23 -07:00
2024-11-05 05:33:46 +01:00
2024-11-09 09:14:12 -08:00
2024-12-23 08:17:23 -07:00
2024-12-23 08:17:23 -07:00
2024-12-23 08:17:23 -07:00
2024-11-15 00:32:29 +11:00
2024-12-23 08:17:23 -07:00
2025-01-04 15:27:35 -07:00
2024-11-12 15:48:08 +01:00
2025-01-06 07:37:41 -07:00