Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLMFV-0006JI-Uv for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Oct 2019 07:00:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLMFT-0001vK-Uo for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Oct 2019 07:00:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLMFT-0001v7-J7 for pgsql-bugs@lists.postgresql.org; Fri, 18 Oct 2019 07:00:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iLMFQ-0000Np-Uq for pgsql-bugs@lists.postgresql.org; Fri, 18 Oct 2019 07:00:30 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9I70N4A011651; Fri, 18 Oct 2019 03:00:24 -0400 From: Tom Lane To: Robert Henry cc: pgsql-bugs@lists.postgresql.org Subject: Re: postgres has no spinlock support on riscv rv64imafdc In-reply-to: References: Comments: In-reply-to Robert Henry message dated "Thu, 17 Oct 2019 12:08:58 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27500.1571382023.1@sss.pgh.pa.us> Date: Fri, 18 Oct 2019 09:00:23 +0200 Message-ID: <27501.1571382023@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Henry writes: > Building Postgres from scratch on the riscv board, no fancy cross > compilation, I get: > PostgreSQL does not have native spinlock support on this platform. To > continue the compilation, rerun configure using --disable-spinlocks. > However, performance will be poor. Please report this to > pgsql-bugs@lists.postgresql.org. The last we heard about RISC-V was this thread: https://www.postgresql.org/message-id/flat/20161119230312.GA8656%40redhat.com If things seem to work well now with --disable-spinlocks, maybe you could test the patch suggested in that thread. TBH, though, my preference would be for some assembly code rather than relying on GCC builtins as Richard's patch did. regards, tom lane