Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzTBP-0004D1-5F for pgsql-performance@arkaria.postgresql.org; Tue, 03 Oct 2017 19:48:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dzTBO-0002sr-O8 for pgsql-performance@arkaria.postgresql.org; Tue, 03 Oct 2017 19:48:46 +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 1dzTBN-0002sh-TR for pgsql-performance@postgresql.org; Tue, 03 Oct 2017 19:48:46 +0000 Received: from mail-bl2nam02on0134.outbound.protection.outlook.com ([104.47.38.134] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dzTBK-0007h7-Ag for pgsql-performance@postgresql.org; Tue, 03 Oct 2017 19:48:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NETORG840124.onmicrosoft.com; s=selector1-crescat-net; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ejdJkpn4KW5JOcHOioY06T8wCP6ytRATl21VU0Go4mE=; b=WuNq3pEeQOCJDeJIcRYWP5Ww5w1RhMbTOCfc/tPsE7QSmkJnTOt0P5X7yvEKNs56a/0YTcUWlbglc7/IXNfD/4uFZuxUyjYTwWryTQZ9L+hJipa3RS1uSf9ilNFK1pvl+KpykDWkx8QMtFi7U/JySSI/E5HCBg/cD0YrfNuJZv0= Received: from BN6PR1301MB2212.namprd13.prod.outlook.com (10.174.90.37) by BN6PR1301MB2065.namprd13.prod.outlook.com (10.174.89.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.5; Tue, 3 Oct 2017 19:48:40 +0000 Received: from BN6PR1301MB2212.namprd13.prod.outlook.com ([10.174.90.37]) by BN6PR1301MB2212.namprd13.prod.outlook.com ([10.174.90.37]) with mapi id 15.20.0077.016; Tue, 3 Oct 2017 19:48:40 +0000 From: Ben Nachtrieb To: "pgsql-performance@postgresql.org" Subject: How does max_parallel_workers_per_gather change load averages? Thread-Topic: How does max_parallel_workers_per_gather change load averages? Thread-Index: AdM8fyQtw+iSK1wQSmyV8nuRQYnc0g== Date: Tue, 3 Oct 2017 19:48:39 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=bnachtrieb@crescat.net; x-originating-ip: [208.186.220.92] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR1301MB2065;20:+yzvj0tW/xxfxzrL0SkYVwGEOVrkxImcd+jON1vX9MAzumtngmI/z4LK/6+zbbndac2bDPRThCRG0O235hrSkce3ZJXujBawTnnS2i4cLp2hhz6Tm27v5eW0cLMHfbp3yv58Y/zVLN1hRX1wIpowW2Yt6LM/Edu6kizDthhswf8= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 26a2b1c8-8230-45a1-9434-08d50a97bee1 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(2017082002075)(2017052603199)(201703131423075)(201702281549075);SRVR:BN6PR1301MB2065; x-ms-traffictypediagnostic: BN6PR1301MB2065: x-exchange-antispam-report-test: UriScan:(158342451672863)(21748063052155); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6041248)(20161123564025)(20161123555025)(2016111802025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6043046)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR1301MB2065;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR1301MB2065; x-forefront-prvs: 044968D9E1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39830400002)(346002)(376002)(199003)(189002)(81166006)(6916009)(3660700001)(33656002)(14454004)(6436002)(66066001)(2906002)(478600001)(3280700002)(5630700001)(6506006)(77096006)(53936002)(189998001)(8676002)(316002)(97736004)(102836003)(6116002)(54356999)(50986999)(81156014)(790700001)(86362001)(8936002)(2501003)(3846002)(25786009)(7736002)(105586002)(9326002)(99286003)(55016002)(68736007)(101416001)(74316002)(54896002)(6306002)(5640700003)(9686003)(2351001)(2900100001)(7696004)(106356001)(5660300001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR1301MB2065;H:BN6PR1301MB2212.namprd13.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: crescat.net does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BN6PR1301MB2212820B17792E0E52802EC0D4720BN6PR1301MB2212_" MIME-Version: 1.0 X-OriginatorOrg: crescat.net X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Oct 2017 19:48:39.9868 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 142f3b9d-fb1f-4275-937a-0c090feb6430 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1301MB2065 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 --_000_BN6PR1301MB2212820B17792E0E52802EC0D4720BN6PR1301MB2212_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, This is my first question on this list. How does max_parallel_workers_per_gather change Linux server load averages? I have 2 cores and my max_parallel_workers_per_gather =3D 2 and max_worker_= processes =3D 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 differ= ently once I increase max_parallel_workers_per_gather? How should I think a= bout it? I am using postgres 9.6. --_000_BN6PR1301MB2212820B17792E0E52802EC0D4720BN6PR1301MB2212_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

This is my first question on this list. <= /p>

 

How does max_parallel_workers_per_gather change Linu= x server load averages?

 

I have 2 cores and my max_parallel_workers_per_gathe= r =3D 2 and max_worker_processes =3D 8, but my load averages are between 8 = and 5 with scheduled at 1/189 to 5/195. Are these so high because I increas= ed max_parallel_workers_per_gather? My understanding is that if my load averages are greater than my number of co= res the system is overloaded. Should I think about it differently once I in= crease max_parallel_workers_per_gather? How should I think about it?

 

I am using postgres 9.6.

 

 

 

--_000_BN6PR1301MB2212820B17792E0E52802EC0D4720BN6PR1301MB2212_--