Lines Matching refs:prefetch

374    { "fdcache-prefetch", ARGP_KEY_FDCACHE_PREFETCH, "NUM", 0, "Number of archive files to prefetch into fdcache.", 0 },
378 { "fdcache-prefetch-mbs", ARGP_KEY_FDCACHE_PREFETCH_MBS, "MB", 0,"Megabytes allocated to the \
379 prefetch cache.", 0},
381 { "fdcache-prefetch-fds", ARGP_KEY_FDCACHE_PREFETCH_FDS, "NUM", 0,"Number of files allocated to the \
382 prefetch cache.", 0},
623 argp_failure(state, 1, EINVAL, "fdcache prefetch fds");
628 argp_failure(state, 1, EINVAL, "fdcache prefetch mbs");
1288 deque<fdcache_entry> prefetch; // prefetched
1300 for (auto j = prefetch.begin(); j < prefetch.end(); j++)
1305 set_metric("fdcache_prefetch_count", prefetch.size());
1323 // nuke preexisting copy in prefetch
1324 for (auto i = prefetch.begin(); i < prefetch.end(); i++)
1329 prefetch.erase(i);
1344 prefetch.push_front(n);
1381 // Iterate through prefetch while fd == -1 to ensure that no duplication between lru and
1382 // prefetch occurs.
1383 for ( auto i = prefetch.begin(); fd == -1 && i < prefetch.end(); ++i)
1386 { // found it; take the entry from the prefetch deque to the lru deque, since it has now been accessed.
1388 prefetch.erase(i);
1420 for (auto i = prefetch.begin(); i < prefetch.end(); i++)
1447 for (auto i = prefetch.begin(); i < prefetch.end(); i++)
1452 prefetch.erase(i); // invalidates i, so no more iteration!
1498 for(auto i = prefetch.begin(); i < prefetch.end(); i++){
1505 for (auto j = i; j < prefetch.end(); j++) // close all the fds from here on in
1508 obatched(clog) << "fdcache evicted from prefetch a=" << j->archive << " b=" << j->entry
1515 prefetch.erase(i, prefetch.end()); // erase the nodes generally
1951 false); // prefetched ones go to the prefetch cache
4128 // Make the prefetch cache spaces a fraction of the main fdcache if
4320 obatched(clog) << "fdcache prefetch " << fdcache_prefetch << endl;
4325 obatched(clog) << "prefetch fds " << fdcache_prefetch_fds << endl;
4326 obatched(clog) << "prefetch mbs " << fdcache_prefetch_mbs << endl;