Re: Increase default effective_cache_size? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Increase default effective_cache_size?
Date
Msg-id 11617.1159204037@sss.pgh.pa.us
Whole thread Raw
In response to Re: Increase default effective_cache_size?  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Initdb does not currently make any attempt to discover the extent of 
> physical or virtual memory, it simply tries to start postgres with 
> certain shared_buffer settings, starting at 4000, and going down until 
> we get a success.

> max_fsm_pages is now fixed proportionally with shared_buffers, and I 
> guess we could do something similar with effective_cache_size, but since 
> IIRC this doesn't involve shared memory I'm inclined to agree with Tom 
> that it should just be fixed at some substantially higher level.

Right, the default shared_buffers doesn't have much of anything to do
with actual RAM size.  If the user has altered it, then it might (or
might not) ... but that doesn't help us for setting a default
effective_cache_size.

Barring objections, I'll change it to Josh Drake's suggestion of ~ 128Mb
(versus current 8Mb).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Stefan Kaltenbrunner
Date:
Subject: Re: -HEAD planner issue wrt hash_joins on dbt3 ?
Next
From: Andrew Sullivan
Date:
Subject: Re: Release Notes: Major Changes in 8.2