From owner-freebsd-questions@FreeBSD.ORG Wed Dec 5 13:32:35 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B03D16A421 for ; Wed, 5 Dec 2007 13:32:35 +0000 (UTC) (envelope-from gergely.czuczy@harmless.hu) Received: from marvin.harmless.hu (marvin.harmless.hu [195.56.55.204]) by mx1.freebsd.org (Postfix) with ESMTP id BA63313C457 for ; Wed, 5 Dec 2007 13:32:34 +0000 (UTC) (envelope-from gergely.czuczy@harmless.hu) Received: from localhost (marvin-mail [192.168.0.2]) by marvin.harmless.hu (Postfix) with ESMTP id 2E87E7C1996; Wed, 5 Dec 2007 14:32:33 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.4.2 (20060627) (Debian) at harmless.hu Received: from marvin.harmless.hu ([192.168.0.2]) by localhost (marvin.harmless.hu [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id 9vOueaT29Z7M; Wed, 5 Dec 2007 14:32:32 +0100 (CET) Received: from marvin.harmless.hu (localhost [127.0.0.1]) by marvin.harmless.hu (Postfix) with ESMTP id 2AEB37C1991; Wed, 5 Dec 2007 14:32:31 +0100 (CET) Date: Wed, 5 Dec 2007 14:32:31 +0100 From: Gergely CZUCZY To: Benjamin Sobotta Message-ID: <20071205133231.GA45423@harmless.hu> References: <20071205114619.GA32423@harmless.hu> <20071205132705.143060@gmx.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=x-unknown; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <20071205132705.143060@gmx.net> User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: freebsd-questions@freebsd.org Subject: Re: more then 2G shm on RELENG_7 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2007 13:32:35 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 05, 2007 at 02:27:05PM +0100, Benjamin Sobotta wrote: > > Hello, > >=20 > > I'm to test PostgreSQL on a 7-BETA3. The box has 12GB of memory in it, > > I've adjusted the sysctls, but postgresql always fails to allocate the > > SHM if it's bigger then 2GB. > >=20 > > How can I make it to allocate more SHM than 2G at once? > >=20 > > sysctl.conf: > > kern.ipc.shmall=3D1572864 > > kern.ipc.shmmax=3D6442450944 > > kern.ipc.semmap=3D1024 > > kern.ipc.shm_use_phys=3D1 > >=20 > > /boot/loader.conf: > > zfs_load=3D"YES" > > vm.kmem_size=3D"1073741824" > > vm.kmem_size_max=3D"1073741824" > > kern.ipc.semmni=3D1024 > > kern.ipc.semmns=3D2048 > > kern.ipc.semmnu=3D1024 > >=20 > > I've also hit a similar issue with qemu, but that wasn't shared memory, > > I had just tried to make it allocate more than 2GBs for a single vm, but > > that also failed. Still haven't figured out why was that. > >=20 > > Sincerely, > >=20 > > Gergely Czuczy > > mailto: gergely.czuczy@harmless.hu > >=20 > > --=20 > > Weenies test. Geniuses solve problems that arise. >=20 > Hi! >=20 > I'm not sure if this is helpful, as I dont run FBSD 7 as of yet. Further = I'm not very familiar with the topic. But I had a similiar problem with MyS= QL on 6.2. What helped for me was play with=20 >=20 > kern.maxdsiz > kern.dfldsiz > kern.maxssiz >=20 > in loader.conf.=20 Thanks. These sysctls seems no to be available on an amd64, but I've seen similar ones under the ia32 layer: compat.ia32.maxdsiz: compat.ia32.maxssiz: So, this wasn't the one... Sincerely, Gergely Czuczy mailto: gergely.czuczy@harmless.hu --=20 Weenies test. Geniuses solve problems that arise. --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) owGVVb9v5FQQDndCSCtRRKKG4YSU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