Does Oracle 11g’s Result Cache Scale Poorly?

Posted in: Technical Track

In my previous blog entry, I explained why I would expect Result Cache not to scale well. Unfortunately, at the time that blog entry was written, I had no access to hardware with more than two cores. That left me in an everything-but-the-proof state. “Theory without practice is sterile.” ©Albert Einstein.

Since then, I got a chance to re-run my test cases on a quad-core CPU, moving one step forward.

I re-executed my test cases with one to four processes against the Buffer Cache and the Result Cache in order to capture the number of lookups per second. I raised number of iterations to 1M to make the results more stable though.

Here is what I got:

# of processesBuffer Cache% linearResult Cache% linear

133613100%35398100%
26521097.00%6875297.11%
39643295.63%9970193.89%
412430192.54%12783690.28%

Both approaches demonstrate almost linear scalability, with Result Cache being slightly faster in all cases. The single latch problem is either non-existent, or four processes are not enough to saturate the latch. In order to clarify this, I collected a table with latch wait times as well:

# of processesBuffer Cache: CBC latches (ms)Result Cache: Latch (ms)% per process

1000
204210.00036%
30223930.01861%
401184540.10214%

You can spot the important data there. Although Result Cache: Latch waits are still very insignificant, they were growing very rapidly — at a rate greater than the factorial. The reason I didn’t notice those is that, on a quad-core box with four concurrent processes, those waits are still too small to produce any major effect on results.

Interested in working with Alex? Schedule a tech call.

3 Comments. Leave new

Result_cache blocking « OraStory
November 12, 2008 12:28 pm

[…] http://www.pythian.com/blogs/660/does-oracle-11gs-result-cache-scale-poorly Possibly related posts: (automatically generated)Oracle/Memory […]

Reply
Alex Fatkulin
April 4, 2011 7:09 pm

I know, I’m the one who wrote both of these articles.

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *