- 8
- 0
- 约6.98千字
- 约 19页
- 2019-05-24 发布于广东
- 举报
VFS hot tracking
Development Overview
October 19, 2013
Linux is a registered trademark of Linus Torvalds.
Agenda
● Background
● Methodology
● Internals
● Performance
● Status Next
● References
Background
● Problem:
– SSD disks has high IOPS(Input/Output Per
Second) and low capability, while
traditional disks has opposite peculiarities.
– Some data are highly accessed, while some
are rarely.
● Vision:
– Place hot data on fast disks as far as
possible.
– Defrag hot files as first as possible
● Proposal:
– Trace and detect hot data on the filesystem
– Relocate hot data to fast disks
– Defrag the files based on hot information
How to track?
● Track real disk I/O access, not I/O hit in page
cache
● Track accessed inodes and its ranges whose
granularity is 1 MegaByte
● The key is
– ino → inode
– offset → range
● Track each read/write on I/O path, including
buffered and direct mode
How to find hot spots?
● Each hot item is stored in
– Inserted into rb_tree
– Linked to hot map list
● Each hot item is indexed in two ways
– One by ino or offset in rb_tree, used to
quickly update data access frequency
– One by temperature in hot map array, used
to quickly lookup hot spots
● One delayed worker is queued periodically to
update the temperature of each hot item, and
move it to irresponding hot map list based on
its temperature.
Data Structures
Structure Relationship
Record I/O access info
Start
您可能关注的文档
最近下载
- IPC国际电子部件协会电子组件IPC-7711 7721 C版维修手册.pdf
- IPC-7711D-7721D-中文版 CN 2024 电子组件的返工、修改和维修标准.pdf VIP
- 北师大版初中数学初一下册全书知识点讲义(提高).docx
- 实验05 空气中氧气含量的测定【同步实验课】2023-2024学年九年级化学上册教材实验大盘点(人教版).docx VIP
- 调制叶绿素荧光的基本原理.pdf VIP
- 夜间施工安全保障措施及专项施工方案.docx VIP
- 2025年新版煤矿安全规程电子版.doc VIP
- 叶绿素荧光成像系统操作手册.docx VIP
- 北师大版初中数学初一年级上册册全书知识点讲义.pdf VIP
- 调制叶绿素荧光成像系统——M系列IMAGING-PAM.DOC VIP
原创力文档

文档评论(0)