`
wsql
  • 浏览: 11810283 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

11.17号------7.2.3 Interpreting and Using the Buffer Cache Advisory Statistics的翻译

 
阅读更多

7.2.3 Interpreting and Using the Buffer Cache Advisory Statistics

解释和使用高速缓存报告的统计值.

There are many factors to examine before considering whether to increase or decrease the buffer cache size. For example, you should examineV$DB_CACHE_ADVICE data and the buffer cache hit ratio.

在考虑是否增加还是减少高速缓存的大小有许多因素需要检查.比如,你应该检查v$db_cache_advice视图的数据和高速缓存的命中率.

A low cache hit ratio does not imply that increasing the size of the cache would be beneficial for performance. A good cache hit ratio could wrongly indicate that the cache is adequately sized for the workload.

一个很低的命中率增加缓存的的大小并不意味着能提高性能.一个很好的命中率可能会被错误的缓存有足够的工作量.

To interpret the buffer cache hit ratio, you should consider the following:

解释缓存的命中率,你应该解释如下:

  • Repeated scanning of the same large table or index can artificially inflate a poor cache hit ratio. Examine frequently executed SQL statements with a large number of buffer gets, to ensure that the execution plan for such SQL statements is optimal. If possible, avoid repeated scanning of frequently accessed data by performing all of the processing in a single pass or by optimizing the SQL statement.

  • 重复的扫描同样大表或索引可以人为的提高缓存的命中率,检查,重复的执行sql语句得到大量的缓存数量.确保执行sql性能是最理想.如果可能 ,避免重复扫描频繁访问的数据进行通过在一个单一的处理或优化SQL语句。

  • If possible, avoid requerying the same data, by caching frequently accessed data in the client program or middle tier.

  • 如果可能避免查询相同的数据,缓存经常访问的数据在客户端程序或中间层.

  • Oracle blocks accessed during a long full table scan are put on the tail end of the least recently used (LRU) list and not on the head of the list. Therefore, the blocks are aged out faster than blocks read when performing indexed lookups or small table scans. When interpreting the buffer cache data, poor hit ratios when valid large full table scans are occurring should also be considered.

  • 在一个长的完整表的扫描是成块存取的是lru的最后面的而不是放在列表的头.因此,当索引执行查找或小表扫描,块不会很快的被老化比块读.当对高速缓存中的数据进行解释时,可怜的命中率,有效的对大表进行扫描也应该被考虑.

    In any large database running OLTP applications in any given unit of time, most rows are accessed either one or zero times. On this basis, there might be little purpose in keeping the block in memory for very long following its use.

    在一个运行oltp的应用程序的 大型的数据库中在任何时间,绝大部分的行被使用一次或0次.在这个基础上,他们可能有很小的目的保持块在内存一段很长的使用时间.

  • A common mistake is to continue increasing the buffer cache size. Such increases have no effect if you are doing full table scans or operations that do not use the buffer cache.

    一个通常 的错误是继续增加高速缓存的大小,如果你在执行一个全表的扫描或操作增加是没有影响的,因为没有使用高速缓存.

7.2.3.1 Increasing Memory Allocated to the Buffer Cache
增加高速缓存的内存分配

As a general rule, investigate increasing the size of the cache if the cache hit ratio is low and your application has been tuned to avoid performing full table scans.

作为一个一般的规则,如果缓存的命中率很低和你的应用需要避免对一个表的执行全表扫描,可以考虑增加缓存的大小.

To increase cache size, first set theDB_CACHE_ADVICEinitialization parameter toON, and let the cache statistics stabilize. Examine the advisory data in theV$DB_CACHE_ADVICEview to determine the next increment required to significantly decrease the amount of physical I/O performed. If it is possible to allocate the required extra memory to the buffer cache without causing the host operating system to page, then allocate this memory. To increase the amount of memory allocated to the buffer cache, increase the value of theDB_CACHE_SIZEinitialization parameter.

增大缓存的大小,首先设置db_cache_advice的初始参数为on ,并让缓存平稳,参考v$db_cache_advice视图中的数据来确认下一个内存增加量可以减少多少的I/O物理读,如果可能的话,而不会造成主机操作系统中的buffer cache所需的额外的内存大小,之后分配内存.想增大分配给buffer cache的内存大小,可以通过增加db_cache_size的初始的大小.

If required, resize the buffer pools dynamically, rather than shutting down the instance to perform this change.

如果需要,动态调整buffer pool的大小,而不是在关闭实例的时候执行该操作.

Note:

When the cache is resized significantly (greater than 20 percent), the old cache advisory value is discarded and the cache advisory is set to the new size. Otherwise, the old cache advisory value is adjusted to the new size by the interpolation of existing values.

注意:

当缓存的很明显的被调整(大于20%),旧的缓存报告值将被丢弃,缓存将被设置成新的大小.否则,旧的缓存值被调成新的大小,通过插入现有的值.(不太明白,呵呵)

TheDB_CACHE_SIZEparameter specifies the size of the default cache for the database's standard block size. To create and use tablespaces with block sizes different than the database's standard block sizes (such as to support transportable tablespaces), you must configure a separate cache for each block size used. TheDB_nK_CACHE_SIZEparameter can be used to configure the nonstandard block size needed (wherenis 2, 4, 8, 16 or 32 andnis not the standard block size).

db_cache_size参数指定数据库默认标准块的大小.创建和使用表空间块的大小不同于数据库标准块的大小(比如可以传输的表空间),你必须配置一个单独的缓存为每个块大小的使用.db_nk_cache_size参数能够被配置不标准的块需要的大小(其中n 是2,4,8,16,和32,并且n不是一个标准的块大小 )


Note:

The process of choosing a cache size is the same, regardless of whether the cache is the default standard block size cache, theKEEP or RECYCLE cache, or a nonstandard block size cache.
注意:
改变缓存的大小是一样的.不管缓存是默认标准块大小的缓存,keep和recycle缓存,或不规则缓存块大小.

See Also:

Oracle Database Reference andOracle Database Administrator's Guide for more information on using theDB_nK_CACHE_SIZE parameters

7.2.3.2 Reducing Memory Allocated to the Buffer Cache

减少内存分配的高速缓存值

If the cache hit ratio is high, then the cache is probably large enough to hold the most frequently accessed data. CheckV$DB_CACHE_ADVICE data to see whether decreasing the cache size significantly causes the number of physical I/Os to increase. If not, and if you require memory for another memory structure, then you might be able to reduce the cache size and still maintain good performance. To make the buffer cache smaller,reduce the size of the cache by changing the value for the parameterDB_CACHE_SIZE.

如果缓存的命中率很高,很有可能缓存保存了最频繁访问的数据.检查V$db_cache_advice数据看否是否增加缓存的大小显著的增大了物理读的数量.如果没有,你可能要求内存为另外一个内存结服务,而仍然维持着很好的性能.改变高速缓存的大小,你可以通过改变db_cache_size的大小到减少缓存的大小.

分享到:
评论

相关推荐

    华为路由器安装手册

    7.5.11 1T1/2T1/4T1和1T1-F/2T1-F/4T1-F. 7-82 7.5.12 1CE3模块.. 7-87 7.5.13 1CT3模块.. 7-89 7.5.14 2FXS/2FXO/2E&M和4FXS/4FXO/4E&M.. 7-91 7.5.15 E1VI7-97 7.5.16 T1VI7-100 7.5.17 NDEC. 7-103 附录A...

    php72w-common-7.2.34-1.w7.x86-64.rpm

    php7 安装依赖

    Python库 | gpcam-7.2.3-py2.py3-none-any.whl

    资源分类:Python库 所属语言:Python 资源全名:gpcam-7.2.3-py2.py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    MIMO-OFDM Wireless Communications with MATLAB

    2.1.2 IEEE 802.11 Channel Model. 2.1.3 Saleh-Valenzuela (S-V) Channel Model. 2.1.4 UWB Channel Model. 2.2 Outdoor Channel Models. 2.2.1 FWGN Model. 2.2.2 Jakes Model. 2.2.3 Ray-Based Channel Model. ...

    mini2440用户手册

    友善之臂mini2440用户手册 第一章 Mini2440 开发板介绍...........................................................................................................................- 15 -  ...

    7.2.3-FGT_60E-v7.2.3.F-build1262-FORTINET.out

    7.2.3-FGT_60E-v7.2.3.F-build1262-FORTINET Fortigate 7.2.3 firmware 飞塔 下一代防火墙 7.2.3 更新固件

    7.2.3-FGT_80E-v7.2.3.F-build1262-FORTINET.out

    7.2.3-FGT_80E-v7.2.3.F-build1262-FORTINET Fortigate 7.2.3 firmware 飞塔 下一代防火墙 7.2.3 更新固件

    crash-7.2.3-11.el7.x86_64.rpm

    离线安装包,亲测可用

    Java DevelopmentDeveloping Games with the Game API

    5.2.3 -Filling the Tiled Layer cells ..................................................................................... 16 5.2.4 -Animated Tiles........................................................

    移动主叫流程

    7.2.3 Mobile originating call establishment with OACSU (Very early assignment).......... 7-6 7.3 异常流程..................................................................................................

    Hibernate Reference Documentation3.1

    11. Transactions And Concurrency 11.1. Session and transaction scopes 11.1.1. Unit of work 11.1.2. Long conversations 11.1.3. Considering object identity 11.1.4. Common issues 11.2. Database ...

    java学习笔记 初学者必读

    11. 十•The AWT Component Library 11-41 12. 十一•JFC(Java Foundation Classes) 12-41 13. 十二•Applets 13-41 14. 十三•线程Thread 14-41 14.1. 线程原理 14-41 14.2. 线程实现的两种形式 14-42 14.3. 线程...

    corejavaNoteBook

    11. 十•The AWT Component Library 11-41 12. 十一•JFC(Java Foundation Classes) 12-41 13. 十二•Applets 13-41 14. 十三•线程Thread 14-41 14.1. 线程原理 14-41 14.2. 线程实现的两种形式 14-42 14.3. 线程...

    redis-windows-7.2.3.zip

    Redis 是一个高性能的key-value数据库

    splunk-7.2.3-linux-x86_64.tar

    将splunkd复制到splunk安装目录的bin下,覆盖原先的文件,最后在页面导入splunk-enterprise.lic

    Iptables 中文指南

    6.5.11. RETURN target 6.5.12. SNAT target 6.5.13. TOS target 6.5.14. TTL target 6.5.15. ULOG target 7. 防火墙配置实例 rc.firewall 7.1. 关于rc.firewall 7.2. rc.firewall详解 7.2.1. 参数配置 ...

    splunk-7.2.3-06d57c595b80-linux-2.6-x86_64.rpm

    Splunk作为一款成熟的商业化日志处理分析产品无论在功能上还是用户体验上都是令人满意的,因splunk-7.2.3-06d57c595b80-linux-2.6-x86_64.rpm包过大超出了上传的权限范围,故将该安装包放在百度云中,下载地址在splunk-...

    ScaleRichView_v7.2.3.D4-XE10_x86-x64

    ScaleRichView_v7.2.3.D4-XE10_x86-x64

    C++标准库(第二版)英文版.pdf

    The C++ Standard Library A Tutorial and Reference (2nd Edition)+cppstdlib-code.zip C++标准库(第二版)英文版.pdf 非扫描版+源代码 Prefaceto the SecondEdition xxiii Acknowledgments for the Second...

Global site tag (gtag.js) - Google Analytics