Re: DB Performance - Mailing list pgsql-admin

From Tom Lane
Subject Re: DB Performance
Date
Msg-id 27429.1036173877@sss.pgh.pa.us
Whole thread Raw
In response to DB Performance  (Gary DeSorbo <isasitis@uchicago.edu>)
List pgsql-admin
Gary DeSorbo <isasitis@uchicago.edu> writes:
> Postgres is configured as follows:

> sort_mem = 128672
> shared_buffers = 60800
> fsync = false

Yipes.  Back off that sort_mem setting --- that's 128M *per sort*,
which will undoubtedly run you out of memory (or at least into serious
swapping) as soon as several processes try to do concurrent sorts.
Something in the vicinity of 5 or 10 meg is probably more reasonable.

If you have multiple drives consider relocating the WAL (pg_xlog/)
onto a different drive, preferably one that normally doesn't touch
anything but WAL.

            regards, tom lane

pgsql-admin by date:

Previous
From: Gary DeSorbo
Date:
Subject: DB Performance
Next
From:
Date:
Subject: Re: DB Performance