From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 26 03:06:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7C7F16A4B3 for ; Sun, 26 Oct 2003 03:06:55 -0800 (PST) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80FE443FA3 for ; Sun, 26 Oct 2003 03:06:54 -0800 (PST) (envelope-from des@des.no) Received: from smtp.des.no (37.80-203-228.nextgentel.com [80.203.228.37]) by mail.broadpark.no (Postfix) with ESMTP id 7E68C799EE; Sun, 26 Oct 2003 12:06:53 +0100 (MET) Received: by smtp.des.no (Pony Express, from userid 666) id 484CD9C04E; Sun, 26 Oct 2003 12:06:53 +0100 (CET) Received: from dwp.des.no (dwp.des.no [10.0.0.4]) by smtp.des.no (Pony Express) with ESMTP id 71C349C049; Sun, 26 Oct 2003 12:06:49 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 6114CB823; Sun, 26 Oct 2003 12:06:49 +0100 (CET) To: Mike Silbersack References: <1066789354.21430.39.camel@boxster.onthenet.com.au> <20031022082953.GA69506@rot13.obsecurity.org> <1066816287.25609.34.camel@boxster.onthenet.com.au> <20031022095754.GA70026@rot13.obsecurity.org> <1066820436.25609.93.camel@boxster.onthenet.com.au> <20031026052854.GA20701@VARK.homeunix.com> <20031026005938.L2023@odysseus.silby.com> <20031026065621.GA21546@VARK.homeunix.com> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Sun, 26 Oct 2003 12:06:49 +0100 In-Reply-To: <20031026065621.GA21546@VARK.homeunix.com> (David Schultz's message of "Sat, 25 Oct 2003 23:56:21 -0700") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on dsa.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60 cc: freebsd-hackers@FreeBSD.ORG cc: Q cc: Kris Kennaway Subject: Re: Some mmap observations compared to Linux 2.6/OpenBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2003 11:06:55 -0000 David Schultz writes: > I'm not particularly ``familiar'' with postgres, but I did some > performance tests on it a little while ago. Grepping through one > of the traces just now, I found that database system made 139 > calls to mmap(), and the maximum number of regions mapped at any > given time was 39.[1] PostgreSQL doesn't mmap its data. The mmap() calls you saw were from malloc(). The only place PostgreSQL calls mmap() directly is for IPC in the QNX port (because QNX apparently doesn't have SysV IPC). DES --=20 Dag-Erling Sm=F8rgrav - des@des.no