Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ2bc-0004MI-NA for pgsql-general@arkaria.postgresql.org; Tue, 09 Jan 2018 22:42:52 +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 1eZ2bc-0008Cv-83 for pgsql-general@arkaria.postgresql.org; Tue, 09 Jan 2018 22:42:52 +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 1eZ2bb-0008Ck-Qn for pgsql-general@lists.postgresql.org; Tue, 09 Jan 2018 22:42:52 +0000 Received: from mail-pg0-x233.google.com ([2607:f8b0:400e:c05::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eZ2bZ-00013K-1Z for pgsql-general@lists.postgresql.org; Tue, 09 Jan 2018 22:42:50 +0000 Received: by mail-pg0-x233.google.com with SMTP id q12so9008244pgt.7 for ; Tue, 09 Jan 2018 14:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=zDgHPlpsjrqMYTZDdALcX8fU8mgK7v/VZJrq1qAhpC4=; b=LyM8SMjlcTTYnhx+bpSKdrNNNekTRGq/8OndQtuw4lcSDDYAQ/fuIlKo7hwNSxwPYS 9Y/n32x4Bi6FjV8bfk+nWh9lVyByjySnRPEa4cr/aNm8vDI6/5FM480jfIHlaUEniJ48 ykrrGaPGBOONDD5Q2cb/UFSPMGcha1euQmldAE39CNO3OQw0x8Dbs0GO5YJjciIDnkS3 T8RsLPtJGzpBi/U4JEUqPXf0YHP89dBUhXrZ46YYB1tovqL2AKcJoRhkPpP70RfqRA2A hNQcA5SWOegPgsl7d2Qwp+t1dzNQ+0TJgmo9nRF6Px+I/uDzG9DJNmo65RfSd1R5VauW iIeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=zDgHPlpsjrqMYTZDdALcX8fU8mgK7v/VZJrq1qAhpC4=; b=qawLQD0SiR0FofjZpDH9CCX4S/F/JydDKiF+QKpaFK0lWiFZQbM8rPztDcYWU/Fyia +DqaEBuQ3mneE+pYCwPP+9wuBPzhXfwhz2z8Qa8/ukvdA/7SjIaMy6RLy2xK6bBmZRqZ +gOjFGI6SoGRl1dwa3U3EJZ8l6bymkUF8pp7u6m4ovczN1Qa7yVsOWX5BK06BqGVLmbK 9pbWDxzhYM6luFptN/TtMqV2RJSd2Yq50EZTO5s5AstqZ6roAqAks/s3fEbGZxP7LCpb phsfE9+jGN7J5ILOHkpeTzX3OQ/Q5xxIIdXo07gR0xXu0DLoLyJ/v7YfkYGZISJ6JBlm Rsow== X-Gm-Message-State: AKGB3mIteTup87qWeYDRc1qmfxQxjQUAZw/+0o/wtY2KSK+dXVsF41TK yjLowYCNz4xC7KW617I40V2RMVVn X-Google-Smtp-Source: ACJfBouw795SPySfgqbvQoq+2mgQa2eqEyTHJ9fuPBcYhj6Bxzid9yWHDb6beK/GF6SUwp4+r/CnkA== X-Received: by 10.99.166.17 with SMTP id t17mr13644207pge.213.1515537767451; Tue, 09 Jan 2018 14:42:47 -0800 (PST) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id k89sm31700149pfb.104.2018.01.09.14.42.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jan 2018 14:42:46 -0800 (PST) Subject: Re: Sv: Re: Sv: Re: data-checksums To: pgsql-general@lists.postgresql.org References: From: Rob Sargent Message-ID: <5b2a7b5e-ee96-f4a7-754e-ef7d169c023e@gmail.com> Date: Tue, 9 Jan 2018 15:42:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------FA469FB80AA0CB5DFB4851B0" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------FA469FB80AA0CB5DFB4851B0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 01/09/2018 03:30 PM, Andreas Joseph Krogh wrote: > På tirsdag 09. januar 2018 kl. 23:06:06, skrev Andres Freund > >: > > Hi, > > On 2018-01-09 21:47:17 +0100, Andreas Joseph Krogh wrote: > > Does PG use HW-accellerated crc if CPU supports it[1]? > > Yes we do, for WAL checksums. The page checksums are a different > algorithm though, one which has the advantage of being SIMD > compatible. > > 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. > > But SIMD-instructions are also HW-accellerated by modern CPUs IIUC? > So, if these CRCs all are HW-accelerated the penalty chould be next to > neglishable? > Leading directly back to JD's proposed documentation update. --------------FA469FB80AA0CB5DFB4851B0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit



On 01/09/2018 03:30 PM, Andreas Joseph Krogh wrote:
På tirsdag 09. januar 2018 kl. 23:06:06, skrev Andres Freund <andres@anarazel.de>:
Hi,

On 2018-01-09 21:47:17 +0100, Andreas Joseph Krogh wrote:
> Does PG use HW-accellerated crc if CPU supports it[1]?

Yes we do, for WAL checksums. The page checksums are a different
algorithm though, one which has the advantage of being SIMD compatible.

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.
 
But SIMD-instructions are also HW-accellerated by modern CPUs IIUC?
 
So, if these CRCs all are HW-accelerated the penalty chould be next to neglishable?
 

Leading directly back to JD's proposed documentation update.
--------------FA469FB80AA0CB5DFB4851B0--