Hi there,

Since the last kernel upgrade (yesterday, IIRC) I can no longer start
postgres up. I get the following error, and /proc/sys/kernel/shmmax is
indeed smaller than what postgres is requesting. After changing that
manually I was able to start postgres again.

Has anybody seen that?  Should we report it as a bug against Ubuntu or
should we just lower the config variables that influence the size that
postgres passes on to shmget()?

salg...@feioso [expose-blueprints]$ sudo service postgresql start
 * Starting PostgreSQL 8.4 database server                                      
 * The PostgreSQL server failed to start. Please check the log output:
[2010-11-29 12:43:46 BRST] FATAL:  could not create shared memory segment: 
Invalid argument
[2010-11-29 12:43:46 BRST] DETAIL:  Failed system call was shmget(key=5432001, 
size=37879808, 03600).
[2010-11-29 12:43:46 BRST] 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 37879808 bytes), reduce 
PostgreSQL's shared_buffers parameter (currently 4096) and/or its 
max_connections parameter (currently 103).
        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.
                                                                         [fail]

-- 
Guilherme Salgado <https://launchpad.net/~salgado>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to