Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 3 Sep 2002 22:34:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 3 Sep 2002 22:34:17 -0400 Received: from 2-210.ctame701-1.telepar.net.br ([200.193.160.210]:50876 "EHLO 2-210.ctame701-1.telepar.net.br") by vger.kernel.org with ESMTP id ; Tue, 3 Sep 2002 22:34:16 -0400 Date: Tue, 3 Sep 2002 23:38:26 -0300 (BRT) From: Rik van Riel X-X-Sender: riel@imladris.surriel.com To: Robert Love cc: imran.badr@cavium.com, Subject: Re: __get_free_pages In-Reply-To: <1031106469.24330.3276.camel@phantasy> Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 826 Lines: 27 On 3 Sep 2002, Robert Love wrote: > On Tue, 2002-09-03 at 22:19, Imran Badr wrote: > > > Does __get_free_pages(..) return physically contiguous pages? > > Yes. But only if they're available. Linux doesn't currently have any mechanisms for smart defragmentation of physical memory and even if we had them they couldn't be fully reliable. So be careful what you ask for, if you ask for too large a chunk of memory you might end up not getting any at all. regards, Rik -- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/ - 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/