dbTalk Databases Forums  

[ADMIN] about shared_buffer and kernel.shmmax

mailing.database.pgsql-admin mailing.database.pgsql-admin


Discuss [ADMIN] about shared_buffer and kernel.shmmax in the mailing.database.pgsql-admin forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
wangqi
 
Posts: n/a

Default [ADMIN] about shared_buffer and kernel.shmmax - 06-20-2012 , 10:38 PM






Hi everybody,
shared_buffer maximum limit is ?
I set shared_buffer more than 250G, I got error at startup pg.

------------------------------------------------------------------------
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 439371702272 bytes), reduce PostgreSQL's
shared_buffers parameter (currently 52428800) and/or its max_connections
parameter (currently 104).
-------------------------------------------------------------------------

but now
kernel.shmmax = 966367641600
kernel.shmall = 235929600

--
----------------------------------------------------
Yours sincerely,
Qi Wang
Edgesoft (China) Co.,Ltd
F26th Block B,Zhongli Building,
No.32 Huoju Road,
Hi-Tech Zone,Dalian,China
Zip:116023
Tel:+86-411-84753511
Fax:+86-411-84753577
http://www.edgesoft.cn
mailto:wangqi (AT) edgesoft (DOT) cn
----------------------------------------------------


--
Sent via pgsql-admin mailing list (pgsql-admin (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Reply With Quote
  #2  
Old   
Craig Ringer
 
Posts: n/a

Default Re: [ADMIN] about shared_buffer and kernel.shmmax - 06-20-2012 , 11:34 PM






On 06/21/2012 11:38 AM, wangqi wrote:
Quote:
Hi everybody,
shared_buffer maximum limit is ?
I set shared_buffer more than 250G, I got error at startup pg.


http://www.postgresql.org/docs/9.1/s...s.html#SYSVIPC

http://www.postgresql.org/docs/9.1/s...-resource.html

http://wiki.postgresql.org/wiki/Guid...rting_problems

--
Craig Ringer

Reply With Quote
  #3  
Old   
Greg Smith
 
Posts: n/a

Default Re: [ADMIN] about shared_buffer and kernel.shmmax - 06-21-2012 , 02:20 AM



On 06/20/2012 11:38 PM, wangqi wrote:
Quote:
shared_buffer maximum limit is ?
I set shared_buffer more than 250G, I got error at startup pg.
There's not much evidence that values larger than 16GB are really
productive. You really do not want put all their memory in just that
one place.

--
Greg Smith 2ndQuadrant US greg (AT) 2ndQuadrant (DOT) com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com

--
Sent via pgsql-admin mailing list (pgsql-admin (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.