From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 13 15:48:53 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D664B16A401 for ; Tue, 13 Mar 2007 15:48:53 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 8ABAF13C469 for ; Tue, 13 Mar 2007 15:48:53 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 84381207E; Tue, 13 Mar 2007 16:48:45 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 766012049; Tue, 13 Mar 2007 16:48:45 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 1001) id F35E7B88E; Tue, 13 Mar 2007 16:48:44 +0100 (CET) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Anton Yuzhaninov References: <782951585.20070312131034@citrin.ru> Date: Tue, 13 Mar 2007 16:48:44 +0100 In-Reply-To: <782951585.20070312131034@citrin.ru> (Anton Yuzhaninov's message of "Mon, 12 Mar 2007 13:10:34 +0300") Message-ID: <86odmx5elf.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Why max mmap size limited to half of virtual address space? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 15:48:53 -0000 Anton Yuzhaninov writes: > Why max mmap size limited to half virtual address space? Because you also need address space for the kernel, your program, the libraries it uses and the data it works on (including the stack). > May be this check can be removed? It test it on FreeBSD 6.2 i386 - > without this check a can map 2400 Mb file. There's very little to gain from doing so. If you need more address space than 2 GB, switch to a 64-bit platform. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no