调整LUR_old位置,放到八分之五位置,是新的,后八分之三是旧的512个页全变成新的,然后从后往前数,数到8分之3,设置为旧的/*******************************************************************//**Moves the LRU_...
分类:
其他好文 时间:
2015-11-24 22:04:06
阅读次数:
171
/******************************************************************//**Adds a block to the LRU list. Please make sure that the zip_size isalready set ...
分类:
其他好文 时间:
2015-11-24 21:09:28
阅读次数:
160
/******************************************************************//**Try to free a block. If bpage is a descriptor of a compressed-onlypage, the de....
分类:
其他好文 时间:
2015-11-24 01:08:17
阅读次数:
295
/******************************************************************//**Takes a block out of the LRU list and page hash table.If the block is compresse...
分类:
其他好文 时间:
2015-11-24 01:07:17
阅读次数:
325
/******************************************************************//**Try to free a replaceable block.@return TRUE if found and freed */UNIV_INTER...
分类:
其他好文 时间:
2015-11-24 01:04:34
阅读次数:
200
/******************************************************************//**Returns a free block from the buf_pool. The block is taken off thefree list. .....
分类:
其他好文 时间:
2015-11-24 00:59:29
阅读次数:
283
/******************************************************************//**Returns a free block from the buf_pool. The block is taken off thefree list. If...
分类:
其他好文 时间:
2015-11-24 00:55:03
阅读次数:
510
原文地址:http://www.360doc.com/content/13/0805/15/13247663_304901967.shtml参考地址(一系列关于缓存的,后面几篇也都在这里有):http://www.360doc.com/userhome.aspx?userid=13247663&ci...
分类:
编程语言 时间:
2015-11-11 11:17:12
阅读次数:
333
LRU是一种淘汰算法,淘汰那些最久没被访问过的节点,以提高cache命中率。网游后台cache server经常会用到。这里说一种O1算法。先明确两个操作相关的对象1. DataKey: cache数据的key2. IndexNode: 链表节点,内部有数据的indexlist(单向链表) 保存Da...
分类:
编程语言 时间:
2015-11-09 15:29:41
阅读次数:
220