Unix Technical Forum

Re: 7.3.8 under FC3 takes excessive semaphores?

This is a discussion on Re: 7.3.8 under FC3 takes excessive semaphores? within the pgsql Hackers forums, part of the PostgreSQL category; --> "Mark Cave-Ayland" <m.cave-ayland@webbased.co.uk> writes: > I'm trying to install a copy of PostgreSQL 7.3.8 on FC3 x86_64, and having ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 03:32 AM
Tom Lane
 
Posts: n/a
Default Re: 7.3.8 under FC3 takes excessive semaphores?

"Mark Cave-Ayland" <m.cave-ayland@webbased.co.uk> writes:
> I'm trying to install a copy of PostgreSQL 7.3.8 on FC3 x86_64, and having a
> very strange problem with shared memory in that PostgreSQL seems to be
> taking far too many semaphores for the parameters in the postgresql.conf
> file.


Judging by the symptoms, you have built a version with what we now call
--disable-spinlocks; that is, it didn't figure out how to do assembly
TAS on your platform and fell back to using SysV semaphores for spinlocks.
Quite aside from the drain on semaphores, the performance is going to
be spectacularly bad, so you'd better fix that.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 03:34 AM
Mark Cave-Ayland
 
Posts: n/a
Default Re: 7.3.8 under FC3 takes excessive semaphores?


> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: 31 January 2005 16:35
> To: Mark Cave-Ayland
> Cc: pgsql-hackers@postgresql.org
> Subject: Re: [HACKERS] 7.3.8 under FC3 takes excessive semaphores?


(cut)

> Judging by the symptoms, you have built a version with what
> we now call --disable-spinlocks; that is, it didn't figure
> out how to do assembly TAS on your platform and fell back to
> using SysV semaphores for spinlocks. Quite aside from the
> drain on semaphores, the performance is going to be
> spectacularly bad, so you'd better fix that.
>
> regards, tom lane



Hi Tom,

I'd just about managed to come to the same conclusion before your email
arrived by spending the afternoon with gdb tracing into the LWLock code

I've just installed 7.4.6 on the same box and this time the spinlocks are
correctly picked up and everything works as expected. I think rather than
fixing the 7.3.x source, we'll take the plunge and plan for a complete dump
and restore of the database cluster over a weekend.


Many thanks,

Mark.

------------------------
WebBased Ltd
South West Technology Centre
Tamar Science Park
Plymouth
PL6 8BT

T: +44 (0)1752 791021
F: +44 (0)1752 791023
W: http://www.webbased.co.uk




---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 03:35 AM
Bruce Momjian
 
Posts: n/a
Default Re: 7.3.8 under FC3 takes excessive semaphores?

Mark Cave-Ayland wrote:
>
> > -----Original Message-----
> > From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> > Sent: 31 January 2005 16:35
> > To: Mark Cave-Ayland
> > Cc: pgsql-hackers@postgresql.org
> > Subject: Re: [HACKERS] 7.3.8 under FC3 takes excessive semaphores?

>
> (cut)
>
> > Judging by the symptoms, you have built a version with what
> > we now call --disable-spinlocks; that is, it didn't figure
> > out how to do assembly TAS on your platform and fell back to
> > using SysV semaphores for spinlocks. Quite aside from the
> > drain on semaphores, the performance is going to be
> > spectacularly bad, so you'd better fix that.
> >
> > regards, tom lane

>
>
> Hi Tom,
>
> I'd just about managed to come to the same conclusion before your email
> arrived by spending the afternoon with gdb tracing into the LWLock code
>
> I've just installed 7.4.6 on the same box and this time the spinlocks are
> correctly picked up and everything works as expected. I think rather than
> fixing the 7.3.x source, we'll take the plunge and plan for a complete dump
> and restore of the database cluster over a weekend.


And with 7.4 and later we will throw a configure error if we don't find
native spinlocks so you will have no surprises in the future.

--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:11 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com