Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzV10-0007Rz-NG for pgsql-performance@arkaria.postgresql.org; Tue, 03 Oct 2017 21:46:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dzV10-0008Uq-4l for pgsql-performance@arkaria.postgresql.org; Tue, 03 Oct 2017 21:46:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dzUzE-0005IQ-Ec for pgsql-performance@postgresql.org; Tue, 03 Oct 2017 21:44:20 +0000 Received: from mail-ua0-x22a.google.com ([2607:f8b0:400c:c08::22a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dzUzB-0001fC-U3 for pgsql-performance@postgresql.org; Tue, 03 Oct 2017 21:44:19 +0000 Received: by mail-ua0-x22a.google.com with SMTP id s41so4388459uab.10 for ; Tue, 03 Oct 2017 14:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=m2KkJr1XAxDKA2bL80J/MoM0adyGBBJXkoSfHBnuN/Q=; b=w6ML58fjogIf4XdU1Rypu8waDm3fDOPOVO1sVfgWgrTo/Ahu/P3UaMPSQGydwWqQSi nMXiSxnvJH4ua9j6Ug0kP8pLIhEZ/8xyVM3jyBKHTpbXJZUyGsO7vLZDhWsUq5YJ/qFE oZfGsKptF0INOlFowYlzJb+FH8Ilj+0Ua25z4/oaGiAuuXV69Yal0lZ/ynjG+REDtqPr WNWoMEOAQbR/1J5YQ/5MCWyfm5H3JlxikdrSiZdOsKLMlF1zAPSNiJNUsv9kUH/AJTDg 2hdDbGXBeWwtDVi4g2MX7p/RFTjW07UUCbAxxeL6aePZE/KWDxbApF1FA0UXLFsqhfH8 UuXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=m2KkJr1XAxDKA2bL80J/MoM0adyGBBJXkoSfHBnuN/Q=; b=CFQP28EulZ6HxNAEUOODpqUUx41NR3OSDMj00bWGYIV4eRzeannTROXBrRJJ55WmfS t8hDgTflHohUwBR8oxKk+njRMrs9FVyR12TJ9IhxFMCIoKZIEwKB/SYfko8hcwVYTzDd iVuFFZX49DcaqDvyMw7Hj8kF83wHAcplzX7ig9+LVaNq+Z4SDirT7Vt+QS12qvVpIlrh 3cXsuLGOjrcbdWjUUmVhaNYHl4FD4YPTrPEPlz5io+eRgG+dawUbDQ9x2GHfnCkhJszk K1JYQMeo3c6/tPjtnO3Re+9sW62blujlMWt7DrQ0ZyaJIQb0HJUZamjVCA/4KztHywg0 aOgQ== X-Gm-Message-State: AMCzsaVnCTejaebHgk1eZ3SBYIHt7ZhW25ty4+1GxUL6lPg/YqLQsWC6 Qg1sAjEOwhcKh/rf/1wRpVEAGR5Qd5LWwFMrj55zVg== X-Google-Smtp-Source: AOwi7QCn0h/9QAVu+6DSycFKxV90PekvcNLA5UaiBmfH6N0o3FkURfGTqmyGAzhunjojTv8NihQnD6gr8HBADvPvA6A= X-Received: by 10.176.71.81 with SMTP id i17mr9332187uac.24.1507067056824; Tue, 03 Oct 2017 14:44:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.50.47 with HTTP; Tue, 3 Oct 2017 14:44:16 -0700 (PDT) In-Reply-To: References: From: David Rowley Date: Wed, 4 Oct 2017 10:44:16 +1300 Message-ID: Subject: Re: How does max_parallel_workers_per_gather change load averages? To: Ben Nachtrieb Cc: "pgsql-performance@postgresql.org" Content-Type: text/plain; charset="UTF-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 4 October 2017 at 08:48, Ben Nachtrieb 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 (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance