[Fwd: Bug#149056: postgresql: should not try in a busy loop when allocating resources] - Mailing list pgsql-hackers

From Oliver Elphick
Subject [Fwd: Bug#149056: postgresql: should not try in a busy loop when allocating resources]
Date
Msg-id 1023226478.22175.4429.camel@linda
Whole thread Raw
Responses Re: [Fwd: Bug#149056: postgresql: should not try in a busy loop when allocating resources]  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
This report was submitted as a Debian bug.

-----Forwarded Message-----

From: russell@coker.com.au
To: submit@bugs.debian.org
Subject: Bug#149056: postgresql: should not try in a busy loop when allocating resources
Date: 04 Jun 2002 23:06:35 +0200

Package: postgresql
Version: N/A
Severity: normal

When trying to create a semaphore Postgresql 7.2.1-3 will try 400,000 times per
second if it has problems.  I think this is excessive, trying a mere 100 times
a second will give the same chance of getting a good result without wasting
excessive CPU time.

NB  If another process which is CPU bound is using all the resources then
leaving CPU time free will improve the results...

-- System Information
Debian Release: 3.0
Kernel Version: Linux lyta 2.4.18lsm #1 Wed May 22 14:20:37 CEST 2002 i686 unknown

-----End of Forwarded Message-----

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
    "But without faith it is impossible to please him; for      he that cometh to God must believe that he is, and
thathe is a rewarder of them that diligently seek      him."       Hebrews 11:6  

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: non-standard escapes in string literals
Next
From: Lincoln Yeoh
Date:
Subject: Re: non-standard escapes in string literals