|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/root/usr/share/doc/readahead-1.3/ |
Upload File : |
INTRODUCTION ------------ readahead reads a list of files in advance and adds the pages to the page cache. The files are accessed and read in an efficient manner to minimize disk seeks. Best performance is achieved on an ext2 or ext3 file system. The program will read a new-line separated list of files from a text file. The files need not be in any special order. The following algorithm is used to minimize the amount of disk head movement: 1. Sort the file list by path. 2. open(2) and stat(2) each file. The first data block of each file is retrieved from the corresponding inode. If there are multiple hits in a single ext2 block group, the corresponding inode table is read in a single batch. 3. Sort the file list again, this time by first block. 4. Iterate through the list again, calling readahead(2) for each file. BUILDING -------- The e2fsprogs and e2fsprogs-devel packages are required to build and run the program. Ziga Mahkovec <ziga.mahkovec@klika.si>