Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbh6B-000lmy-1N for pgsql-general@arkaria.postgresql.org; Wed, 07 Aug 2024 13:53:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sbh69-007YYy-Dg for pgsql-general@arkaria.postgresql.org; Wed, 07 Aug 2024 13:53:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbh69-007YYq-2A for pgsql-general@lists.postgresql.org; Wed, 07 Aug 2024 13:53:05 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sbh66-003dl6-7T for pgsql-general@lists.postgresql.org; Wed, 07 Aug 2024 13:53:04 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-25dfb580d1fso750151fac.2 for ; Wed, 07 Aug 2024 06:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723038780; x=1723643580; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3LUG5tuudFtzGXl6zQxDAcZTm73hR5/USKhzNnqSIlo=; b=K/ZGqhpEl7MPWLkTzLSerzXsBGMW+++DQF8OkNRXst13HOQoNb80n+T9VJdo4D6wPb AEon7M766Iy1DML6Ioawfnv2M+4LDOcbeUL3VGd6yKELjiQE89Z5PtgDJxJ6bcVPkfL4 cA7J61FGCzl+C9/xQPNWYhyDWRASRZXDy8ltM+htMLJuxCU6v/gNAp1WhEVpAsCnxLhy LxNi4sAx4j7B6+Tcp4OjBQiFuus9ugMi8TKfM7HqbaEiy3qCn3fawOpE4BM2m4DeT3PS lxObK7H+PEVBfaKP2NI6OI0TNIyAPO1Vj+MJyl1aBW4sM/xEBTvw30zW3WblbX4i3k1t fVNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723038780; x=1723643580; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3LUG5tuudFtzGXl6zQxDAcZTm73hR5/USKhzNnqSIlo=; b=T5sWFqLPugA0cDc+9nRStbPGkqgKgKhIe7UdtxDaxc1DjQaAmjv1eQizLBrkwboxHB GL2cVJwiUdN9WHiJzmWsdXDey2uww6Wk36eCtzu6ek2ZYvQ7NSZ3NVYCiGKafAEAFbrj OD7pipWtj1PCYdpJmbrZN9rSWa82p90ksrk3Bgut+Zo3WA3BWop8fU8Hl6K2GRIKdwse G8DHweaIIpX0n0TcP7WxckRtz4fhPyIrDbxqIV9yEWF5RzLMr64H4cBg7UbxRqrChaik ZXgl/NDSwprZJezNgaC2b8FR0IRa9RVO7eVRf9qFnI6zlrvLyArNqw4hmQkKiGkjIcKs DcBA== X-Forwarded-Encrypted: i=1; AJvYcCV11kssvQgl+Atgxa8ooSIOVqfKx2mdqk6OIxwe4e7YO+Ane9+7/trHpx/5xIElmYn3DESG8lqo7YpebrTr3TILUNxRLAh/MbmZiK4Ta8uVfgNf X-Gm-Message-State: AOJu0YzLg1esM3RwIkS/tfhWfWktB5wfGO9+J0zyn0EO8Kt40s9ZdNtC NLj2KZx2BgZwiFuwWey30glFRxbOpy93BAnjYZNqwFjX7gE9fAmNEpG9U745EBMrUlxIy6TkXY0 IfNE39RmnE9nUjrgS/7mZi49ieaQ= X-Google-Smtp-Source: AGHT+IHXfIj7yoPK4I8Gr18tTiSN23NqIorEy8L8aReUkLoSTKFlLDG2ho0d27lsr1MYW2lveWMWML9gpQ2yDXnU9kU= X-Received: by 2002:a05:6871:3422:b0:261:c65e:919f with SMTP id 586e51a60fabf-26891d46e12mr24568406fac.21.1723038780506; Wed, 07 Aug 2024 06:53:00 -0700 (PDT) MIME-Version: 1.0 References: <15AB8DDB-7D4B-4272-801F-F5DD84E829E6@thebuild.com> In-Reply-To: From: Ron Johnson Date: Wed, 7 Aug 2024 09:52:49 -0400 Message-ID: Subject: Re: data checksums To: Daniel Gustafsson Cc: Christophe Pettus , bruno vieira da silva , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000724b2c061f183a9a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000724b2c061f183a9a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 7, 2024 at 3:41=E2=80=AFAM Daniel Gustafsson = wrote: > > On 6 Aug 2024, at 18:29, Christophe Pettus wrote: > >> On Aug 6, 2024, at 08:11, bruno vieira da silva > wrote: > > >> the pg doc > >> mentions a considerable performance penality, how considerable it is? > > > > That line is probably somewhat out of date at this point. We haven't > seen a significant slowdown in enabling them on any modern hardware. I > always turn them on, except on the type of filesystems/hardware mentioned > above. > > The last in-depth analysis of data checksums (and hint bits) overhead tha= t > I > can remember is from 2019: > > > https://www.postgresql.org/message-id/20190330192543.GH4719%40development A quote from that post: "I have not investigated the exact reasons, but my hypothesis it's about the amount of WAL generated during the initial CREATE INDEX (because it probably ends up setting the hint bits), which puts additional pressure on the storage." Presuming that hypothesis is true: how often do "you" run CREATE INDEX (or VACUUM FULL or CLUSTER)? I certainly don't run them very often. --=20 Death to America, and butter sauce! Iraq lobster... --000000000000724b2c061f183a9a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Aug 7, 2024 at 3:41=E2=80=AFAM Da= niel Gustafsson <daniel@yesql.se&= gt; wrote:
> On 6 Aug 2024, at 18:29, Christophe Pettus <<= a href=3D"mailto:xof@thebuild.com" target=3D"_blank">xof@thebuild.com&g= t; wrote:
>> On Aug 6, 2024, at 08:11, bruno vieira da silva <brunogiovs@gmail.com> wr= ote:

>> the pg doc
>> mentions a considerable performance penality, how considerable it = is?
>
> That line is probably somewhat out of date at this point.=C2=A0 We hav= en't seen a significant slowdown in enabling them on any modern hardwar= e.=C2=A0 I always turn them on, except on the type of filesystems/hardware = mentioned above.

The last in-depth analysis of data checksums (and hint bits) overhead that = I
can remember is from 2019:

=C2=A0 https://www.postgres= ql.org/message-id/20190330192543.GH4719%40development
=
A quote from that post:
"I have not= investigated the exact reasons, but my hypothesis it's about
the amount of WAL generated during the initial CREATE IND= EX (because it
probably ends = up setting the hint bits), which puts additional pressure
on the storage."
=C2= =A0
Presuming that hypothesis is true: how often do "you&quo= t; run CREATE INDEX (or VACUUM FULL or CLUSTER)?=C2=A0 I certainly don'= t run them very often.

--
Death to America, and butter sauce!
Iraq lobster...
--000000000000724b2c061f183a9a--