From owner-freebsd-stable@FreeBSD.ORG Tue Dec 20 16:12:07 2011 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1653106564A; Tue, 20 Dec 2011 16:12:07 +0000 (UTC) (envelope-from ganael.laplanche@martymac.org) Received: from data.galacsys.net (webmail.galacsys.net [217.24.81.215]) by mx1.freebsd.org (Postfix) with ESMTP id 811DB8FC16; Tue, 20 Dec 2011 16:12:07 +0000 (UTC) Received: from martymac.org (webmail.galacsys.net [217.24.81.215]) by data.galacsys.net (Postfix) with ESMTP id 4C5CF17134F; Tue, 20 Dec 2011 17:12:06 +0100 (CET) From: "Ganael LAPLANCHE" To: Andriy Gapon X-Openwebmail-Date: Tue, 20 Dec 2011 18:12:06 +0200 Message-Id: <20111220160753.M1352@martymac.org> In-Reply-To: <4EF0A3A7.80309@FreeBSD.org> References: <20111220080437.M63044@martymac.org> <4EF05F27.8030902@FreeBSD.org> <20111220134716.M62917@martymac.org> <20111220142740.M29405@martymac.org> <4EF0A3A7.80309@FreeBSD.org> X-Mailer: Open WebMail 2.01 20030425 X-OriginatingIP: 157.99.64.43 (ganael.laplanche@martymac.org) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Date: Tue, 20 Dec 2011 17:12:06 +0100 (CET) Cc: Tijl Coosemans , freebsd-stable@FreeBSD.org Subject: Re: Using mmap(2) with a hint address X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2011 16:12:07 -0000 On Tue, 20 Dec 2011 17:03:03 +0200, Andriy Gapon wrote > Just a guess - this might be some sort of optimization to keep > virtual address range of dynamic allocations untouched by > unrelated mmap calls. Not sure if that's so and how useful > could that be. svn log / svn annotate of the file may reveal > more details. Mmmhh.... It seems that this part of the code is quite old and was already present in the BSD 4.4 Lite kernel (not exactly in the same shape, but with the same idea). Quite confusing... -- Ganael LAPLANCHE http://www.martymac.org | http://contribs.martymac.org FreeBSD: martymac , http://www.FreeBSD.org