针对文件系统日渐显著的复杂性,提出要对复杂文件系统进行管理以优化应用程序对文件系统的访问,改善文件系统的性能,基于LD_PRELOAD技术设计并实现了一种用于文件管理系统的轻量级方法,并阐述和分析了该方法的关键技术和实现.采用系统提供的内建环境变量,加载用户态钩子、实现管理机制及其动态控制.通过对比测试表明:与传统基于FusE(用户态文件系统)框架的文件系统管理方法相比,该方法在同等环境下具有显著的性能优势.
Owing to the complexity of the contents and functionalities of file system, the file system must be managed as a key method for improving file system performance. Based on system build-in enironment variable, user-space hook can thus be applied to realize the management mechanism and dynamic control. A lightweight LD_PRELOAD-based file system user-space managemen method were designed and implemented. Compared the experiment with FUSE (filesystem in userspace), the method is improved obviously the same workloads.