Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: Configuring...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 16 of 17 Topic 5102 of 5419
Post > Topic >>

Re: Configuring Shared Buffers

by kneufeld@[EMAIL PROTECTED] (Kevin Neufeld) Jun 30, 2008 at 07:43 PM

I agree.  I have a similar system that I use for development purposes 
and have the shared_buffers sitting comfortable around 1GB.  On 
production systems with 16GB of RAM, I've seen this as high as 12GB.  
There is talk nowadays, however, that this setting could drop back down 
to defaults on modern installations and let the OS handle cached memory 
as it sees fit. 

In any case, the biggest performance gain I see for you would be setting 
work_mem appropriately.  This is the memory postgres is permitted to use 
for sorts, merges, hash joins, etc.  before being forced to disk.  It 
defaults to 1MB.  In my opinion, this is far too low.  This is the 
memory allocated to each sort/hash/etc operation.  So for a complicated 
query, postgres could use several allocations.  Even though, I think you 
could raise this considerably.  If your system is a dedicated postgres 
box, I would take the total memory, subtract that needed for the OS, 
subtract what you decided to use for shared_buffers, and divide the rest 
by your 100 connections.  So, for you, I see this around 30MB.  On my 
development box with only a few connections, I have this around 500MB 
and sometime spike it to 1.2GB on the fly before a long running query.

Cheers,
Kevin

Alvaro Herrera wrote:
> Rafael Domiciano escribió:
>   
>> The Postgres version is 8.3.3 and I am using Fedora Core 8.
>> I have in the actual server around 70 connections the same time. I am
>> assigning for this 100.
>>     
>
> 100 MB?  That's not very much either.  You can probably get a hefty
> performance boost by upping it a lot more (depending on whether the
> machine is doing something else, or Postgres is the only service running
> on it.)
>
>
>   

-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 17 Posts in Topic:
Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 14:52:05 
Re: Configuring Shared Buffers
postgresql@[EMAIL PROTECT  2008-06-30 20:28:30 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 16:01:14 
Re: Configuring Shared Buffers
postgresql@[EMAIL PROTECT  2008-06-30 21:17:10 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 21:09:27 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 20:16:02 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 19:19:41 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 20:41:38 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 19:45:36 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 20:51:05 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 19:59:59 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 21:12:47 
Re: Configuring Shared Buffers
scott.marlowe@[EMAIL PROT  2008-06-30 19:05:10 
Re: Configuring Shared Buffers
scott.marlowe@[EMAIL PROT  2008-06-30 20:08:39 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 22:38:46 
Re: Configuring Shared Buffers
kneufeld@[EMAIL PROTECTED  2008-06-30 19:43:11 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-07-01 22:24:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 10:14:08 CDT 2008.