引用本文: | 邹彦良,殷树.Linux虚拟文件系统层的路径检索加速.[J].国防科技大学学报,2024,46(2):215-223.[点击复制] |
ZOU Yanliang,YIN Shu.Accelerating path lookup in virtual file system of Linux[J].Journal of National University of Defense Technology,2024,46(2):215-223[点击复制] |
|
|
|
本文已被:浏览 3153次 下载 1708次 |
Linux虚拟文件系统层的路径检索加速 |
邹彦良1,2,3,殷树1 |
(1. 上海科技大学 信息科学与技术学院, 上海 201210;2. 中国科学院上海微系统与信息技术研究所, 上海 200050;3. 中国科学院大学, 北京 100049 )
|
摘要: |
为解决 Linux 内核传统路径检索日益凸显的开销问题,提出Staged Lookup以加速路径检索,通过动态缓存热目录来减少文件访问的时延。Staged Lookup的核心在于缓存频繁使用的目录项,从而避免从根节点重复遍历路径。不同于从根结点开始的检索操作, Staged Lookup扩展了搜索策略,允许从最近缓存的目录项向后或向前进行路径检索。在Linux内核版本3.14和5.4上部署Staged Lookup的原型,并开展实际系统测试。实验数据显示,相比于传统的路径检索方式,Staged Lookup能实现高达46.9%的性能提升。 |
关键词: 路径检索 虚拟文件系统 内核 目录缓存 性能 |
DOI:10.11887/j.cn.202402022 |
投稿日期:2021-12-10 |
基金项目:中国博士后科学基金资助项目(2015M572708);上海科技大学启动基金资助项目(2017F020300001) |
|
Accelerating path lookup in virtual file system of Linux |
ZOU Yanliang1,2,3, YIN Shu1 |
(1. School of Information Science and Technology, ShanghaiTech University, Shanghai 201210, China;2. Shanghai Institute of Microsystem and Information Technology, Chinese Academy of Sciences, Shanghai 200050, China;3. University of Chinese Academy of Sciences, Beijing 100049, China)
|
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. |
Keywords: path lookup virtual file system kernel directory cache performance |
|
|
|
|
|