Skip to content

use global replacement for dm-bufio buffers

Mikulas Patocka dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dm-bufio: call adjust_total_allocated from __link_buffer and __unlink_bufferdrivers/md/dm-bufio.c+4 -40 replies
2/5dm-bufio: refactor adjust_total_allocateddrivers/md/dm-bufio.c+11 -30 replies
3/5dm-bufio: introduce a global queuedrivers/md/dm-bufio.c+12 -30 replies
4/5dm-bufio: remove old-style buffer cleanupdrivers/md/dm-bufio.c+3 -580 replies
5/5dm-bufio: introduce a global cache replacementdrivers/md/dm-bufio.c+96 -74 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] 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).