From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754095AbZEDBBd (ORCPT ); Sun, 3 May 2009 21:01:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751813AbZEDBBY (ORCPT ); Sun, 3 May 2009 21:01:24 -0400 Received: from an-out-0708.google.com ([209.85.132.248]:48601 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751706AbZEDBBX (ORCPT ); Sun, 3 May 2009 21:01:23 -0400 MIME-Version: 1.0 In-Reply-To: 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> Date: Sun, 3 May 2009 21:01:21 -0400 Message-ID: Subject: Re: [PATCH 02/16] DRBD: lru_cache From: Kyle Moffett To: Lars Ellenberg Cc: 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, Kyle Moffett