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 1uQRND-00Azjc-Qv for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Jun 2025 13:56:43 +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 1uQRNB-008cg5-P0 for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Jun 2025 13:56:42 +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 1uQRNB-008cfx-Fe for pgsql-hackers@lists.postgresql.org; Sat, 14 Jun 2025 13:56:42 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uQRN9-0021pY-2s for pgsql-hackers@lists.postgresql.org; Sat, 14 Jun 2025 13:56:41 +0000 Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-86cf9f7abc4so237268139f.2 for ; Sat, 14 Jun 2025 06:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749909397; x=1750514197; 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=BbAJgMAHnaeOBlronzAbLNLPM8haig4LNiEy9s5k2qQ=; b=QaTm9pKf8QDgeBEXM7o9HbsyHTD7LDsgFXS7QogPPV5v9Ki0c6+lumNGp3EsOEV+vj mLyqeKn46nasT9KaJXYkSJF3qUsgwxu45eLCeGbwhR4UqXj43cT/DCBG+fWV236kCD+h gCLVt6WayxAmGDA3iTEHhXL1WFywuKGHdvdIsBWct0nztAmyygmK6ncfpUGQwsD3iG2D sN7f3f6Ce/YVAbY/iSlj3R+q9eKc8bcYssAqPJEXj0jm+9jxPlOQyxA3HH8qvQfsiot7 nPcu4dVpHSW0wpfwzNiasA9M9XvYpP4fQGc41RnW4nNomboM+l5E69M16vKrehOSOW+k yTFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749909397; x=1750514197; 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=BbAJgMAHnaeOBlronzAbLNLPM8haig4LNiEy9s5k2qQ=; b=aarknGTrORKwgE43t+TJLJoFoGEXjgX5Nn7q/ayjlk1LvlePT+M8EfBNCHvjMkFZdY sewxhOezPtW/fFJRtABVAuVv5aazKTzjc/B6iKffZ9Kwh1hyWHaqW90qkRurk9uuaxCO cP/vBiN9aQuZqGk8HcZg5RJvn8t/vFgynjokRlvXiTKxpmIT/TID63lWUEwMxUmfjJqK QWQuOKGUVQD7GD63huO8ZFpXez2ReXhYrDuqAVB4meFgys23bDXQSgrQpx/wmKaWYZcu 4qPBu3rHEmEWJp2RqIDMFHrs0cnRDarmBAn82ku38gKzymTCLWL3N7PZj9Ud8csvpW6H GEZA== X-Forwarded-Encrypted: i=1; AJvYcCWj1pV50CdCrd37ZkcH0jvF7nMsoRHuK7iVwW/gcsIKXyMixyeGYoyizNV9mtBT++x5jf4MflLpaSm/NHey@lists.postgresql.org X-Gm-Message-State: AOJu0Yw9ttNdkbzv7edgx2XV9wzvXEVANo8X2dJJkd0L1k4vy4hKWIdA ftCWP/fZpmztWr0dWdUmDEUIg/sCGqQ+jTSiGfModvxEsaSn8mMr5w7t X-Gm-Gg: ASbGncsmTAKOWk6stMqeQ/rO4O4yHCwGROKVd18Adq/nOAXDrj38OQcpkTqSVtQROSs X+FNgajaf30Yz0ley+1F6L+jYjSgtU6QHAg2iy2cJ9xyilQyXQRr9MNIzAIieY40ACvAq8PI+Zy ifNpsGIppeANkjTtYCT1Nu8EYIGGUtokdgF5y4IzmaLvm4BJkYtOgBJzWLjhIxOe+o6hXCc79UE 7DbFGsFuTAW5i52R+cw9K8FUM+A98u1GwsFdtolBpgpwumRsj5Z3XsEUYXJGwcg+vaoFGnQqiBX Pu90SAhzX+T8Wh+MXjl2va6LymUh6z/7rCUan14GbDiXefq5Rn39zKbsbFkVGzVylZHJ7iZbtQz XW6cq5rIxxVI6FK07w0AjNjFSzTi/fPrnMFhz4iLtwjxFBazBpb/A X-Google-Smtp-Source: AGHT+IEnZwrB+us69TWd3GSdUFqQfwB4vH5PPyZbRoiaCot4m6HEmzPkEMIkkpbSlikw2ocNLpLqFg== X-Received: by 2002:a05:6602:60c2:b0:864:4890:51e4 with SMTP id ca18e2360f4ac-875dedebb04mr361873539f.14.1749909397536; Sat, 14 Jun 2025 06:56:37 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-875d570f54fsm79055839f.10.2025.06.14.06.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Jun 2025 06:56:36 -0700 (PDT) Date: Sat, 14 Jun 2025 08:56:34 -0500 From: Nathan Bossart To: Tomas Vondra Cc: Andy Fan , John Naylor , "Devulapalli, Raghuveer" , "pgsql-hackers@lists.postgresql.org" , "Shankaran, Akash" Subject: Re: Improve CRC32C performance on SSE4.2 Message-ID: References: <87o6uqd3iv.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 Sat, Jun 14, 2025 at 03:47:33PM +0200, Tomas Vondra wrote: > I suggest you try with a newer gcc, perhaps 13.4. There's been a bunch > of fixes related to AVX512 since 13.0, chances are this was already > fixed. I don't see this failure on 14.3.1. From the config.log, it looks like Andy is using clang: configure:3998: clang --version >&5 clang version 18.1.6 (https://gitee.com/mirrors/llvm-project.git 1118c2e05e67a36ed8ca250524525cdb66a55256) And I see -O0 used, too, which would match the existing report [0], although that report is for clang 19.1.7. I'm also genuinely curious why folks are using -O0... [0] https://postgr.es/m/CAE-ML%2B-OV6p9uvCFBcSQjZUEh__y0h-KjN%2BBseyGJHt7u8EP%2Bw%40mail.gmail.com -- nathan