互联网服务

缓冲池的疑问

看牛博士的关于调优db配置参数的内容,关于缓冲池有很多疑问,希望高人帮们解释一下

书上说默认情况下应用程序使用缓冲池IBMDEFAULTBP,当 syscat.bufferpools目录表中该
缓冲池的NPAGES为-1时,DB2数据库配置参数BUFFPAGE控制着缓冲池的大小,否则会
忽略BUFFPAGE参数,并且用NPAGES参数指定的页数创建缓冲池。

以下是我的环境中buffpools的参数:
db2 "select bpname,npages,pagesize from syscat.bufferpools"

BPNAME                                NPAGES      PAGESIZE   
----------------------------------------------------------------------------------
IBMDEFAULTBP                           -2         4096
DB_BP32K                                  -2       32768
DB_LOG_BP32K                         -2       32768
参与10

9同行回答

wyoywwyoyw数据库管理员长信通
顶一下显示全部
顶一下收起
金融其它 · 2012-11-29
浏览1247
wkswwksw数据库管理员国外银行
当self tuning被激活时,相应bufferpool的npages就是-2牛博书上的这段话其实来自于SQL1482W的解释dv01 {/home/dhost} > db2 ? sql1482 SQL1482W  The BUFFPAGE parameter will only be used if one of the buffer      pools is defined w...显示全部
当self tuning被激活时,相应bufferpool的npages就是-2

牛博书上的这段话其实来自于SQL1482W的解释

dv01 {/home/dhost} > db2 ? sql1482


SQL1482W  The BUFFPAGE parameter will only be used if one of the buffer
      pools is defined with a size of -1.

Explanation:

This is a warning that the BUFFPAGE database configuration parameter
will be ignored if none of the database's buffer pools is defined with a
size of -1. -1 indicates that the buffer pool is to use the BUFFPAGE
parameter as the number of buffer pool pages.

User response:

You can select from the SYSCAT.BUFFERPOOLS to review the buffer pool
definitions. If none of the buffer pools are defined with size -1
(NPAGES), then setting the BUFFPAGE parameter will not change the size
of the buffer pools for the database.收起
金融其它 · 2012-10-25
浏览1293

提问者

zhjbenet
系统工程师zdou
擅长领域: 服务器存储灾备

问题状态

  • 发布时间:2012-10-25
  • 关注会员:1 人
  • 问题浏览:9422
  • 最近回答:2012-11-29
  • X社区推广