Re: Non-linear Performance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Peter A(dot) Daly" <petedaly(at)ix(dot)netcom(dot)com>
Cc: Curt Sampson <cjs(at)cynic(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Non-linear Performance
Date: 2002-05-30 14:58:19
Message-ID: 919.1022770699@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Peter A. Daly" <petedaly(at)ix(dot)netcom(dot)com> writes:
> Tom Lane wrote:
>> Increasing SORT_MEM would help the constant factor, however...
>>
> What is the most amount of SORT_MEM it makes sense to allocate?

I've never experimented with it, but certainly the standard default
(512K = 0.5M) is pretty small for modern machines. In a 2G machine
I might try settings around 100M-500M to see what works best. (Note
this is just for a one-off btree creation --- for ordinary queries you
need to allow for multiple sorts going on in parallel, which is one
reason the default sort_mem is not very large.)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter A. Daly 2002-05-30 15:17:56 Re: Non-linear Performance
Previous Message Peter A. Daly 2002-05-30 14:37:56 Re: Non-linear Performance