_disable_streams_pool_auto_tuning

Posted By admin On 07.05.20
  1. Disable Windows Auto Tuning Level
  2. Disable Receive Window Auto Tuning

In his 22 years at Oracle, Tom Kyte started the Ask Tom question and answer site and was the site's sole proprietor for almost 15 years. In his spare time, he also wrote Expert Oracle Database Architecture (Apress, 2005, 2010, 2014) and Effective Oracle by Design (Oracle Press, 2003), among other books. Purpose: The 'undocumented' underscore parameters are parameters officially undocumented and unsupported by Oracle but that may be utilized, after receiving permission from Oracle Support to address specific issues such as bugs.

Apr 19, 2013 If you don’t use the automatic SGA (i.e. Set the sgatarget=0) - something I frequently do - and don’t use Streams, you probably have set the parameter streamspoolsize to 0 or not set it at all, since you reckon that the pool is used for Streams alone and therefore would be irrelevant in your environment wasting memory.

I compared the Database parameters with PROD DB running in XXDFFGPRDDB and I found the following differences. If we havesame resources and file system configuration in PROD and QA, and theissue only happens in QA, then we should change the parameters in QA to matchthose in PROD.
_disable_streams_pool_auto_tuning
Please get PM approval for changing the following parametersin QA to match those in PROD.
PROD DB in XXDFFGPRDDB
streams_pool_size = 512M
filesystemio_options = 'ASYNCH'

_disable_streams_pool_auto_tuning=TRUE ß this is a workaround forunpublished Bug 24560906 for EXPDP And IMPDP Slow Performance.
_optimizer_gather_stats_on_load=FALSE ß changed was made on Dec 1311:42:08 2016. this is a workaround for Bug 19695624 - ORA-600 [qctfrc :bfc] reported during online statistics gathering (Doc ID 19695624.8)
_disable_streams_pool_auto_tuning
_smu_debug_mode =33554432 ß changed was made on Jan 2008:31:26 2017 . this is a workaround for Bug 5387030 - Automatic tuningof undo_retention causes unusual extra space allocation (Doc ID5387030.8). The default value of _smu_debug_mode is 0.
_smu_debug_mode = 33554432”causes the v$undostat.tuned_undoretention to be calculated as
maxquerylen secs + 300

QA DB in XXDFFGQADB
streams_pool_size = 192M
filesystemio_options = 'SETALL'

I reviewed Things To Consider For Settingfilesystemio_options And disk_asynch_io (Doc ID 1987437.1) and found thefollowing information:
The parameter filesystemio_options controlswhether asynchronous and/or direct I/O is attempted for Oracle files availablethrough a file system. The parameter has no effect on disk accesses thatbypass the OS file system layer—such disk access always uses direct I/O. Raw files, files on ASM, files on the Veritas file system when accessed usingOracle Disk Manager (ODM), and files accessed using Direct NFS (dNFS) allbypass the file system layer, so this parameter is ignored in all such cases.
The following settings are available for this parameter:

Synchronous I/O
Buffered I/O
asynch
directIO

Our daily expdp backup job became abnormally and it would last more than one day, while in the past it just took about 40 minutes.

From the v$session view I found the expdp related processes were waiting for event 'Streams AQ: enqueue blocked on low memory', and I also found the export speed was very very slow even the exported tables were empty.

Food cooking game download. ,764000000,62,'Tilting Point','Hello Fatma, we sincerely apologize for the delay. Our team is constantly working on bringing out an exciting game location for our players.

Searched and got below notes:

EXPDP And IMPDP Slow Performance In 11gR2 and 12cR1 And Waits On Streams AQ: Enqueue Blocked On Low Memory (Doc ID 1596645.1)

The key information I got was this: If the size of the streams_pool is being modified, then this can result in excessive waits for 'Streams AQ: enqueue blocked on low memory'.
Every occurrence for this event causes a 1 minutes delay.

And the suggested actions could be easily executed were:

  1. Explicitly set the streams_pool_size to a fixed (large enough) value, 150 Mb or 300 Mb if needed. We had 40G SGA, so I updated it to 500M.
  2. Alter system set '_disable_streams_pool_auto_tuning'=TRUE. We modified it and when I checked and found the default value was TRUE, so in fact no need to modify it.

Three patches were mentioned and I found all of them already were included in the latest PSU, so maybe I just need to restart the instance to observe the result.

I could not restart it as it is a production database, so I tried to find more and got below notes:

Datapump Expdp Or Impdp Slowdown Due To Frequent Waits On ”Streams AQ: Enqueue Blocked On Low Memory' (Doc ID 2386566.1)

Two important information:

  1. Select shrink_phase_knlasg from X$KNLASG; Will return 1 if the stream pool is shrinking and return 0 if such action is finished.
  2. Alter system set events 'immediate trace name mman_create_def_request level 6'. Will force to complete the stream pool shrink.

I run the statement in step 1 and did get value 1. I was surprised as we set the stream pool to 500M one day before and we still in the shrink action.

So I run statement in step 2 to complete it and I did begin to get value 0.

I checked the wait event after that and I could not find such wait event, so I guessed the issue should be fixed. I tailed the log of the expdp job and found it finished already!

Disable Windows Auto Tuning Level

Log InRegisterLost ?

Please enter your username or email address. You will receive a link to create a new password via email.

Disable Receive Window Auto Tuning

Directory