public inbox for [email protected]  
help / color / mirror / Atom feed
From: David Rowley <[email protected]>
To: Ben Nachtrieb <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: How does max_parallel_workers_per_gather change load averages?
Date: Wed, 4 Oct 2017 10:44:16 +1300
Message-ID: <CAKJS1f8jDOsdvSNZzZn4ocXReHRC+U8D3JaHU7h0x3RhpEdq3Q@mail.gmail.com> (raw)
In-Reply-To: <BN6PR1301MB2212820B17792E0E52802EC0D4720@BN6PR1301MB2212.namprd13.prod.outlook.com>
References: <BN6PR1301MB2212820B17792E0E52802EC0D4720@BN6PR1301MB2212.namprd13.prod.outlook.com>
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgsql-performance>

On 4 October 2017 at 08:48, Ben Nachtrieb <[email protected]> wrote:
> I have 2 cores and my max_parallel_workers_per_gather = 2 and
> max_worker_processes = 8, but my load averages are between 8 and 5 with
> scheduled at 1/189 to 5/195. Are these so high because I increased
> max_parallel_workers_per_gather? My understanding is that if my load
> averages are greater than my number of cores the system is overloaded.
> Should I think about it differently once I increase
> max_parallel_workers_per_gather? How should I think about it?

Parallel query is not 100% efficient. For example, adding twice the
CPU, in theory, will never double the performance, there's always some
overhead to this. It's really only useful to do on systems with spare
CPU cycles to perform this extra work. You don't seem to have much to
spare, so you may get along better if you disable parallel query.


-- 
Sent via pgsql-performance mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance




reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: How does max_parallel_workers_per_gather change load averages?
  In-Reply-To: <CAKJS1f8jDOsdvSNZzZn4ocXReHRC+U8D3JaHU7h0x3RhpEdq3Q@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox