性能调优学习笔记(五)

Dynamic Instance Resizing
一、动态SGA特征
二、动态SGA的分配单位
三、粒度(Granule)[@more@]

Dynamic Instance Resizing
一、动态SGA特征
1、实现了在不关闭数据库的情况下配置SGA
2、大小受SGA_MAX_SIZE参数控制
二、动态SGA的分配单位
1、在动态SGA模式, 分配单位名称为粒度(granule).
2、监控视图--v$buffer_pool
列说明:
. id: Buffer pool identifying number
. name: Buffer pool name
. block_size: Block size for buffers in this component
. resize_state: Current state of the resize operation (values Static, Allocating, Activating, or Shrinking)
. current_size: Present size of the pool in megabytes
. buffers: Current instantaneous number of buffers
. target_size: New size, in bytes, is shown if a resize is in progress; if the pool is Static then the current size is shown.
. target_buffers : New size, in buffer, is shown if a resize is in progress; if the pool is Static then the current size is shown.
. prev_size: Previous buffer pool size
. prev_buffers: Previous number of buffers
. lo_bnum, hi_bnum, lo_setid, hi_setid, set_count: Obsolete columns

提示:Take the size in bytes and divide by the buffer size of the relevant cache to work out the
number of buffers in the cache.
三、粒度(Granule)
1、大小
粒度的大小取决于估算SGA的大小:
如果估算SGA<=128M,那么粒度大小为4M;否则粒度大小为16M。
内存分配时,大小都是粒度的整数倍(四舍五入)
2、数据库启动时的粒度分配
a、请求获取SGA_MAX_SIZE指定的内存大小
b、每个组件得到被分配的粒度
c、最少sga配置使用3个粒度:1、用于fixed SGA (includes redo buffers);2、用于缓存;3、用于共享池
3、给组件增加粒度
show parameter db_cache_size;
alter system set db_cache_size=8M;
db_cache_size的大小不能设置为0;
db_cache_size大小与SHARED_POOL_SIZE大小互斥,相加小于SGA_MAX_SIZE。
注意:修改大小时要以M为单位,否则会进行四舍五入。
4、当粒度不被使用时,可以减少粒度。通过v$buffer_pool查看状态

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/594892/viewspace-964678/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/594892/viewspace-964678/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值