Stage Lookup:使用目录快捷方式加速路径搜索
Stage Lookup: Accelerating Path Lookup using Directory Shortcuts
摘要:
Linux中的查找过程花费了相当大一部分文件访问时间,因为虚拟文件系统(VFS)会逐个遍历文件路径组件。当应用程序频繁访问文件时,查找过程会变得更加耗时,特别是那些小文件。我们提出了阶段缓存,动态缓存流行的目录,以加快查找过程,并进一步减少文件访问延迟。Stagelead的核心是将常用的dentry缓存为快捷方式,这样路径遍历就不必从根目录遍历目录树。此外,Stage XPath丰富了向后路径遍历,因为它将VFS中的目录树视为无向映射。我们实现了一个阶段的原型,并将其集成到Linux内核v3.14。我们广泛的性能评估研究表明,阶段搜索提供了高达46.9%的性能增益相比,普通的路径查找方案。此外,与内核的原始方法相比,Stage P2P在重命名和chmod操作中显示出更小的性能开销。
英文摘要:
The lookup procedure in Linux costs a significant portion of file accessing time as the virtual file system (VFS) traverses the file path components one after another. The lookup procedure becomes more time consuming when applications frequently access files, especially those with small sizes. We propose Stage Lookup, which dynamically caches popular directories to speed up lookup procedures and further reduce file accessing latency. The core of Stage Lookup is to cache popular dentries as shortcuts, so that path walks do not bother to traverse directory trees from the root. Furthermore, Stage Lookup enriches backward path walks as it treats the directory tree in a VFS as an undirected map. We implement a Stage Lookup prototype and integrate it into Linux Kernel v3.14. Our extensive performance evaluation studies show that Stage Lookup offers up to 46.9% performance gain compared to ordinary path lookup schemes. Furthermore, Stage Lookup shows smaller performance overheads in rename and chmod operations compared to the original method of the kernel.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。