Linux虚拟文件系统层的路径检索加速
Accelerating path lookup in virtual file system of Linux
邹彦良 1殷树2
作者信息
- 1. 上海科技大学信息科学与技术学院,上海 201210;中国科学院上海微系统与信息技术研究所,上海 200050;中国科学院大学,北京 100049
- 2. 上海科技大学信息科学与技术学院,上海 201210
- 折叠
摘要
为解决 Linux内核传统路径检索日益凸显的开销问题,提出Staged Lookup以加速路径检索,通过动态缓存热目录来减少文件访问的时延.Staged Lookup的核心在于缓存频繁使用的目录项,从而避免从根节点重复遍历路径.不同于从根结点开始的检索操作,Staged Lookup扩展了搜索策略,允许从最近缓存的目录项向后或向前进行路径检索.在Linux内核版本 3.14 和5.4 上部署Staged Lookup的原型,并开展实际系统测试.实验数据显示,相比于传统的路径检索方式,Staged Lookup能实现高达46.9%的性能提升.
Abstract
To solve the increasingly prominent cost of traditional path lookup strategy in the Linux kernel,Staged Lookup was proposed to accelerate path lookup by dynamically caching hot directories to reduce file access latency.The essence of Staged Lookup lay in caching frequently used directory entries,thus avoiding the repetitive traversal of paths from the root node.Unlike the retrieval operations that start from the root node,Staged Lookup expanded the search strategy to allow for forward or backward path lookup from the most recently cached directory entry.A prototype of Staged Lookup was deployed on Linux kernel versions 3.14 and 5.4 and subjected to real system tests.Experimental data indicates that Staged Lookup can achieve performance improvements of up to 46.9%compared to traditional path lookup methods.
关键词
路径检索/虚拟文件系统/内核/目录缓存/性能Key words
path lookup/virtual file system/kernel/directory cache/performance引用本文复制引用
基金项目
中国博士后科学基金(2015M572708)
上海科技大学启动基金(2017F020300001)
出版年
2024