pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
shmmax 9.3
2+ messages / 2 participants
[nested] [flat]

* shmmax 9.3
@ 2013-12-17 16:51  dx k9 <bitsandbytes88@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: dx k9 @ 2013-12-17 16:51 UTC (permalink / raw)
  To: pgsql-admin

Hi, we are building a 9.3 instance on CentOS with 32 GB of RAM.   What is the recommended value for SHMMAX the documentation was far less is needed but not exactly how much.   We used 25% of total memory < 9.3.   But what should we use now ?  5% of total memory or just 10 MB or 10 KB ?   Do we even need to mess with sysctl.conf?    The documentation table 17-1 shows just 1 kb is needed yet below under linux the example uses 17 GB of SHMMAX.   We will run several instances on one server.  
 
Thanks,
~DjK
 		 	   		  =

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: shmmax 9.3
@ 2013-12-17 17:29  Matheus de Oliveira <matioli.matheus@gmail.com>
  parent: dx k9 <bitsandbytes88@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Matheus de Oliveira @ 2013-12-17 17:29 UTC (permalink / raw)
  To: dx k9 <bitsandbytes88@hotmail.com>; +Cc: pgsql-admin

On Tue, Dec 17, 2013 at 2:51 PM, dx k9 <bitsandbytes88@hotmail.com> wrote:

> Hi, we are building a 9.3 instance on CentOS with 32 GB of RAM.   What is
> the recommended value for SHMMAX the documentation was far less is needed
> but not exactly how much.   We used 25% of total memory < 9.3.   But what
> should we use now ?  5% of total memory or just 10 MB or 10 KB ?   Do we
> even need to mess with sysctl.conf?    The documentation table 17-1 shows
> just 1 kb is needed yet below under linux the example uses 17 GB of SHMMAX.
>   We will run several instances on one server.
>
>

At 9.3 the mechanism for shared memory allocation has changed. Now it uses
mmap(). And so, there is no more need to adjust the SHMMAX parameter (at
least not more than the 1KB).

So the answer to your question is basically that you don't need to mess
sysctl.conf anymore to change SHMMAX (at least not in CentOS). You still
may need to tweak there to change semaphores limits.

Best regards,
-- 
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nĂ­vel F!
www.dextra.com.br/postgres

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-12-17 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-12-17 16:51 shmmax 9.3 dx k9 <bitsandbytes88@hotmail.com>
2013-12-17 17:29 ` Matheus de Oliveira <matioli.matheus@gmail.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