Postgres 9.6 Parallel Query

Started by bastialmost 9 years ago2 messagesgeneral
Jump to latest
#1basti
mailinglist@unix-solution.de

Hello,

is there a recomment to set max_worker_processes and
max_parallel_workers_per_gather per cpu core or thread?

Best regards

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#2Rafia Sabih
rafia.sabih@enterprisedb.com
In reply to: basti (#1)
Re: Postgres 9.6 Parallel Query

On Thu, Apr 27, 2017 at 6:38 PM, basti <mailinglist@unix-solution.de> wrote:

Hello,

is there a recomment to set max_worker_processes and
max_parallel_workers_per_gather per cpu core or thread?

This largely depends on what type of processing is done by parallel
workers, e.g. if the task is I/O bound then having workers equal to
h/w threads would be beneficial since less time will spent in CPU,
however if the task is CPU bound then workers more than cpu cores is
not likely to give much performance improvement as they'll be
contending for CPU cycles.

--
Regards,
Rafia Sabih
EnterpriseDB: http://www.enterprisedb.com/

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general