Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8XDZ-00055c-9N for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 18:51:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c8XDY-0001iw-EX for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Nov 2016 18:51:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c8XBc-0001dO-KQ for pgsql-bugs@postgresql.org; Sun, 20 Nov 2016 18:49:56 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c8XBT-0000ie-LV for pgsql-bugs@postgresql.org; Sun, 20 Nov 2016 18:49:56 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 533E5C0567A1; Sun, 20 Nov 2016 18:49:44 +0000 (UTC) Received: from localhost (ovpn-204-28.brq.redhat.com [10.40.204.28]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAKInhO4029842; Sun, 20 Nov 2016 13:49:43 -0500 Date: Sun, 20 Nov 2016 18:49:42 +0000 From: "Richard W.M. Jones" To: Tom Lane Cc: pgsql-bugs@postgresql.org Subject: Re: PostgreSQL cannot be compiled on RISC-V Message-ID: <20161120184942.GP11243@redhat.com> References: <20161119230312.GA8656@redhat.com> <16690.1479611287@sss.pgh.pa.us> <20161120150905.GO11243@redhat.com> <20161120173322.GA10475@redhat.com> <21733.1479664971@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21733.1479664971@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sun, 20 Nov 2016 18:49:44 +0000 (UTC) X-Pg-Spam-Score: -9.8 (---------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Sun, Nov 20, 2016 at 01:02:51PM -0500, Tom Lane wrote: > > I found that dialing MAX_CONNECTIONS down to 2 or 3 helps. > > Hmm, makes me wonder if the spinlock primitives actually work ... Yes, my thought too. With MAX_CONNECTIONS=1 only 5 tests fail, and reliably too: opr_sanity ... FAILED test errors ... FAILED psql_crosstab ... FAILED select_views ... FAILED largeobject ... FAILED (test process exited with exit code 2) ======================== 5 of 168 tests failed. ======================== > > What would be helpful is to get more detail on how the tests fail. I > > don't even know if it is the client or server side which fails > > (although I assume the server, because `psql' will exit with code 2 if > > it loses the network connection). Is there some way to run tests with > > lots of extra verbosity? > > Not directly, but I'd guess that the server processes are crashing and > leaving core dumps behind (or would be if you run under a suitable > ulimit). I checked this already and I don't think the server process is crashing, or if it is then it's not leaving coredumps around even though /proc/sys/kernel/core_pattern and the 'ulimit -c unlimited' ought to allow them. Maybe the tests or server process is adjusting ulimit? > Assuming that you've got working core dump support and gdb, > getting stack traces from some of the crashes would be useful info. Agreed. Unfortunately there's no gdb yet, and as above no core dumps in any case. > Also, if you can't tell from the server logs which core is which, > "p debug_query_string" is a good way to see the current SQL command > that a crashed process was working on. OK I will keep that in mind if we get gdb working. > Given that you seem to be pretty early in this process (ie a long > way from production grade), my feeling is that we should apply RISC-V > related fixes to HEAD only, meaning that they'd reach the field with > Postgres v10 next fall. For your own purposes, you could carry the > fixes as patches against 9.6.x, or work with snapshots of our master > branch. Yes no problems at all. I really wouldn't want anyone to entrust precious data to PostgreSQL on RISC-V at this point, so long schedules are fine :-/ Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs