Skip to main content

readahead_files

Function readahead_files 

Source
pub fn readahead_files(paths: &[&Path])
Expand description

Issue readahead hints for a list of file paths to warm the page cache. Uses POSIX_FADV_WILLNEED which is non-blocking and batches efficiently. Only issues hints for files >= 1MB; small files are read fast enough that the fadvise syscall overhead isn’t worth it.