From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Ralph Graulich <maillist(at)shauny(dot)de> |
Cc: | Alessandro Baretta <alex(at)baretta(dot)com>, PostgreSQL General Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Memory usage question |
Date: | 2002-07-22 00:05:03 |
Message-ID: | 3D3B4C2F.8070405@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Ralph Graulich wrote:
>>Isn't postgres supposed to cache most of the database in memory, so as
>>to limit disk access?
> Check your settings for shared memory buffers in postgresql.conf and read
> the appropriate manpage in the documentation.
Specifically see:
http://www.postgresql.org/idocs/index.php?kernel-resources.html
and
http://www.postgresql.org/idocs/index.php?runtime-config.html
In postgresql.conf consider changing shared_buffers to something like:
shared_buffers = 8192 (in 8K pages, which is equal to 64MB, the oft
recommended 1/4 total RAM; play around, YMMV).
You may also want to set:
- sort_mem (I use 4096, but that isn't based on much in the way of
empirical testing)
- wal_sync_method (I did enough testing with this to convince myself
that on Linux with ext3, this is the best choice)
and possibly
- max_fsm_relations = 100
- max_fsm_pages = 10000 (search the archives for discussions on the free
space map)
On all of this stuff, best advice is to play around to obtain the best
performance on your hardware with your data and queries.
HTH,
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2002-07-22 01:35:58 | Cross-Tab queries in postgres? |
Previous Message | Alessandro Baretta | 2002-07-21 23:48:45 | Memory usage question |