Rac 的GES/GCS原理6(图文解释cache fusion机制1)

 Rac 的GES/GCS原理6(图文解释cache fusion机制1)
Cache Fusion Examples
The following section contains examples of the different types of behaviors of the Cache Fusion
algorithm for block reads and updates. Each example will follow a single block as it is requested by
various instances for both shared and exclusive access.

cache fusion 举例
下面的场景将包含各种类型下cache fusion 算法针对块的读或跟新。每个例子将跟踪一个
数据块,看它被不同实例要求来做共享或专用访问的情况。


Example 1: Current Read with No Transfer
In the following examples, the database cluster consists of four instances, each of which has access
to a database on shared disk. The block is initially only in the database on disk. It is currently at SCN
1318 (Figure 22-1)


在下面的例子中,数据库群集包含有4个实例,每个实例都有访问共享存储上数据库的权限。
这个数据块最开始只存在于数据库的磁盘上。它的当前SCN为1318。

 


Instance 2 requests a current read of the block (Figure 22-2).
It first identifies the instance that is the resource master for the block by applying a hash function
to the database block address (DBA) of the resource. In this case, the resource master instance
is Instance 3. As Instance 2 only needs to perform a current read on the block, it sends a message to
Instance 3 requesting shared access to the block.
Instance 3 checks in the GRD and discovers that the block is not currently being accessed by
any instances. Therefore, Instance 3 immediately grants shared access on the block to Instance 2
(Figure 22-3).

实例2要求读这个数据块。
首先实例2将寻找这个数据块的资源属主,通过资源属主应用hash函数来找到资源的数据块地址。
在我们的例子中,数据块的资源属主是实例3。因为实例2仅仅只需要做一个对数据块的当前读,
它首先发送一个消息给实例三,要求对数据块做一个共享访问。

实例三将首先检查GRD,实例三发现这个数据没有被任何实例所访问。因此,实例三将立即
把数据块的共享访问权限赋予实例二。

 

 


Instance 2 issues a system call to read the block directly from the database (Figure 22-4). The
block is currently at SCN 1318.
The block is returned from disk and a current version is stored in the buffer cache (Figure 22-5).
The SCN is still 1318.

实例2发起一个系统调用,直接从数据库读取数据块。这个数据块的SCN 在1318。
数据块从磁盘返回,而它的当前版本储存在buffer cache中,当前的版本SCN也是1318。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值