RE: Untested Developer Code - lack of concurrency testing

  • From: "Bobak, Mark" <Mark.Bobak@xxxxxxxxxxxx>
  • To: kyle Hailey <kylelf@xxxxxxxxx>, "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Tue, 12 May 2009 11:21:15 -0400

Poorly designed locking strategies...stuff that leads to enqueue waits and 
potentially deadlocks, will only be seen when running under concurrent load.

Similar to your NL join hammering root node of an index, is a case where you 
have query that does FTS on a table that's small enough that no one notices, 
and performance is acceptable with one user.  Under concurrent load, 
performance tanks due to buffer busy waits.  (One session is reading block, 
others all queue up behind it when the read is happening.)

I'll see if I can think of others....

-Mark
-----Original Message-----
From: kyle Hailey [mailto:kylelf@xxxxxxxxx] 
Sent: Tuesday, May 12, 2009 11:12 AM
To: oracle-l@xxxxxxxxxxxxx
Subject: Untested Developer Code - lack of concurrency testing

with one user and it runs fine and then gets put into production and
only to hit a huge performance snafu.   I'm putting together a demo on this 
kind of situation and was
thinking of some examples. One example that came to mind is a Nesedt
Loops join that hammers the root node of an index. Might work fine for
one user, but when multiple users start running it, the query runs
into cache buffers chains latch issues with the high concurrency
access to the index's root block which might be resolved by doing a
hash join or moving the lookup table to a hash cluster for example.   Wondering 
if anyone else had good examples of developer code that
worked fine with one user and broke in the multi user production
environment.
X-archive-position: 17586
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@xxxxxxxxxxxxx
Errors-to: oracle-l-bounce@xxxxxxxxxxxxx
X-original-sender: kylelf@xxxxxxxxx
Precedence: normal
Reply-to: kylelf@xxxxxxxxx
List-help: <mailto:ecartis@xxxxxxxxxxxxx?Subject=help>
List-unsubscribe: <oracle-l-request@xxxxxxxxxxxxx?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@xxxxxxxxxxxxx?Subject=subscribe>
List-owner: <mailto:steve.adams@xxxxxxxxxxxx>
List-post: <mailto:oracle-l@xxxxxxxxxxxxx>
List-archive: <//www.freelists.org/archives/oracle-l>
X-list: oracle-l

Best
Kyle Hailey

http://oraclemonitor.com/
--
//www.freelists.org/webpage/oracle-l




--
//www.freelists.org/webpage/oracle-l


Other related posts: