Skip to contentSkip to conversation

use global replacement for dm-bufio buffers

PATCH In review Mikulas Patocka 1 participant 1 message Sep 12, 2019 Device mapper

lore
Share & tools
lore

Mikulas Patocka

author maintainer
#0 lore raw

cover use global replacement for dm-bufio buffers

dm-bufio divides the size of cache by the number of clients and uses it as a per-client limit. However, this is suboptimal when there is large amount of clients.

This patch set introduces global buffer replacement. All the buffers from all the clients are put to a global queue and dm-bufio cleans up old buffers in the queue.

This improves cache utilization - if one dm-bufio client uses the cache heavily and another dm-bufio client is not using the cache, dm-bufio will prefer caching buffers from the first client (instead of partitioning the cache equally between the first and second client).