版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、The cache mechanism in H-Storeassumption: data wont fit in memory disk-resident data, main memory buffer pool for execution concurrency is a must transaction serialization and locksDBMS buffer pooldistributed cachein-memory DBMSmust still maintain buffer pool lock/latch data maintain ARIES-style rec
2、overy logsquestion: What is the overhead of all these things?fast and scalable, butkey-value interfacenot ACID (AI, not CD)H-Store Architecture partitioned, shared-nothing single-threaded main memory execution no need for locks and latcheslightweight recovery snapshots + command logbig: disk-oriente
3、dfast: memory-orientedbig and fast: anti-cachingasynchronous disk fetches dont blockmaintain ordering of evicted data accesses ensures transactional consistencysingle copy of data consistency is freeefficient memory use, no swizzlingmemory is primary storage, cold data is evicted to disk-based anti-
4、cachereading data from the anti-cache is done in 3 phases avoids blocking, ensures consistencyBlock Table This is a hash table that maintains the blocks of tuples that have been evicted from the DBMSs main memory storage.Evicted Table The Evicted Table keeps track of the tuples that have been writte
5、n out to blocks on disk. DBMS updates any indexes containing evicted tuples to reference the Evicted Table.LRU Chain: Lastly, H-Store also maintains an in-memory list of all the tuples for each table in LRU order.Evict 1. data anti-cache threshold 2. dynamically construct anticache blocks of coldest
6、 tuples 3. asynchronously write to diskpre-pass 1. a transaction enters pre-pass when evicted data is accessed 2. continues execution, creating list of evicted blocks 3. abort, queue blocks to be fetchedFetch 1. data is fetched asynchronously from disk and avoids blocking 2. moved into merge bufferM
7、erge 1. data is moved from in-memory merge buffer to in-memory table. Block-merging or Tuples-merging 2. previously aborted transaction is restarted 3. transaction executes normallydone online, more responsive to changes in workloadgoal is low CPU and memory overheadapproximate ordering is OKmaintain LRU chain embedded in tuple headersper-partitiontransactions that update LRU chain are sampled randomly configurable sample ratefine-grained evictionblocks constructed dynamicallyasynchronous batched fetchespossible because of transactionsdata exists in exactly one location caching archi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 食品车间防鼠防蝇设施清洗消毒和维修保养制度
- 2026年综合体育知识题库及答案
- 气溶胶灭火装置检修规程
- 2026年湖南省岳阳市网格员招聘考试备考题库及答案解析
- 2026年自贡市自流井区网格员招聘笔试参考题库及答案解析
- 2026年辽宁省铁岭市网格员招聘考试参考题库及答案解析
- 2026年大庆市大同区网格员招聘笔试备考试题及答案解析
- 2026年贵州省网格员招聘考试备考题库及答案解析
- 2025年省直辖行政单位神农架林区网格员招聘考试试题及答案解析
- 2026年渝中区南岸区网格员招聘笔试备考题库及答案解析
- 硅酸钙板吊顶安装技术交底(标准范本)
- 新疆是个好地方 课件(内嵌音视频) 2025-2026学年二年级音乐下册人音版(简谱)
- 2026黑龙江广播电视台(黑龙江省全媒体中心)(第二次)招聘事业单位编制人员51人考试参考题库及答案解析
- 安全生产“六化”建设指导手册解读培训
- 2026年工业数据集联合开发标注与封装标准
- 我国首个人形机器人与具身智能标准体系(2026版)全文深度解读
- (正式版)DB61∕T 2058-2025 《米脂谷子良种繁育技术规范》
- GB/T 5159-2025金属粉末(不包括硬质合金用粉) 与成型和烧结有联系的尺寸变化的测定方法
- 2025内蒙古呼和浩特市北兴产业投资发展有限责任公司猎聘高级管理人员2人备考历年题库附答案解析
- 少突胶质瘤的护理
- 雨污分流工程竣工验收汇报
评论
0/150
提交评论