From: | "Leandro Medina" <lmedina(at)ingdesi(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Tegge, Bernd" <tegge(at)repas-aeg(dot)de> |
Cc: | <pgsql-ports(at)postgresql(dot)org> |
Subject: | Re: lock in qnx rtp. |
Date: | 2001-05-30 20:19:09 |
Message-ID: | 005601c0e945$e17b8e00$8f01010a@odi2001 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
Hi Bernd,
I find the solution for one problem, but others appear. Why spinlock
doesn't works with FIFO or RR scheduling?
Thanks,
Leandro Medina
(Ingdesi Group - R&D)
----- Original Message -----
From: "Tegge, Bernd" <tegge(at)repas-aeg(dot)de>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>; "Leandro Medina" <lmedina(at)ingdesi(dot)com>
Cc: <pgsql-ports(at)postgresql(dot)org>
Sent: Monday, May 28, 2001 6:37 AM
Subject: Re: [PORTS] lock in qnx rtp.
> At 16:30 23.05.01 -0400, Tom Lane wrote:
> >"Leandro Medina" <lmedina(at)ingdesi(dot)com> writes:
> > > I'm porting posgresql for QNX RTP. Compiling is ok, but
> > > "/usr/local/pqsql/bin/initdb -D data" command say:
> >
> > > FATAL: s_lock(0x081e6029) at spin.c:162, stuck spinlock. Aborting.
> >
> >Hm. The existing QNX spinlock functions do work for some people.
> >Is the slock_t datatype declared correctly for your platform in the
> >port header file?
> Just to throw in my $0.02 :
>
> - from the source snippet it looks like it is using semaphores for
> spinlocks. This is one of the quirks that my patch corrected. See
> http://www.ca.postgresql.org/mhonarc/pgsql-ports/2001-05/msg00069.html
> and
> http://www.ca.postgresql.org/mhonarc/pgsql-ports/2001-05/msg00078.html
> Without it 7.1 failed with a similar problem on QNX4.
>
> - RTP is probably more different from QNX4 than Solaris 2 from SunOS 4,
> so code that works on QNX4 may fail on RTP. It is much closer to
> modern unices and supports shared libraries, elf executables, etc. .
> AFAIK no SysV IPC interface, though. The RTP version could be much
> more fully featured that the QNX4 version.
>
> - QNX (both versions) is a RTOS. If you were to use RR or FIFO
> scheduling, spinlocks probably won't work.
>
>
> > regards, tom lane
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tegge, Bernd | 2001-05-31 07:49:47 | Re: lock in qnx rtp. |
Previous Message | Joël Brogniart | 2001-05-30 08:49:03 | bad libpq.a generation on Mac OS X 10.0.3? |