Lines Matching refs:fds
15 int fds[4] = {-1, -1, -1, -1}; in thrashing_test() local
34 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1); in thrashing_test()
36 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test()
37 fds[i] = create_tmp_file(tmpnames[i], filesize); in thrashing_test()
38 if (fds[i] < 0) { in thrashing_test()
43 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test()
44 bufs[i] = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fds[i], 0); in thrashing_test()
52 posix_fadvise(fds[i], 0, filesize, POSIX_FADV_RANDOM); in thrashing_test()
60 for (size_t j = 0; j < ARRAY_SIZE(fds); j++) { in thrashing_test()
73 (filesize * ARRAY_SIZE(fds) * test_runs * USEC_PER_SEC) / in thrashing_test()
83 for (size_t i = 0; i < ARRAY_SIZE(fds) && fds[i] >= 0; i++) { in thrashing_test()
84 close(fds[i]); in thrashing_test()