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 1kHrIq-0005t9-TB for pgsql-general@arkaria.postgresql.org; Mon, 14 Sep 2020 16:26: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 1kHrIp-0001VH-JV for pgsql-general@arkaria.postgresql.org; Mon, 14 Sep 2020 16:26: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 1kHrIp-0001V8-Be for pgsql-general@lists.postgresql.org; Mon, 14 Sep 2020 16:26:03 +0000 Received: from mxh01aws49.mxout.inova.com.br ([34.198.242.49] helo=mxhero01.a.inova.com.br) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHrIe-0006rL-Ce for pgsql-general@lists.postgresql.org; Mon, 14 Sep 2020 16:26:02 +0000 Received: from ip-10-0-4-78.ec2.internal (localhost [127.0.0.1]) by mxhero01.a.inova.com.br (Postfix) with ESMTP id DB08E1C9147 for ; Mon, 14 Sep 2020 16:25:48 +0000 (UTC) Received: from corpmoutpolicyd01.a.inova.com.br (puppetmaster.a.inova.com.br [10.0.1.88]) by mxhero01.a.inova.com.br (Postfix) with ESMTP; Mon, 14 Sep 2020 16:25:48 +0000 (UTC) Received: from corpmoutpolicyd01.a.inova.com.br (localhost [127.0.0.1]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id C9C462203BF; Mon, 14 Sep 2020 13:25:45 -0300 (BRT) Received: from corpmout01.a.inova.com.br (ip-10-0-1-125.ec2.internal [10.0.1.125]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id BF2D8B6498; Mon, 14 Sep 2020 13:25:45 -0300 (BRT) Received: from corpmbox02.a.inova.com.br (ip-10-0-4-158.ec2.internal [10.0.4.158]) by corpmout01.a.inova.com.br (Postfix) with ESMTP; Mon, 14 Sep 2020 13:25:45 -0300 (-03) Date: Mon, 14 Sep 2020 13:25:45 -0300 (BRT) From: luis.roberto@siscobra.com.br To: Ron Cc: pgsql-general Message-ID: <330249832.8108571.1600100745617.JavaMail.zimbra@siscobra.com.br> In-Reply-To: <4637f0e5-d3fa-2ff3-64e8-3835ec67e67c@gmail.com> References: <347986270.6604014.1600090766280.JavaMail.zimbra@siscobra.com.br> <4637f0e5-d3fa-2ff3-64e8-3835ec67e67c@gmail.com> Subject: Re: Effective IO Concurrency MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_ecea15a3-ff98-4332-b176-d6c313c569ee" X-Originating-IP: [10.0.4.158] X-Mailer: Zimbra 8.8.15_GA_3955 (ZimbraWebClient - GC85 (Win)/8.8.15_GA_3953) Thread-Topic: Effective IO Concurrency Thread-Index: tAXX91H+pD7zx67vpRDwJ2F09fAITA== x-mxHero-Origin-Ip: /127.0.0.1:37578 X-mxHero-AttachmentBlock: rule=48;result=false List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=_ecea15a3-ff98-4332-b176-d6c313c569ee Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit De: "Ron" Para: "pgsql-general" Enviadas: Segunda-feira, 14 de setembro de 2020 13:10:23 Assunto: Re: Effective IO Concurrency On 9/14/20 11:03 AM, Laurenz Albe wrote: > On Mon, 2020-09-14 at 10:39 -0300, luis.roberto@siscobra.com.br wrote: >> In PostgreSQL 13, the way of using effective_io_concurrency has changed. Until v12, >> I used 200 for this value (using SSD drives). Using the new formula described in >> https://www.postgresql.org/docs/13/release-13.html gives me 1176. >> However, in the documentation https://www.postgresql.org/docs/13/runtime-config-resource.html#GUC-EFFECTIVE-IO-CONCURRENCY >> it says that the maximum value allowed is 1000. > Then use the value 1000... I think he means that the formula should take that into account. -- Angular momentum makes the world go 'round. Exactly.... For future reference, and maybe a updated documentation: SELECT least(round(sum(OLD / n::float)),1000) FROM generate_series(1, OLD) s(n) I don't know how to write patches, so maybe someone can do that. Thanks. --=_ecea15a3-ff98-4332-b176-d6c313c569ee Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
D= e: "Ron" <ronljohnsonjr@gmail.com>
Para: "pgsql-general= " <pgsql-general@lists.postgresql.org>
Enviadas: Segunda-fe= ira, 14 de setembro de 2020 13:10:23
Assunto: Re: Effective IO Co= ncurrency

On 9= /14/20 11:03 AM, Laurenz Albe wrote:
> On Mon, 2020-09-14 at 10:39 -0= 300, luis.roberto@siscobra.com.br wrote:
>> In PostgreSQL 13, the = way of using effective_io_concurrency has changed. Until v12,
>> &= nbsp; I used 200 for this value (using SSD drives). Using the new formula d= escribed in
>> https://www.postgresql.org/docs/13/release-13.html = gives me 1176.
>>   However, in the documentation https://www= .postgresql.org/docs/13/runtime-config-resource.html#GUC-EFFECTIVE-IO-CONCU= RRENCY
>> it says that the maximum value allowed is 1000.
> = Then use the value 1000...

I think he means that the formula should = take that into account.

--
Angular momentum makes the world go '= round.

Exactly....

For future reference, and mayb= e a updated documentation:

SELECT least(round(sum(OLD / n::float)),1000) FROM generate_series(= 1, OLD) s(n)

I don't know how= to write patches, so maybe someone can do that.

Thanks.
--=_ecea15a3-ff98-4332-b176-d6c313c569ee--