From: | mlw <pgsql(at)mohawksoft(dot)com> |
---|---|
To: | Dann Corbit <DCorbit(at)connx(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org |
Subject: | Re: PostgreSQL and memory usage |
Date: | 2003-01-07 22:33:18 |
Message-ID: | 3E1B55AE.9020800@mohawksoft.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Dann Corbit wrote:
> I have a machine with 4 CPU's and 2 gigabytes of physical ram.
>
> I would like to get PostgreSQL to use as much memory as possible. I
> can't seem to get PostgreSQL to use more than 100 megabytes or so.
>
> How can I optimize the use of PostgreSQL to get the maximum throughput
> in a configuration like that?
>
> Are there any memory usage/tuning documents I can read?
>
I'm not sure if there is a document, but there are some things you can do.
First, size the shared memory pool. I've been told by Tom that too much
is actually slower, but making it MUCH bigger than the default does help
a lot.
shared_buffer=2048
(Maybe larger, experiment)
Sort memory, this is useful for large queries that do sorting, it is
allocated as needed on a per process basis. If you run large queries
that sort, this can speed you up instead of sorting to disk.
sort_mem=16384
OK, lastly, do not dispare if PostgreSQL seems not to be using as much
memory as is in your system. Don't forget the OS disk cache is important
too.
From | Date | Subject | |
---|---|---|---|
Next Message | Achilleus Mantzios | 2003-01-07 22:38:17 | Re: [SQL] [PERFORM] 7.3.1 index use / performance |
Previous Message | Achilleus Mantzios | 2003-01-07 22:32:56 | Re: 7.3.1 function problem: ERROR: cache lookup failed |
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Luc Lachance | 2003-01-07 22:42:45 | Re: [HACKERS] I feel the need for speed. What am I doing |
Previous Message | Dave Page | 2003-01-07 22:14:03 | Re: Next platform query: Alphaservers under VMS? |