Re: [HACKERS] Increase default effective_cache_size?

2006-09-25 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> 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

Re: [HACKERS] Increase default effective_cache_size?

2006-09-25 Thread Andrew Dunstan
Teodor Sigaev wrote: current default of 1000 pages (8Mb) seems really pretty silly for modern machines; we could certainly set it to 10 times that without problems, and maybe much more. Thoughts? May be, set by default effective_cache_size equal to number of shared buffers? If pgsql is conf

Re: [HACKERS] Increase default effective_cache_size?

2006-09-25 Thread Teodor Sigaev
current default of 1000 pages (8Mb) seems really pretty silly for modern machines; we could certainly set it to 10 times that without problems, and maybe much more. Thoughts? May be, set by default effective_cache_size equal to number of shared buffers? If pgsql is configured to use quarter o

Re: [HACKERS] Increase default effective_cache_size?

2006-09-23 Thread Stephen Frost
* Tom Lane ([EMAIL PROTECTED]) wrote: > Russ Brown <[EMAIL PROTECTED]> writes on pgsql-general: > > Thank you: the problem was the effective_cache_size (which I hadn't > > changed from the default of 1000). This machine doesn't have loads of > > RAM, but I knocked it up to 65536 and now the query u

Re: [HACKERS] Increase default effective_cache_size?

2006-09-23 Thread Gevik Babakhani
On Sat, 2006-09-23 at 17:14 -0700, Joshua D. Drake wrote: > >> Thank you: the problem was the effective_cache_size (which I hadn't > >> changed from the default of 1000). This machine doesn't have loads of > >> RAM, but I knocked it up to 65536 and now the query uses the index, > >> without having

Re: [HACKERS] Increase default effective_cache_size?

2006-09-23 Thread Joshua D. Drake
Thank you: the problem was the effective_cache_size (which I hadn't changed from the default of 1000). This machine doesn't have loads of RAM, but I knocked it up to 65536 and now the query uses the index, without having to change the statistics. Considering recent discussion about how 8.2 is

[HACKERS] Increase default effective_cache_size?

2006-09-23 Thread Tom Lane
Russ Brown <[EMAIL PROTECTED]> writes on pgsql-general: > On Thu, 2006-09-21 at 23:39 -0400, Jim Nasby wrote: >> Also make sure that you've set effective_cache_size >> correctly (I generally set it to total memory - 1G, assuming the >> server has at least 4G in it). > Thank you: the problem wa