首页 | 本学科首页   官方微博 | 高级检索  
   检索      

Linux虚拟文件系统层的路径检索加速
引用本文:邹彦良,殷树.Linux虚拟文件系统层的路径检索加速[J].国防科技大学学报,2024,46(2):215-223.
作者姓名:邹彦良  殷树
作者单位:上海科技大学 信息科学与技术学院, 上海 201210;中国科学院上海微系统与信息技术研究所, 上海 200050;中国科学院大学, 北京 100049
基金项目:中国博士后科学基金资助项目(2015M572708);上海科技大学启动基金资助项目(2017F020300001)
摘    要:为解决 Linux 内核传统路径检索日益凸显的开销问题,提出Staged Lookup以加速路径检索,通过动态缓存热目录来减少文件访问的时延。Staged Lookup的核心在于缓存频繁使用的目录项,从而避免从根节点重复遍历路径。不同于从根结点开始的检索操作, Staged Lookup扩展了搜索策略,允许从最近缓存的目录项向后或向前进行路径检索。在Linux内核版本3.14和5.4上部署Staged Lookup的原型,并开展实际系统测试。实验数据显示,相比于传统的路径检索方式,Staged Lookup能实现高达46.9%的性能提升。

关 键 词:路径检索  虚拟文件系统  内核  目录缓存  性能
收稿时间:2021/12/10 0:00:00

Accelerating path lookup in virtual file system of Linux
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.
Authors:ZOU Yanliang  YIN Shu
Institution:School of Information Science and Technology, ShanghaiTech University, Shanghai 201210, China;Shanghai Institute of Microsystem and Information Technology, Chinese Academy of Sciences, Shanghai 200050, China;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
点击此处可从《国防科技大学学报》浏览原始摘要信息
点击此处可从《国防科技大学学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号