From: Mikulas Patocka Subject: [PATCH 0/5] use global replacement for dm-bufio buffers Date: Thu, 12 Sep 2019 10:44:43 +0200 Message-ID: <20190912084443.142319800@debian-a64.vm> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Martijn Coenen , Mike Snitzer , Alasdair G Kergon Cc: maco@google.com, dm-devel@redhat.com, jiyong@google.com, kernel-team@android.com, dariofreni@google.com List-Id: dm-devel.ids 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).