From: | Scott Ribe <scott_ribe(at)elevated-dev(dot)com> |
---|---|
To: | Ryan King - NOAA Affiliate <ryan(dot)king(at)noaa(dot)gov> |
Cc: | Scott Whitney <scott(at)journyx(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: could not create shared memory segment: Invalid argument |
Date: | 2015-07-14 01:15:12 |
Message-ID: | 35EBDB73-CF15-40D6-8AEB-F31AF39FDD5D@elevated-dev.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general pgsql-performance |
On Jul 13, 2015, at 6:49 PM, Ryan King - NOAA Affiliate <ryan(dot)king(at)noaa(dot)gov> wrote:
>
> Yeah thanks I see I was going the wrong way...thanks.
> So shared_buffers is 15gb and max_conn = 1000.
OK, you haven't shared your OS or hardware setup, but a few general points:
- 15GB is large for PG shared buffers; it usually doesn't help to go that high; remember, shared buffers is a kind of working cache, not the whole cache, PG depends on the OS caching of recently-used files;
- Your shmall is only 16GB. PG may not be the only user of shared memory. It doesn't make sense to have shmall * page size < shmmax.
- Also, does your platform have some absolute upper limit on shmmax? 250GB seems awfully high...
- With 1,000 clients, you'd likely benefit from connection pooling; after you get things up, you should consider pgbouncer.
--
Scott Ribe
scott_ribe(at)elevated-dev(dot)com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice
From | Date | Subject | |
---|---|---|---|
Next Message | Matthieu Lejeune | 2015-07-14 06:09:03 | Re: Automatic restore corruption problem |
Previous Message | Ryan King - NOAA Affiliate | 2015-07-14 00:49:59 | Re: could not create shared memory segment: Invalid argument |
From | Date | Subject | |
---|---|---|---|
Next Message | Igor Stassiy | 2015-07-14 09:12:24 | Creating table with data from a join |
Previous Message | Venkata Balaji N | 2015-07-14 01:06:26 | Re: Disconnected but query still running |
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2015-07-14 13:14:00 | Re: Query planner not using indexes with JOIN query and OR clause |
Previous Message | Ryan King - NOAA Affiliate | 2015-07-14 00:49:59 | Re: could not create shared memory segment: Invalid argument |