Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030192AbVKCN4Z (ORCPT ); Thu, 3 Nov 2005 08:56:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030199AbVKCN4Z (ORCPT ); Thu, 3 Nov 2005 08:56:25 -0500 Received: from taurus.voltaire.com ([193.47.165.240]:1086 "EHLO taurus.voltaire.com") by vger.kernel.org with ESMTP id S1030192AbVKCN4Z (ORCPT ); Thu, 3 Nov 2005 08:56:25 -0500 Date: Thu, 3 Nov 2005 15:55:42 +0200 From: Gleb Natapov To: Hugh Dickins Cc: Benjamin Herrenschmidt , Petr Vandrovec , Nick Piggin , Linux Kernel Mailing List Subject: Re: Nick's core remove PageReserved broke vmware... Message-ID: <20051103135542.GD22185@minantech.com> References: <4368097A.1080601@yahoo.com.au> <4368139A.30701@vc.cvut.cz> <1130965454.20136.50.camel@gaston> <1130967936.20136.65.camel@gaston> <1130970131.20136.73.camel@gaston> <20051103080341.GB22185@minantech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OriginalArrivalTime: 03 Nov 2005 13:56:23.0621 (UTC) FILETIME=[604EDF50:01C5E07E] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1030 Lines: 23 On Thu, Nov 03, 2005 at 01:32:15PM +0000, Hugh Dickins wrote: > On Thu, 3 Nov 2005, Gleb Natapov wrote: > > On Thu, Nov 03, 2005 at 09:22:10AM +1100, Benjamin Herrenschmidt wrote: > > > Also, what do you suggest as a good threshold to use on the max amount > > > of memory I can let the X server "pin" that way ? I was thinking it as > > > equivalent to mlock, thus I could maybe hijack mm->locked_vm & use > > > RLIMIT_MEMLOCK or is that too gross ? > > > > > This is what infiniband does, so it should be good for you too. > > Yes, I noticed that code a couple of days ago, I think you're setting a > good example there, for long-term or large-area uses of get_user_pages(): > Ben, take a look at drivers/infiniband/core/uverbs_mem.c > Credit goes to Roland Dreier :) -- Gleb. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/