Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ5c4-0007nM-Gc for pgsql-general@arkaria.postgresql.org; Wed, 10 Jan 2018 01:55:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ5c3-0007jr-SK for pgsql-general@arkaria.postgresql.org; Wed, 10 Jan 2018 01:55:31 +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 1eZ5c3-0007jb-AR for pgsql-general@lists.postgresql.org; Wed, 10 Jan 2018 01:55:31 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eZ5c0-0005Tz-D5 for pgsql-general@lists.postgresql.org; Wed, 10 Jan 2018 01:55:30 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0460D2094D; Tue, 9 Jan 2018 20:55:27 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 09 Jan 2018 20:55:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=BL3hYc DwJTMD/+2ynsZMSL1rc3q77MchPOXSYtfOFFw=; b=saN0tDL8EZYX8FbYQQLuhx cG/gIFdAtGMEuck5Nu9hHkBGthev607oF2bAqK7etXwUY8TIf5AeikfazbUpRKEo 7MvNMxIxMhwosoqi47/P8VcL8eKcOOUOAxNXgt/v2PnDN45rCIvti4GDb82wUiHy Lex0AC8cglWRoT+iEr5x8nQ8/aLnFOLDT4iDntBjUd/jtOvAYVJyrHknFAAYjFOF AW7qYw8EoorzAJQ2vIjBTnJdAQAyaA6MKkFHyNZLYdunNnTrdsXU3cWEbwD6jwbh yWSc9kM37E/Dk4AzMPO4gNTY67Sx94nOtHqGMdSAke7WYhA/o1G3Ofhr31QPILag == X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id B4F4F24235; Tue, 9 Jan 2018 20:55:26 -0500 (EST) Date: Tue, 9 Jan 2018 17:55:25 -0800 From: Andres Freund To: Andreas Joseph Krogh Cc: pgsql-general@lists.postgresql.org Subject: Re: Sv: Re: Sv: Re: Sv: Re: Sv: Re: data-checksums Message-ID: <20180110015525.orxpcm7qlo7nt7ro@alap3.anarazel.de> References: <20180110000126.wfq3dwpwjt2kpgsz@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-01-10 01:31:58 +0100, Andreas Joseph Krogh wrote: > På onsdag 10. januar 2018 kl. 01:01:26, skrev Andres Freund >: > On 2018-01-10 00:25:08 +0100, Andreas Joseph Krogh wrote: > > But SIMD-instructions are also HW-accellerated by modern CPUs IIUC? > > Sure. Still measurable, but even if weren't, it's irrelevant given my > primary point: > > >  The checksum computations have some impact, but if there's bigger impact > >  it's much more likely to be related to the fact that some hint bit > >  writes to a page now needs to be WAL logged. > > which isn't mitigated by SIMD / hardware CRC / whatnot. >   > Aha, so enabling CRC causes hint-bits to be written causing extra WAL-logging, > which woudn't be the case without CRC enabled? > Thanks for pointing that out. Well, enabling checksums enables that. CRCs don't play a role for data checksums. CRCs are a specific class of checksums, a specific one of those is used in our WAL logging, but the data checksum algorithm isn't in that class. Greetings, Andres Freund