Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2006 03:45:06 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        "Michael K. Smith - Adhost" <mksmith@adhost.com>
Cc:        questions@freebsd.org, Bill Moran <wmoran@collaborativefusion.com>
Subject:   Re: shmmax tops out at 2G?
Message-ID:  <20061213084506.GA29889@xor.obsecurity.org>
In-Reply-To: <17838240D9A5544AAA5FF95F8D5203160167353D@ad-exh01.adhost.lan>
References:  <20061211171506.97949c7e.wmoran@collaborativefusion.com> <17838240D9A5544AAA5FF95F8D5203160167353D@ad-exh01.adhost.lan>

next in thread | previous in thread | raw e-mail | index | archive | help

--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 13, 2006 at 12:27:22AM -0800, Michael K. Smith - Adhost wrote:
> Hello Bill:
>=20
> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org
> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Bill Moran
> Sent: Monday, December 11, 2006 2:15 PM
> To: questions@freebsd.org
> Subject: shmmax tops out at 2G?
>=20
>=20
> uname -a
> FreeBSD db00.lab00 6.2-BETA3 FreeBSD 6.2-BETA3 #1: Fri Dec  8 09:27:37
> EST 2006     root@db00.lab00:/usr/obj/usr/src/sys/DB-2850-amd64  amd64
>=20
> sysctl kern.ipc.shmmax=3D2200000000
> kern.ipc.shmmax: 2100000000 -> -2094967296
>=20
> Looks like an unsigned 32-bit int.  That doesn't seem to scale as well
> as
> would be expected on 64-bit arch.
>=20
> Is this a mistake, or intentional?  I'm working with some big memory
> systems, and I sure would like to allocate more than 2G for PostgreSQL
> to use ...
>=20
> --=20
> Bill Moran
> Collaborative Fusion Inc.
>=20
> ---
>=20
> This may be a silly question but, have you compiled a PAE-enabled
> kernel?  If not, check out /sys/i386/conf/PAE.

Yeah, it is ;-)  PAE is a hack for legacy i386 systems which cannot run
in full 64-bit (amd64) mode - it's not relevant to this problem.

Bill's guess is probably right, so someone needs to go over the sysv
ipc code and make it 64-bit capable.

Kris

--RnlQjJ0d97Da+TV1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFf72SWry0BWjoQKURAlXpAJ0TxYAb3emCrIPflewTtWf5/yZVRACffuU3
oRm63lNk6b/+yBmiQQI//UM=
=t9zA
-----END PGP SIGNATURE-----

--RnlQjJ0d97Da+TV1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061213084506.GA29889>