Re: Swappiness setting on a linux pg server

Поиск
Список
Период
Сортировка
От Tobias Brox
Тема Re: Swappiness setting on a linux pg server
Дата
Msg-id 20061019171023.GA29574@oppetid.no
обсуждение исходный текст
Ответ на Swappiness setting on a linux pg server  (Tobias Brox <tobias@nordicbet.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jens Schipkowski"
Дата:
Сообщение: Re: DB Performance decreases due to often written/accessed table
Следующее
От: Tobias Brox
Дата:
Сообщение: Re: Swappiness setting on a linux pg server