From: | Josh Close <narshe(at)gmail(dot)com> |
---|---|
To: | POSTGRES <pgsql-general(at)postgresql(dot)org>, GENTOO <gentoo-user(at)lists(dot)gentoo(dot)org> |
Subject: | postgres start problems with memory |
Date: | 2004-09-30 18:39:57 |
Message-ID: | 4a0cafe20409301139364a2aab@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I keep getting this error.
DETAIL: Failed system call was shmget(key=5432001, size=34037760, 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 34037760 bytes), reduce
PostgreSQL's shared_buffers parameter (currently 2048) and/or its
max_connections parameter (currently 1024).
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.
I've change kernel.shmmax and kernel.shmmin a couple of times, and I
can't get it to work.
I'm passing
-N 1024
-B 2048
to postmaster, it's the gentoo install default. This is what I have
right now for kernel values
root # sysctl -a | grep shm
kernel.shmmni = 4096
kernel.shmall = 31584400
kernel.shmmax = 31584400
Does the amount of RAM in the computer make a difference? I added more
RAM recently and upped the kernel to 4mb ram (something-or-rather) to
allow for over 1gig. It started up fine then. I restarted the computer
today and I can't get postgres to start now.
How can I fix this? What are some good standards? I've read this
http://www.postgresql.org/docs/7.4/interactive/kernel-resources.html
but it didn't help much.
Thanks.
-Josh
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Close | 2004-09-30 19:26:27 | Re: postgres start problems with memory |
Previous Message | Steve Gollery | 2004-09-30 18:26:25 | problem getting started with PostgreSQL 8 beta 3 on XP |