tag:blogger.com,1999:blog-909871506456690785.post3510806635580557905..comments2011-06-13T13:59:25.113-07:00Comments on Programming Linux Games: Postgres unable to start with shmget. SHMMAX too smallWHhttp://www.blogger.com/profile/16562556011003748345noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-909871506456690785.post-53564170468225203152011-06-02T18:00:48.615-07:002011-06-02T18:00:48.615-07:00As I said in the post, I used 147382272, because t...As I said in the post, I used 147382272, because that is the size postgres attempted to "get", or reserve, and failed, as shown in the error message:<br /><br />debian-testing:~# /etc/init.d/postgresql-8.3 start<br />Starting PostgreSQL 8.3 database server: mainThe PostgreSQL server failed to start. Please check the log output: 2010-11-17 13:53:34 EST FATAL: could not create shared memory segment: Invalid argument 2010-11-17 13:53:34 EST DETAIL: Failed system call was shmget(key=5432001, size=147382272, 03600). 2010-11-17 13:53:34 EST 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 147382272 bytes), reduce PostgreSQL's shared_buffers parameter (currently 16384) and/or its max_connections parameter (currently 503). 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. failed!WHhttps://www.blogger.com/profile/16562556011003748345noreply@blogger.comtag:blogger.com,1999:blog-909871506456690785.post-31600609616111041562011-03-28T08:06:36.011-07:002011-03-28T08:06:36.011-07:00I would like to know why the total parameter 14738...I would like to know why the total parameter 147382272 is not an exact multiple of 1024 x 1024: like 140 x1024 x1024.Unknownhttps://www.blogger.com/profile/14500648578445995972noreply@blogger.com