[Date Prev][Date Next] [Chronological] [Thread] [Top]

ITS#5707 [Fwd: Re: 4.7.25 deadlock]



This is a multi-part message in MIME format.
--------------020600040008080504030403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

A patch from Oracle...

-------- Original Message --------
Subject: Re: 4.7.25 deadlock
Date: Thu, 25 Sep 2008 21:48:20 -0700
From: Howard Chu <hyc@symas.com>
To: Michael Ubell <@oracle.com>
References: <54E45A7F-A1BF-4FE1-A9F3-1DA7F320B81C@oracle.com>

Michael Ubell wrote:
> Howard,
>
> You are the second one to report this problem with user defined locks
> when there is a single lock partition.  You  can work around this on a
> single cpu system by just setting the number of lock partitions to be
> greater than 1.   This might have a slight performance impact.  Or you
> can apply the attached patch.

Thanks. That patch looks a lot like what I was using here... ;) Will
this be posted on the oracle web site soon? And yes, the workaround works ok
in the interim.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

--------------020600040008080504030403
Content-Type: application/octet-stream;
 name="patch.16415"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="patch.16415"

SW5kZXg6IGxvY2svbG9jay5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9hL0NWU1JPT1Qv
ZGIvbG9jay9sb2NrLmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEyLjYxCmRpZmYgLWMgLXIx
Mi42MSBsb2NrLmMKKioqIGxvY2svbG9jay5jCTIyIEp1bCAyMDA4IDEyOjA4OjUzIC0wMDAw
CTEyLjYxCi0tLSBsb2NrL2xvY2suYwkxOSBBdWcgMjAwOCAxNzoyODoyNCAtMDAwMAoqKioq
KioqKioqKioqKioKKioqIDEyNzgsMTI4NyAqKioqCiAgCQlTSF9UQUlMUV9SRU1PVkUoCiAg
CQkgIC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