Optimize Arm64 crc32c implementation in Postgresql - Mailing list pgsql-hackers

From Yuqi Gu
Subject Optimize Arm64 crc32c implementation in Postgresql
Date
Msg-id HE1PR0801MB1323D171938EABC04FFE7FA9E3110@HE1PR0801MB1323.eurprd08.prod.outlook.com
Whole thread Raw
Responses Re: Optimize Arm64 crc32c implementation in Postgresql
Re: Optimize Arm64 crc32c implementation in Postgresql
List pgsql-hackers

Hi all

 

Currently PostgreSQL only implements hardware support for CRC32 checksums for the x86_64 architecture.

Some ARMv8 (AArch64) CPUs implement the CRC32 extension which is implemented by inline assembly,

so they can also benefit from hardware acceleration in IO-intensive workloads.

 

I would like to propose the patch to optimize crc32c calculation with Arm64 specific instructions.

The hardware-specific code implementation is used under #if defined USE_ARMCE_CRC32C_WITH_RUNTIME_CHECK.

And the performance is improved on platforms: cortex-A57, cortex-A72, cortex-A73, etc.

 

I'll create a CommitFests ticket for this submission.

Any comments or feedback are welcome.

 

BRs,

Yuqi

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Attachment

pgsql-hackers by date:

Previous
From: Edmund Horner
Date:
Subject: Re: [HACKERS] PATCH: psql tab completion for SELECT
Next
From: Michael Paquier
Date:
Subject: Re: Optimize Arm64 crc32c implementation in Postgresql