From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 7 17:26:26 2006 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5066A16A402 for ; Fri, 7 Apr 2006 17:26:26 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4DA143D46 for ; Fri, 7 Apr 2006 17:26:25 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (r380rr9rjwth57ci@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.4/8.13.3) with ESMTP id k37HQJ6B087903; Fri, 7 Apr 2006 10:26:20 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.4/8.13.3/Submit) id k37HQI4K087902; Fri, 7 Apr 2006 10:26:18 -0700 (PDT) (envelope-from jmg) Date: Fri, 7 Apr 2006 10:26:18 -0700 From: John-Mark Gurney To: Astrodog Message-ID: <20060407172618.GC72485@funkthat.com> Mail-Followup-To: Astrodog , Robert Leftwich , patrick , freebsd-amd64@freebsd.org References: <20060407075301.I21526@gandalf.cyberwizards.nl> <443613D0.80801@rtl.fmailbox.com> <20060407101400.R28178@gandalf.cyberwizards.nl> <4436253F.9080000@rtl.fmailbox.com> <2fd864e0604070628m64ecf142gb7dc314721510835@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2fd864e0604070628m64ecf142gb7dc314721510835@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: patrick , freebsd-amd64@freebsd.org Subject: Re: extreme mem usage under amd64 arch ? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 17:26:26 -0000 Astrodog wrote this message on Fri, Apr 07, 2006 at 21:28 +0800: > and pointer, you use 4 Bytes. On a 64-bit processor, all ints, and > pointers take up 64-bits of memory. So, for every int and pointer, you > use 8 bytes. (Assuming its a 64-bit app, of course) That means Not quite... FreeBSD/amd64 like all? the other arches are LP64... that means longs and pointers are 64bits, while ints remain at 32bits... This was primarily done because too many people assumed ints were 32bits for things like disk structures and network protocol layout, and to break less code, LP64 was decided upon... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."