Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1754006
  • 博文数量: 335
  • 博客积分: 4690
  • 博客等级: 上校
  • 技术积分: 4341
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-08 21:38
个人简介

无聊之人--除了技术,还是技术,你懂得

文章分类

全部博文(335)

文章存档

2016年(29)

2015年(18)

2014年(7)

2013年(86)

2012年(90)

2011年(105)

分类: DB2/Informix

2013-06-22 00:55:55

    上一篇博客主要介绍了CF cache的的功能,cache system的组成,cache structure的组成,以及cache structure 运行机制所涉及的相关概念。
 下面我们接着介绍CF cache的主要工作方式:

点击(此处)折叠或打开

  1. As a store-in cache
  2. As a store-through cache
  3. As a directory-only cache
针对这三种工作方式,我们一一进行介绍,介绍的流程:
工作原理,数据访问,cast out,灾难恢复。
store-in cache
工作方式:
数据可以写入cache structure,
cache user 在写数据的时候,只写入 cache structure,不会同步写入 permanent storage
stored-in user周期性的从cache structure 读取changed  data item,进行cast-out process。
数据访问: 
read :    local buffer pool -----> cf cache  ----> permanet storage 
write : user write changed data to cache structure 
cast out process  : take advantage of cast out class
recovery :
由于changed data会写入cache structure,一旦CF facility failure,cache structure中没有被cast out的data就会丢失,为了最小成都的较少损失,需要周期性的进行cast out
store-through cache
cache user可以将data 写入cache structure,但是在写入cache structure的同时,data会被永久的permanent storage
所以在何种状态下,数据都会保持一直。
数据访问: 
read :    local buffer pool -----> cf cache  ----> permanet storage
write: user write  data item to cf cache and permant storage at the same time
cast out process : no nessary 
recovery : no data lost
directory-only cache 
工作方式: cache user不能写入data item到cache structure,changed data就存放于dbm1的local buffer中,directory 仅提供一种信息的登记机制
数据访问: 
read :    local buffer pool  ----> permanet storage
write: user must write permanent storage ,and use cross-invalidation 来保证数据的一致性。
CAST OUT: No  necessary 
recovery: no data lost and just directory entry info
二 讨论一下cache structure 的allocation  :
首先cache structure的size大小是第一个user在第一次进行IXLCONN的时候,才分配,至于分配的大小是在CFRM policy 中定义的。
ref: 
mvs  sysplex  services guide


阅读(2121) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~