关于修改 commit_write 提升性能的一点理解
来源:互联网 发布:vb计算机编程基础知识 编辑:程序博客网 时间:2024/06/09 17:05
10g R2:commit_write
OptionEffectWait(default)Ensures that the commit returns only after the corresponding redo information is persistent in the online redo log. When the client receives a successful return from this COMMIT statement, the transaction has been committed to durable media.
A failure that occurs after a successful write to the log might prevent the success message from returning to the client, in which case the client cannot tell whether or not the transaction committed.
NowaitThe commit returns to the client whether or not the write to the redo log has completed. This behavior can increase transaction throughput.
BatchThe redo information is buffered to the redo log, along with other concurrently executing transactions. When sufficient redo information is collected, a disk write to the redo log is initiated. This behavior is called group commit, as redo information for multiple transactions is written to the log in a single I/O operation.
Immediate(default)LGWR writes the transaction's redo information to the log. Because this operation option forces a disk I/O, it can reduce transaction throughput.以上来自于Online Document,如果你不关心ACID的D(持久性),也就是不关心instance crash后丢失数据的风险,完全可以采用nowait,但我目前没有见过系统使用该参数,都为默认值.
当 改变原来 post wait or polling 机制后,设置commit_write=Batch,Nowait
Post/wait, traditional method for posting completion of writes to redo log
LGWR explicitly posts all processes waiting for the commit to complete.
The advantage of the post/wait method is that sessions should find out almost immediately when the redo has been flushed to disk.
Polling, a new method where the foreground process checks if the LGWR has completed the write.
redo log io 类型由原来的大量小IO ,变成了少量大IO 。log file sync 等待时间会明显减少,一方面是减小了对IO 子系统的压力;另一方面也是oracle 内在 维护 redolog 写 方面的latch 成本大大减少。对CPU 的开销也有一定的减少,从而也对oracle 的 每一次syscall 提升了性能。
- 关于修改 commit_write 提升性能的一点理解
- (原创)IMS性能提升的一点经验
- 关于整型类型提升的一点说明
- 关于技术提升的一点思考
- 关于StrutsFormBean 的一点理解
- 关于Action的一点理解
- 关于闪光灯的一点理解
- 关于fourcc的一点理解
- 关于typedef的一点理解
- 关于SaaS的一点理解
- 关于malloc的一点理解
- 关于卷积的一点理解
- 关于图标的一点理解
- 关于Preference的一点理解
- 关于OO的一点理解
- 关于bfc的一点理解
- 关于指针的一点理解
- 关于HandlerLeak的一点理解
- java基础知识总结(一)
- int *const 和 int const*的区别 (指针 和 const)
- python3 入门 (四) 类与继承
- Magento SUPEE 6788 技术细节
- unix环境高级编程-------socket(套接字)
- 关于修改 commit_write 提升性能的一点理解
- win7宿主机访问linux 虚拟机的tomcat、nginx
- Map的4中遍历
- 同步和互斥
- 10.29NOIP模拟总结
- iOS开发之前言
- SQL Server中查询语句sql等SQL Server2008
- 防sql注入解决方法
- TreeSet类对象的比较