Re: LOG_BUFFER

  • From: "Ram Cheruvattath" <ram.cheruvattath@xxxxxxxxx>
  • To: <gogala.mladen@xxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 20 May 2016 08:26:25 -0400

Thanks Mladen. I have see these too when researching some of the redo log 
related parameters. Specifically, I was looking to see if there was a way to 
influence how lgwr decides how many workers will be used. I couldn't find any 
documentation either. 

Ram


From: Mladen Gogala 
Sent: Wednesday, May 18, 2016 9:35 PM
To: oracle-l@xxxxxxxxxxxxx 
Subject: Re: LOG_BUFFER


On 05/17/2016 02:59 PM, Ram Cheruvattath wrote:

  Hi

  We have a 12c database that has very high redo generation (4TB/hr). Our 
log_buffer is set to 1GB. 

  Is there a downside to setting log_bugger this big? 

  Thanks
  Ram
Ram, we have talked about multi-threaded log writer in 12c few days ago. In the 
meantime, I did some digging and found some new undocumented parameters:


_adaptive_scalable_log_writer_enable_worker_threshold   Increase in redo 
generation rate as a percentage                                
_adaptive_scalable_log_writer_disable_worker_threshold  Percentage of overlap 
across multiple outstanding writes                        
_adaptive_scalable_log_writer_sampling_count            Evaluate single versus 
scalable LGWR every N writes                             
_adaptive_scalable_log_writer_sampling_time             Evaluate single versus 
scalable LGWR every N seconds                            
_adaptive_scalable_log_writer_enable_worker_aging       Per million of redo gen 
rate when LGWR workers were last used                  Of course, there is 
nothing about these parameters on the support.oracle.com. The good, old times 
when it was possible to figure out how things work by digging through the 
Oracle support documents are a long gone era. However, I was able to dig out 
few things from Jonathan's site:

https://jonathanlewis.wordpress.com/2013/07/04/12c-trivia/
https://jonathanlewis.wordpress.com/2013/06/25/12c/

Not much more than we've already discussed, but still worth reading. I would 
expect multi-threaded writer to be able to cope with much larger buffers than 
we have seen in 11G.  I don't think that in 12c having 1G log buffer is a bad 
idea. However, the only sign you will get that your log buffer is too small are 
log buffer space wait events in V$SYSTEM_EVENT. I guess that there is a feature 
called  "adaptive scalable log writer" which will appear in some kind of an 
internals book when people at Oracle Corp. decide do tell someone about it.

-- 
Mladen Gogala
Oracle DBA
Tel: (347) 321-1217

Other related posts: