一种针对块内日志存储模型的缓冲区管理方法  被引量:4

A Buffer Management Algorithm for In-page Logging Storage Schema

在线阅读下载全文

作  者:卢科[1] 金培权[1] 岳丽华[1] 

机构地区:[1]中国科学技术大学计算机学院安徽省通信与软件重点实验室,合肥230027

出  处:《小型微型计算机系统》2013年第5期1021-1027,共7页Journal of Chinese Computer Systems

基  金:国家自然科学基金重点项目(60833005)资助

摘  要:闪存的擦后写特性,使其对小粒度随机更新为主的数据库应用,存在较大的更新时延.基于块内日志的存储管理模型提出了一种使用日志的方法,有效地解决了该问题.但是由于没有考虑数据访问的冷热特性,使得热擦除块合并操作非常频繁,同时它们采用的强制日志刷新策略导致闪存日志区存在严重的碎片问题.针对上述问题,本文提出一种基于数据冷热检测的双链表缓冲区算法DLPA,它根据数据的访问特性动态地分配日志页大小,可以有效减少擦除块合并操作,同时在日志刷新至闪存时,结合两种日志打包策略,有效地改善了日志区碎片问题.实验显示,该算法在增加少量存储开销的前提下,显著地优于现有算法.The erase-before-write characteristic of flash memory results in unacceptable update latency for small-sized random updates dominant database applications, like on-line transaction process. Some researchers have proposed an in-page logging approach to solve this problem. It flushes the update logs instead of the data pages themselves to flash when a physical write needs to be performed. But they do not consider the data access pattern. So some hot blocks will trigger a merge operation very frequently. At the same time, the mandatory log flushing strategy leads to serious fragmentation on the flash log region. In this paper, we present an effective buffer management algorithm called DLPA. It detects the data access pattern and dynamically allocates the log pages in the buffer. When the log pages are to be flushed, we perform a log padding operation to improve the log utilization of the log region. To verify our algorithm, we simulate a flash storage platform and run a series of TPC-C benchmark tests. The experiment results show our approach outperforms other solutions almost in all cases especially when the trace is skewed.

关 键 词:闪存 数据库 动态分配 缓冲区管理 日志打包 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象