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 1uRXBW-00D2Ic-70 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jun 2025 14:21:10 +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 1uRXBU-00A96J-AR for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jun 2025 14:21:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uRXBU-00A95h-0Z for pgsql-hackers@lists.postgresql.org; Tue, 17 Jun 2025 14:21:08 +0000 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uRXBS-002VU8-1m for pgsql-hackers@lists.postgresql.org; Tue, 17 Jun 2025 14:21:07 +0000 Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-3ddd1cf40cfso20146665ab.1 for ; Tue, 17 Jun 2025 07:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750170066; x=1750774866; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jfeP2FzzOOy4FloNWP1t28BXy2+Ru4lSLOiyQMXYbBg=; b=NTxUlnzlN8RsI+h/eNr0mzqi/O9rY0fHWGvUap0LAvom4tDH64WEQjjSsUAZMH8ct9 HREz+lNNqW18SiIcqwyx/eic9hXTOp/3S7N8mmvGIX2NXZNLoV0MOWWJ9+GBX9E5Wc3l ke8LQ8i9D3prE8qxivI6EhKfxPaN5Ox7phobuqshOFCFU3tsxh2W7Ev6OwT0mLwEdb/o 6j4GTPPFU7joMzQI0QRUqB7msYrNS/leVo7KoDLo3I6ZGOMN6hlZOOt2Qscr2yIUTsfa oxR6fAdt07q8PW08xLFxaqlS0jddJj5fPoal6qxrXf1OgRnVwuONT+ZDJjlOlCekhQu/ EBIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750170066; x=1750774866; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jfeP2FzzOOy4FloNWP1t28BXy2+Ru4lSLOiyQMXYbBg=; b=nQWytYYG+V3Bsvz0njOcMjnn0VvV+NpcYEiE4VaIybJFLJ3QRet6sU6Rp4rJeHHzhG 7kcgLKYMQe5bt2cf/vrCQmGZ7mYp6QFbLWFVkktQCjy1JPy/b9aVFa+M/emVAZnwyjoX kcCwsaJfjtg1jwo0K/4e3hF3gMFDglUHEC5RsewZxVME5cVSgvcKGPvhDh5aUaHBqxRf 9/oe7eBtaUl9brvnTl4yDwcER4AyrnA6DL+lPS7whFjfKs7KC+Gzlqf83RWJhUEmDC9o VJ4TPAKOOrd9y24Peys9/OGXG3/vE3gVpZaiACie7tDhC54iWh9I/na4pxLp0V4hZ1/S 5udA== X-Forwarded-Encrypted: i=1; AJvYcCWTQW/n2JGdkujNkolb2aDALXlr6/aXI+RCwtujicMXiR7nco/y/ngtomnGvlkTBEF0vwGHa05gJip2R4Bd@lists.postgresql.org X-Gm-Message-State: AOJu0YyFGnAiAM4u447YFPVb2FoYxN5XuvhEYc0jgLZ5GJlFNZvmUJCV qsT4CJDAICtvijCrwp6nX7feOh300vzIrVi/e6xPzGc+/KieZGVEX7iX X-Gm-Gg: ASbGncsbHnaPGuKZuk35GnjQsP6Z4x87xAo8uOM7zRT8KqeTMV78DuRPml5ybyi4IUv W7pKTLt8irv1d8arX4D6v1WLjhpQsuQCmQgpeEsp83nEvP360jHB/IaAVEjd4QD2qaI7+qQV6t2 3jsq7iOBhv/KLbSRBqO5iSf4sSAJCnPslnqaJpq4PayQ5JAt+JAfsZ6L2cDfKO1yTMQcpcF8ezY QMb4q04C9z/H1eulrz2GLTkR27nFGAS51YqVtHkNeMNosr5jcwEDLvv1Kp2qWSQPles1R38l41m 907ExCq8M3M97gB6DPKl1GIUM5zyOT73U39gPOo9vT7JsWErIgBkBtLcT60JHJBA5oZT38nhZDt TkwckHnuvSnfM8ZeLOahMx8NzGsl8i1eCQBHFl9lQyoIdXUSz5/XZ X-Google-Smtp-Source: AGHT+IHc5N3daG1Knb5xdxWJRclL+C31fQgkevdRu13hggvt/o7OtRaWH2/YrIyxRqoA3yCzMz3LgA== X-Received: by 2002:a05:6e02:168b:b0:3dc:7cc1:b731 with SMTP id e9e14a558f8ab-3de07c21db4mr142937625ab.0.1750170065701; Tue, 17 Jun 2025 07:21:05 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-50149b7ad3dsm2235196173.16.2025.06.17.07.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jun 2025 07:21:05 -0700 (PDT) Date: Tue, 17 Jun 2025 09:21:03 -0500 From: Nathan Bossart To: John Naylor Cc: Andy Fan , "Devulapalli, Raghuveer" , Jesper Pedersen , Tomas Vondra , "pgsql-hackers@lists.postgresql.org" , "Shankaran, Akash" Subject: Re: Improve CRC32C performance on SSE4.2 Message-ID: References: <029f0848-8bc2-4d99-aebd-345949f97622@gmail.com> <87frg1dc3k.fsf@163.com> <87bjqncl24.fsf@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jun 17, 2025 at 03:55:06PM +0700, John Naylor wrote: >> "Devulapalli, Raghuveer" writes: >> > Replacing that with _mm512_zextsi128_si512 fixes the problem. > > Here's a patch for testing, which also reverts the previous > workaround. Help welcome, but I still promise to test it in the near > future regardless. LGTM -- nathan