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 1qvOn6-004wtc-Hz for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Oct 2023 21:18:20 +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 1qvOn5-00DRoU-4N for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Oct 2023 21:18:19 +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 1qvOn4-00DRoM-Qw for pgsql-hackers@lists.postgresql.org; Tue, 24 Oct 2023 21:18:18 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qvOmx-002X5K-B1 for pgsql-hackers@lists.postgresql.org; Tue, 24 Oct 2023 21:18:18 +0000 Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-3573e6dd79bso17470995ab.2 for ; Tue, 24 Oct 2023 14:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698182289; x=1698787089; 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=rvT6NDfv1zckJxwakl0HjFbqrOFAtEystWkqWSmb2ZE=; b=h4JXClOUkTXbI2dKkzEMIPwq2S+O+DbI+65SuIv4atp0asDKbGRssq3qornbZV5IiH GRkejHp06J+nO1FnWunHBwwHiIwTdGIlbBl73fR9dPtHoURBlcPkmc0oafIlaeaC2ScM dQgMcBMZxxAatlJ+4GWvWqjfchq+8ibEfvSFpTO1+fWx4a4BP1i32sJzq9TDfp82kclT zniriaoSlyL4yqq1tkHZ8IR3wW2QNAw34B9CKjx/CiS/WDqCS8F4kOuHNRqBKkinX/yU zEWI2PqRYZZEThxJA1H4pC33Vg+MrG1nVSeCdv9fT8FCQ2SA28CkhYkxgd4aboIm7Yh2 cH2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698182289; x=1698787089; 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=rvT6NDfv1zckJxwakl0HjFbqrOFAtEystWkqWSmb2ZE=; b=r08nMoNw9I+WMr8l2CNRTp7pcDvinY44EP741oWMQbhSO8kELY9AJd5jSkMJwOPqn0 w+5oQajnX5Z0aXfECuKudQpzAPDK9RII7pkQ139lc97biDrMKJsaSKSrv8ch2EpzjDvn 71+Z28uF6DiwOMLsn6yUtpendDEVJTo29kaPSha2v+EUTWwWoC2RyL+2TYlCKpGT80co FCNa46q6FFFFfKd3YXQPYPViuJZMHVWykI2PdzHOPtlPqUjScyF31DQYYrlXQ62KrOYn ZvFbm39U8zSGA7bujA2meiAxbLdxPiFGNwBZgX3w5re2yzQsJg//Wo/2+Tlmtoyf0hND 1gKA== X-Gm-Message-State: AOJu0YzudGxVWKNNIrq5MbHM6HLlxxSrtI4SeeO04UKv/zwZxsJ93Ho7 hd75+9s+SakLcEcvhzpYBZU= X-Google-Smtp-Source: AGHT+IF7a+KGiC/RvsFJy/2AD/o5Wnh5uDxXqhe7udkM/QLBUCF7LYSY0XTxznAx5CYylLwz3gGlDQ== X-Received: by 2002:a05:6e02:1b02:b0:357:677e:50e7 with SMTP id i2-20020a056e021b0200b00357677e50e7mr15206455ilv.27.1698182289012; Tue, 24 Oct 2023 14:18:09 -0700 (PDT) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id j13-20020a056e02014d00b0034f1cd8cb7esm3367799ilr.15.2023.10.24.14.18.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 14:18:08 -0700 (PDT) Date: Tue, 24 Oct 2023 16:18:06 -0500 From: Nathan Bossart To: Michael Paquier Cc: Xiang Gao , "pgsql-hackers@lists.postgresql.org" Subject: Re: CRC32C Parallel Computation Optimization on ARM Message-ID: <20231024211806.GA919080@nathanxps13> References: <20231024210954.GA918290@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231024210954.GA918290@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Oct 24, 2023 at 04:09:54PM -0500, Nathan Bossart wrote: > I'm able to reproduce the speedup with the provided benchmark on an Apple > M1 Pro (which appears to have the required instructions). There was almost > no change for the 512-byte case, but there was a ~60% speedup for the > 4096-byte case. > > However, I couldn't produce any noticeable speedup with Heikki's pg_waldump > benchmark [0]. I haven't had a chance to dig further, unfortunately. > Assuming I'm not doing something wrong, I don't think such a result should > necessarily disqualify this optimization, though. Actually, since the pg_waldump benchmark likely only involves very small WAL records, it would make sense that there isn't much difference. *facepalm* -- Nathan Bossart Amazon Web Services: https://aws.amazon.com