Re: Swappiness setting on a linux pg server - Mailing list pgsql-performance

From Tobias Brox
Subject Re: Swappiness setting on a linux pg server
Date
Msg-id 20061019171023.GA29574@oppetid.no
Whole thread Raw
In response to Swappiness setting on a linux pg server  (Tobias Brox <tobias@nordicbet.com>)
List pgsql-performance
[Jim C. Nasby - Thu at 12:00:39PM -0500]
> What's reasonable for work_mem depends on your workload. If you've got
> some reporting queries that you know aren't run very concurrently they
> might benefit from large values of work_mem. For stats.distributed.net,
> I set work_mem to something like 2MB in the config file, but the nightly
> batch routines manually set it up to 256M or more, because I know that
> those only run one at a time, and having that extra memory means a lot
> of stuff that would otherwise have to spill to disk now stays in memory.

That sounds like a good idea; indeed we do have some few heavy reporting
queries and they are not run much concurrently (the application checks
the pg_stat_activity table and will disallow reports to be taken out if
there is too much activity there).  We probably would benefit from
raising the work mem just for those reports, and lower it for the rest
of the connections.


pgsql-performance by date:

Previous
From: "Jens Schipkowski"
Date:
Subject: Re: DB Performance decreases due to often written/accessed table
Next
From: Tobias Brox
Date:
Subject: Re: Swappiness setting on a linux pg server