Hi all, I'm trying to install a PostgreSQL db on FreeBSD 7.1-RELEASE amd64. It's seems I can't allocate a shared memory segment more than 2GB. I tune sysctl ipc.shm* values but without effects. IPC Sys5 isn't "64bit-aware" or the problem is elsewhere? Regards, -- Nicolas Haller
On Monday 02 March 2009 23:07:30 nicolas@boiteameuh.org wrote:> Hi all, > > I'm trying to install a PostgreSQL db on FreeBSD 7.1-RELEASE amd64. > It's seems I can't allocate a shared memory segment more than 2GB. > I tune sysctl ipc.shm* values but without effects. > > IPC Sys5 isn't "64bit-aware" or the problem is elsewhere?It looks like shm_segsz in struct shmid_ds is of type int, so that will limit your segment. Also there are the kernel config options SHMMAX and SHMMAXPGS. -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News
nicolas@boiteameuh.org wrote:> Hi all, > > I'm trying to install a PostgreSQL db on FreeBSD 7.1-RELEASE amd64. > It's seems I can't allocate a shared memory segment more than 2GB. > I tune sysctl ipc.shm* values but without effects. > > IPC Sys5 isn't "64bit-aware" or the problem is elsewhere?Yes, SYSVSHM is limited to 2 GB in 7.1. It has recently been extended in -CURRENT, it will probably be MFC-ed to 7-STABLE (7.2) soon. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090303/90008447/signature.pgp
On 2009-Mar-02 23:07:30 +0100, nicolas@boiteameuh.org wrote:>It's seems I can't allocate a shared memory segment more than 2GB. >I tune sysctl ipc.shm* values but without effects. > >IPC Sys5 isn't "64bit-aware" or the problem is elsewhere?SysV shm doesn't make it clear whether segments can exceed 2GB even on commercial 64-bit OSs (they can on Solaris but can't on Tru64). The work-around Oracle uses on Tru64 is to allocate multiple 2GB segments. -- Peter Jeremy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090305/d3d93303/attachment.pgp