Skip site navigation (1) Skip section navigation (2)

Re: Need help in setting optimal configuration for a huge database.

From: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>
To: Kishore B <kishorebh(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Need help in setting optimal configuration for a huge database.
Date: 2005-10-22 21:57:49
Message-ID: 20051022215749.GB22328@samfundet.no (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-performance
[please send replies to the list, not to me directly]

On Sun, Oct 23, 2005 at 03:19:39AM +0530, Kishore B wrote:
>  *You definitely want to upgrade this if you can.
> 
> > Memory : 2 GB
> *
> We can move upto 12 GB if need to be.

I was referring to your PostgreSQL version, not your RAM. More RAM is almost
always an improvement, but for your data set, 2GB sounds quite good. (700k
rows is not really a “huge database”, BTW -- I've seen people here have
several billion rows a _day_.)

>  For now, let us set the configuraiton parameters for 2GB.
> I failed to mention earlier, that we have a dedicated server for database.
>  Can I set the effective_cache_size to 200000?

Yes, that should work fine.

> Can I set the sort_mem size to 4096?

This depends a bit on the queries you're running. Remember that for each and
every sort you do, one of these (measured in 8kB buffers) will get allocated.
Some tuning of your queries against this would probably be useful.

>   Will the performance suffer, if I set these parameters too high?

Yes, you can easily run into allocating too much RAM with too high sort_mem,
which could kill your performance. Overestimating effective_cache_size is
AFAIK not half as bad, though -- it is merely a hint to the planner, it does
not actually allocate memory.

/* Steinar */
-- 
Homepage: http://www.sesse.net/


In response to

Responses

pgsql-performance by date

Next:From: Karl O. PincDate: 2005-10-22 22:03:03
Subject: Re: Need help in setting optimal configuration for a huge
Previous:From: Steinar H. GundersonDate: 2005-10-22 21:42:59
Subject: Re: Need help in setting optimal configuration for a huge database.

pgsql-admin by date

Next:From: Karl O. PincDate: 2005-10-22 22:03:03
Subject: Re: Need help in setting optimal configuration for a huge
Previous:From: Steinar H. GundersonDate: 2005-10-22 21:42:59
Subject: Re: Need help in setting optimal configuration for a huge database.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group