Prefetch-Accelerate the execution speed of Linux software-Linux Enterprise Application-Linux server application information. The following is a detailed description. In fact, there are a lot of techniques for File Cache (readahead/prefetch) in Linux. Apart from the readahead mentioned earlier, there are also preload, bootcache/filecache and prefetch. (prelink is used to speed up loading of ELF shared libraries/executables, not the File Cache)
However, readahead only works when it is started. If it depends on tools such as preload for File Cache after it is started. However, the effect of scanning the system every few seconds with the user space daemon is not very good.
What attracts my attention is a program prefetch in SoC 2007.
Prefetch is a project that integrates the advantages and characteristics of the previous projects. The project integrates the kernel patch and userspace tools. The main feature of prefetch is to monitor the files needed to start various software, use the userspace tool to automatically update (dynamic profiling ).
For users, operations are much easier. You do not need to manually "educate" such as readahead or bootcache/filecache, and the efficiency is better than that of preload. Of course, compared with readahead, the actual method is also relatively lightweight and intelligent.
For technical details, refer to Krzysztof Lichota's proposal (Ubuntu Wiki) and briefing. The Prefetch source Code can be downloaded from Launchpad. The relevant files and documents are located at Google Code. In addition, Behdad Esfahbod's paper "Preload-An Adaptive Prefetching Daemon" is also worth your reference.
BTW and Krzysztof Lichota are also one-click installer developers.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.