Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldyCO-0004nP-8g for pgsql-general@arkaria.postgresql.org; Tue, 04 May 2021 16:47:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ldyCN-00039c-8B for pgsql-general@arkaria.postgresql.org; Tue, 04 May 2021 16:47:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldyCM-00039U-WD for pgsql-general@lists.postgresql.org; Tue, 04 May 2021 16:47:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldyCK-0004jM-Vz for pgsql-general@lists.postgresql.org; Tue, 04 May 2021 16:47:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 144Gkwka3911438; Tue, 4 May 2021 12:46:58 -0400 From: Tom Lane To: Hans Buschmann cc: Thomas Munro , "pgsql-general@lists.postgresql.org" Subject: Re: AW: Huge performance penalty with parallel queries in Windows x64 v. Linux x64 In-reply-to: <1620143446337.63943@nidsa.net> References: <1620037591174.76116@nidsa.net> <1620114038935.30845@nidsa.net>, <1620143446337.63943@nidsa.net> Comments: In-reply-to Hans Buschmann message dated "Tue, 04 May 2021 15:50:39 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3911436.1620146818.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 04 May 2021 12:46:58 -0400 Message-ID: <3911437.1620146818@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hans Buschmann writes: > In my opinion, even for Linux the default for parallel_setup_cost is set= too low (1000). It should reflect the sequential access of 1000 pages, wh= ich normally is faster from buffer cache on modern hardware. I tend to agree with you that the default costs for parallel queries are far too optimistic --- we've seen enough complaints about parallelism making things slower to make that clear. However, proposing some new numbers without gathering some hard evidence to support them is not helpful. regards, tom lane