From: Richard W.M. Jones <rjones@redhat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: PostgreSQL cannot be compiled on RISC-V
Date: Sun, 20 Nov 2016 18:49:42 +0000
Message-ID: <20161120184942.GP11243@redhat.com> (raw)
In-Reply-To: <21733.1479664971@sss.pgh.pa.us>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: rjones@redhat.com, tgl@sss.pgh.pa.us
Subject: Re: PostgreSQL cannot be compiled on RISC-V
In-Reply-To: <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> <20161120184942.GP11243@redhat.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox