Lines Matching refs:readahead
7 * functional test for readahead() syscall
9 * This test is measuring effects of readahead syscall.
10 * It mmaps/reads a test file with and without prior call to readahead.
56 return readahead(fd, offset, len);
61 /* Should have the same effect as readahead() syscall */
71 /* Use either readahead() syscall or POSIX_FADV_WILLNEED */
72 int (*readahead)(int fd, off_t offset, size_t len);
74 { "readahead on file", 0, 0, libc_readahead },
75 { "readahead on overlayfs file", 1, 0, libc_readahead },
146 * @do_readahead: call readahead prior to reading file content?
168 TEST(tc->readahead(fd, offset, fsize - offset));
177 tst_res(TINFO, "readahead calls made: %zu", i);
180 /* offset of file shouldn't change after readahead */
267 tst_res(TCONF, "readahead not supported on %s",
275 tc->use_fadvise ? "fadvise" : "readahead",
294 tst_res(TPASS, "readahead saved some I/O");
296 tst_res(TFAIL, "readahead failed to save any I/O");
309 * for readahead should be at least testfile_size/2
314 tst_res(TFAIL, "readahead failed to use any cache");
323 * The time consuming of readahead quite depending on the platform IO
332 if ((tc+1)->readahead)
338 * We try raising bdi readahead limit as much as we can. We write
393 /* check if readahead is supported */
399 tst_res(TINFO, "readahead length: %d", readahead_length);