From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 24 08:26:50 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D04CE106566B for ; Tue, 24 Feb 2009 08:26:50 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id A536A8FC0A for ; Tue, 24 Feb 2009 08:26:50 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id n1O8Qmo07705; Tue, 24 Feb 2009 00:26:48 -0800 (PST) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id n1O8QmM24399; Tue, 24 Feb 2009 00:26:48 -0800 (PST) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Tue, 24 Feb 2009 00:26:48 -0800 (PST) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Garrett Cooper In-Reply-To: <7d6fde3d0902240009q77e3be85n54c17f7404bc446b@mail.gmail.com> Message-ID: References: <1235404207.31655.2085.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> <20090223190828.GA34866@jnz.sqrt.ca> <78AACD88-3F94-4B39-9122-9C4199DFFDBA@gmail.com> <20090223201217.GA35374@jnz.sqrt.ca> <20090223151611.af79586c.wmoran@potentialtech.com> <7d6fde3d0902240009q77e3be85n54c17f7404bc446b@mail.gmail.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-326116574-1235464008=:29511" Cc: Kirk Strauser , freebsd-hackers@freebsd.org, "Brian A. Seklecki" , Bill Moran , Christian Peron Subject: Re: shmmax tops out at 2G? 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, 24 Feb 2009 08:26:51 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-326116574-1235464008=:29511 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 24 Feb 2009, Garrett Cooper wrote: > On Mon, Feb 23, 2009 at 12:16 PM, Bill Moran w= rote: >> In response to Christian Peron : >> >>> On Mon, Feb 23, 2009 at 11:58:09AM -0800, Garrett Cooper wrote: >>> [..] >>>> >>>> =A0 =A0 Why isn't the field an unsigned int / size_t? I don't see much= value >>>> in having the size be signed... >>> >>> No idea :) This code long predates me. >> >> It's that way because the original Sun spec for the API said so. >> >> It makes little sense to change it just to unsigned. =A0The additional 2= G >> it would give doesn't really solve the tuning problem on a 64G system. >> This is simply a spec that has become outdated by modern hardware. > > Ah, but an unsigned integer on a 64-bit system supports that kind of > precision ;). Or are you saying you're crazy enough to run PAE mode > with that much RAM 0-o? int and unsigned on amd64 are 32-bit types. To get a 64-bit integer, you= =20 need (unsigned) long. --=20 Nate Eldredge neldredge@math.ucsd.edu ---559023410-326116574-1235464008=:29511--