Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2007 14:32:31 +0100
From:      Gergely CZUCZY <phoemix@harmless.hu>
To:        Benjamin Sobotta <mayday@gmx.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: more then 2G shm on RELENG_7
Message-ID:  <20071205133231.GA45423@harmless.hu>
In-Reply-To: <20071205132705.143060@gmx.net>
References:  <20071205114619.GA32423@harmless.hu> <20071205132705.143060@gmx.net>

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

--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)

owGVVb9v5FQQDndCSCtRRKKG4YSUImvH6/Vmc4v2jttLLolE4NBGRIBQ9NYer9/F
fs/xe96N09GgKygQNEgghQ6aExSU0CDRIf4A/gKkayjoYd7zbm73csUhubDn5zcz
34w/f/n6yrXVP3786aP1z774+oVHL70yWs9KrcXYyVgx4cJpeV7LCTqB33baTmsU
t7aidjfwwqAT4c3d978Xd6XQKLRzWOXYA41neiNPGRdvQpiwQqHulzp2thpzu22u
cqm45lL0gIuUC7zUHRZMqBgLZ0eEMuJi3IPTUmqMnLzgQrNRio3GuwKOMGrCNobg
dZrge14XmAbP7/ndnte5fwDrHsFuwgDFA5ZxAUM5klozmBYUrNe4BbdgD9NUNs1r
3/esZH8tAy2pAqXhvlR6XODwvbdBCmDQdQY7h3faLhwmCCN5BglT0PJ3ByBjyDCT
RUW1ANfNWagJAoselIqwgyYfValQp6oJo1JDXkdXpymwdMoqBTHjqTLZGaEKmUbj
ZEMN9w6AxxR5TcGIj8dYGJUAyu0uot+TUwiZgH3I2AmS/VI0Aog2lE6Y8TX9kiLE
24shaoxuKEVc9+gEC+HyPHRVklGofnu71en6W5vBFW3Gzki7GQR+0PFuBk8bIBnk
xt3zr/oelwqP86RSxmARz8ZISr2RShZhsYDqPFbHRkjmNz7YGd6wwknmntAcjhU/
R6NoeV2iaWvLD67qj2u0V2yW8Ar+bLxGZZD6XrD1DFW54PWEWIYNqZKQ0FgYKJ7x
lBXAlSoRplwncIpZWXODBqRhypRY06BogYg/Nb9mzCLmRWCIBbrghlzycuDL055N
ekDkkoXNKsYpUiNsHhvM5rLADP8wcmGoeZpSigma/DEflwaAJFzTpDKwrM8S8Yac
eFRgWi0t0y4WY5LB3fMyPK+sKKMcWvZgXKvc0KreohqzFJVyk3IxgOPM344QBUdl
F9OlwIITYRQomVJb80LSUcjUrJaCKyR0tesef33+anZbSOoo1WPWSSdcUf8hwTSP
y7QJVNk+RHSGoCgF3BsMt6FrhLTeFVLae2VBa1dAvzEPNUHa+ZjOS8pplnaKZtG1
zHnowoBaVs9qNm9jNANbGx9Uw36jvi+bru/CkSnA4KGGm4llaPtNt7SyDraQuhpL
OSJxRGyef0ZxuvhJWmU/aw+6TQt75BrhIfHjRNmLpi7vEyg0zRTS8GpErJ3Q0MzZ
tWeQnizaDGoCWVaTubjksxQ0llJE9YkCzto+EHoseo1QZjnxxojmwK8IlRU2hrJZ
j2e2BCYURXZdl3RPuNZ4imHPwa5Gzan/z6eHt6+/uGL+dfMf5eo175OVby8+/eq1
L//dEavfiDd+/aXz553H73RXLj7+OXj04d/fPfz9n/7jV3/bu/jh4K+d/wA=
=qD+t
-----END PGP SIGNATURE-----

--J2SCkAp4GZ/dPZZf--



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