From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758363AbZEDQMx (ORCPT ); Mon, 4 May 2009 12:12:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755245AbZEDQMo (ORCPT ); Mon, 4 May 2009 12:12:44 -0400 Received: from mx2.redhat.com ([66.187.237.31]:51482 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753628AbZEDQMn (ORCPT ); Mon, 4 May 2009 12:12:43 -0400 Message-ID: <49FF13D7.8070606@redhat.com> Date: Mon, 04 May 2009 12:12:07 -0400 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Thunderbird 2.0.0.17 (X11/20080915) MIME-Version: 1.0 To: Kyle Moffett CC: Lars Ellenberg , Philipp Reisner , linux-kernel@vger.kernel.org, Jens Axboe , Greg KH , Neil Brown , James Bottomley , Sam Ravnborg , Dave Jones , Nikanth Karthikesan , Lars Marowsky-Bree , "Nicholas A. Bellinger" , Bart Van Assche Subject: Re: [PATCH 02/16] DRBD: lru_cache References: <1241090812-13516-1-git-send-email-philipp.reisner@linbit.com> <1241090812-13516-2-git-send-email-philipp.reisner@linbit.com> <1241090812-13516-3-git-send-email-philipp.reisner@linbit.com> <20090503062720.GA31340@racke> <20090503224809.GB6243@racke> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kyle Moffett wrote: > On Sun, May 3, 2009 at 8:48 PM, Kyle Moffett wrote: >> There are a couple trivial tunables you can apply to the model I >> provided to dramatically change the effect of memory pressure on the >> LRU: >> >> [...] >> > > Ooh, I forgot to mention another biggie: There's a way to allocate a > reserve pool of memory (I don't remember the exact API, sorry), which > can be attached to a specific kmem_cache to be used by processes > attempting writeout. This would allow you to allocate more in-use > elements to make forward progress, even if all of your existing > elements are already in-use. Lars, is using a mempool for allocation, in combination with a shrinker callback for freeing older entries an option for DRBD? It looks like that could get rid of a fair amount of custom infrastructure. -- All rights reversed.