From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Thornber Subject: Re: dm-bufio cache patches Date: Thu, 9 Oct 2014 14:07:36 +0100 Message-ID: <20141009130736.GA21297@debian> References: Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mikulas Patocka Cc: Mike Snitzer , dm-devel@redhat.com, "Alasdair G. Kergon" List-Id: dm-devel.ids On Wed, Oct 08, 2014 at 04:17:59PM -0400, Mikulas Patocka wrote: > > I created dm-bufio patchset that keep some amount of cache indefinitely, > > regardless of the timeout (the default is to keep 1/500 of total memory > > indefinitely). I'm running something similar here. I just put in a hard coded default rather than basing it on the amount of memory present. I'm not sure which I prefer. I've also switched over to using a rbtree instead of that huge hash table which consumes 8m. I'll post clean patches in a bit. - Joe