pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedcould not create shared memory segment: Invalid argument
5+ messages / 5 participants
[nested] [flat]
* could not create shared memory segment: Invalid argument
@ 2004-03-16 12:31 beyaNet Consultancy <beyanet@ntlworld.com>
2004-03-16 12:45 ` Re: could not create shared memory segment: Invalid argument Achilleus Mantzios <achill@matrix.gatewaynet.com>
2004-03-16 13:02 ` Re: could not create shared memory segment: Invalid argument Dana Hudes <dhudes@tcp-ip.info>
2004-03-23 18:30 ` Re: could not create shared memory segment: Invalid argument xvx <xvx.13l39y@mail.webservertalk.com>
0 siblings, 3 replies; 5+ messages in thread
From: beyaNet Consultancy @ 2004-03-16 12:31 UTC (permalink / raw)
To: pgsql-sql
Hi,
I have just installed the latest version of OS X panther (10.3.3) and
am now getting the following error message:
postgres$ /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data
FATAL: could not create shared memory segment: Invalid argument
DETAIL: Failed system call was shmget(key=5432001, size=10444800,
03600).
HINT: This error usually means that PostgreSQL's request for a shared
memory segment exceeded your kernel's SHMMAX parameter. You can either
reduce the request size or reconfigure the kernel with larger SHMMAX.
To reduce the request size (currently 10444800 bytes), reduce
PostgreSQL's shared_buffers parameter (currently 1000) and/or its
max_connections parameter (currently 100).
If the request size is already small, it's possible that it is
less than your kernel's SHMMIN parameter, in which case raising the
request size or reconfiguring SHMMIN is called for.
The PostgreSQL documentation contains more information about
shared memory configuration.
Any ideas on how i can resolve this issue?
many thanks in advance
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: could not create shared memory segment: Invalid argument
2004-03-16 12:31 could not create shared memory segment: Invalid argument beyaNet Consultancy <beyanet@ntlworld.com>
@ 2004-03-16 12:45 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>
2004-03-16 14:31 ` Re: [SQL] could not create shared memory segment: Invalid argument Theodore Petrosky <tedpet5@yahoo.com>
2 siblings, 1 reply; 5+ messages in thread
From: Achilleus Mantzios @ 2004-03-16 12:45 UTC (permalink / raw)
To: beyaNet Consultancy <beyanet@ntlworld.com>; +Cc: pgsql-sql
O kyrios beyaNet Consultancy egrapse stis Mar 16, 2004 :
> Hi,
> I have just installed the latest version of OS X panther (10.3.3) and
> am now getting the following error message:
For start do:
sysctl -a | grep -i shm
or equivalent to find out your current kernel settings.
in FreeBSD the way to change shmmax is
# sysctl sysctl kern.ipc.shmmax=<some size>
I dont know about OSX tho..
>
> postgres$ /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data
> FATAL: could not create shared memory segment: Invalid argument
> DETAIL: Failed system call was shmget(key=5432001, size=10444800,
> 03600).
> HINT: This error usually means that PostgreSQL's request for a shared
> memory segment exceeded your kernel's SHMMAX parameter. You can either
> reduce the request size or reconfigure the kernel with larger SHMMAX.
> To reduce the request size (currently 10444800 bytes), reduce
> PostgreSQL's shared_buffers parameter (currently 1000) and/or its
> max_connections parameter (currently 100).
> If the request size is already small, it's possible that it is
> less than your kernel's SHMMIN parameter, in which case raising the
> request size or reconfiguring SHMMIN is called for.
> The PostgreSQL documentation contains more information about
> shared memory configuration.
>
> Any ideas on how i can resolve this issue?
>
> many thanks in advance
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
-Achilleus
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: [SQL] could not create shared memory segment: Invalid argument
2004-03-16 12:31 could not create shared memory segment: Invalid argument beyaNet Consultancy <beyanet@ntlworld.com>
2004-03-16 12:45 ` Re: could not create shared memory segment: Invalid argument Achilleus Mantzios <achill@matrix.gatewaynet.com>
@ 2004-03-16 14:31 ` Theodore Petrosky <tedpet5@yahoo.com>
0 siblings, 0 replies; 5+ messages in thread
From: Theodore Petrosky @ 2004-03-16 14:31 UTC (permalink / raw)
To: pgsql -bugs <pgsql-bugs@postgresql.org>
You must edit the file /etc/rc ( sudo pico /ect/rc )
find the system tuning section and change as follows:
sysctl -w kern.sysv.shmmax=167772160
sysctl -w kern.sysv.shmmin=1
sysctl -w kern.sysv.shmmni=32
sysctl -w kern.sysv.shmseg=8
sysctl -w kern.sysv.shmall=65536
warning... this change will not survive a system
update that updates the /etc/rc file.
Ted
--- Achilleus Mantzios <achill@matrix.gatewaynet.com>
wrote:
> O kyrios beyaNet Consultancy egrapse stis Mar 16,
> 2004 :
>
> > Hi,
> > I have just installed the latest version of OS X
> panther (10.3.3) and
> > am now getting the following error message:
>
> For start do:
>
> sysctl -a | grep -i shm
> or equivalent to find out your current kernel
> settings.
>
> in FreeBSD the way to change shmmax is
>
> # sysctl sysctl kern.ipc.shmmax=<some size>
>
> I dont know about OSX tho..
>
> >
> > postgres$ /usr/local/pgsql/bin/postmaster -i -D
> /usr/local/pgsql/data
> > FATAL: could not create shared memory segment:
> Invalid argument
> > DETAIL: Failed system call was
> shmget(key=5432001, size=10444800,
> > 03600).
> > HINT: This error usually means that PostgreSQL's
> request for a shared
> > memory segment exceeded your kernel's SHMMAX
> parameter. You can either
> > reduce the request size or reconfigure the kernel
> with larger SHMMAX.
> > To reduce the request size (currently 10444800
> bytes), reduce
> > PostgreSQL's shared_buffers parameter (currently
> 1000) and/or its
> > max_connections parameter (currently 100).
> > If the request size is already small,
> it's possible that it is
> > less than your kernel's SHMMIN parameter, in which
> case raising the
> > request size or reconfiguring SHMMIN is called
> for.
> > The PostgreSQL documentation contains
> more information about
> > shared memory configuration.
> >
> > Any ideas on how i can resolve this issue?
> >
> > many thanks in advance
> >
> >
> > ---------------------------(end of
> broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
> >
>
> --
> -Achilleus
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: could not create shared memory segment: Invalid argument
2004-03-16 12:31 could not create shared memory segment: Invalid argument beyaNet Consultancy <beyanet@ntlworld.com>
@ 2004-03-16 13:02 ` Dana Hudes <dhudes@tcp-ip.info>
2 siblings, 0 replies; 5+ messages in thread
From: Dana Hudes @ 2004-03-16 13:02 UTC (permalink / raw)
To: beyaNet Consultancy <beyanet@ntlworld.com>; +Cc: pgsql-sql
Well, did you consider getting the value of SHMMAX?
Check with ulimit (as the postgres user).
On Tue, 16 Mar 2004, beyaNet Consultancy wrote:
> Hi,
> I have just installed the latest version of OS X panther (10.3.3) and
> am now getting the following error message:
>
> postgres$ /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data
> FATAL: could not create shared memory segment: Invalid argument
> DETAIL: Failed system call was shmget(key=5432001, size=10444800,
> 03600).
> HINT: This error usually means that PostgreSQL's request for a shared
> memory segment exceeded your kernel's SHMMAX parameter. You can either
> reduce the request size or reconfigure the kernel with larger SHMMAX.
> To reduce the request size (currently 10444800 bytes), reduce
> PostgreSQL's shared_buffers parameter (currently 1000) and/or its
> max_connections parameter (currently 100).
> If the request size is already small, it's possible that it is
> less than your kernel's SHMMIN parameter, in which case raising the
> request size or reconfiguring SHMMIN is called for.
> The PostgreSQL documentation contains more information about
> shared memory configuration.
>
> Any ideas on how i can resolve this issue?
>
> many thanks in advance
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: could not create shared memory segment: Invalid argument
2004-03-16 12:31 could not create shared memory segment: Invalid argument beyaNet Consultancy <beyanet@ntlworld.com>
@ 2004-03-23 18:30 ` xvx <xvx.13l39y@mail.webservertalk.com>
2 siblings, 0 replies; 5+ messages in thread
From: xvx @ 2004-03-23 18:30 UTC (permalink / raw)
To: pgsql-sql
I'am also getting this same problem with 10.3.3 Server. Worked fine
with 10.3.2.
kern.sysv.shmmax: 4194304
kern.sysv.shmmin: 1
kern.sysv.shmmni: 32
kern.sysv.shmseg: 8
kern.sysv.shmall: 1024
Those are the Values i get from the command posted. Have you figured
out a fix for this error?
Thanks.
beyaNet Consultancy wrote:
> *Hi,
> I have just installed the latest version of OS X panther (10.3.3)
> and
> am now getting the following error message:
>
> postgres$ /usr/local/pgsql/bin/postmaster -i -D
> /usr/local/pgsql/data
> FATAL: could not create shared memory segment: Invalid argument
> DETAIL: Failed system call was shmget(key=5432001, size=10444800,
> 03600).
> HINT: This error usually means that PostgreSQL's request for a
> shared
> memory segment exceeded your kernel's SHMMAX parameter. You can
> either
> reduce the request size or reconfigure the kernel with larger
> SHMMAX.
> To reduce the request size (currently 10444800 bytes), reduce
> PostgreSQL's shared_buffers parameter (currently 1000) and/or its
> max_connections parameter (currently 100).
> If the request size is already small, it's possible that it is
> less than your kernel's SHMMIN parameter, in which case raising the
> request size or reconfiguring SHMMIN is called for.
> The PostgreSQL documentation contains more information about
> shared memory configuration.
>
> Any ideas on how i can resolve this issue?
>
> many thanks in advance
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster *
--
xvx
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message151918.html
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2004-03-23 18:30 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-16 12:31 could not create shared memory segment: Invalid argument beyaNet Consultancy <beyanet@ntlworld.com>
2004-03-16 12:45 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>
2004-03-16 14:31 ` Theodore Petrosky <tedpet5@yahoo.com>
2004-03-16 13:02 ` Dana Hudes <dhudes@tcp-ip.info>
2004-03-23 18:30 ` xvx <xvx.13l39y@mail.webservertalk.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox