Lines Matching defs:fdcache
370 { "fdcache-fds", ARGP_KEY_FDCACHE_FDS, "NUM", 0, "Maximum number of archive files to keep in fdcache.", 0 },
372 { "fdcache-mbs", ARGP_KEY_FDCACHE_MBS, "MB", 0, "Maximum total size of archive file fdcache.", 0 },
374 { "fdcache-prefetch", ARGP_KEY_FDCACHE_PREFETCH, "NUM", 0, "Number of archive files to prefetch into fdcache.", 0 },
376 { "fdcache-mintmp", ARGP_KEY_FDCACHE_MINTMP, "NUM", 0, "Minimum free space% on tmpdir.", 0 },
378 { "fdcache-prefetch-mbs", ARGP_KEY_FDCACHE_PREFETCH_MBS, "MB", 0,"Megabytes allocated to the \
381 { "fdcache-prefetch-fds", ARGP_KEY_FDCACHE_PREFETCH_FDS, "NUM", 0,"Number of files allocated to the \
612 argp_failure(state, 1, EINVAL, "fdcache mintmp percent");
623 argp_failure(state, 1, EINVAL, "fdcache prefetch fds");
628 argp_failure(state, 1, EINVAL, "fdcache prefetch mbs");
1347 obatched(clog) << "fdcache interned a=" << a << " b=" << b
1357 obatched(clog) << "fdcache emergency flush for filling tmpdir" << endl;
1400 obatched(clog) << "fdcache emergency flush for filling tmpdir" << endl;
1464 obatched(clog) << "fdcache limited to maxfds=" << maxfds << " maxmbs=" << maxmbs << endl;
1485 obatched(clog) << "fdcache evicted a=" << j->archive << " b=" << j->entry
1508 obatched(clog) << "fdcache evicted from prefetch a=" << j->archive << " b=" << j->entry
1525 // unlink any fdcache entries in $TMPDIR
1530 static libarchive_fdcache fdcache;
1544 /* Search the fdcache. */
1546 int fd = fdcache.lookup (b_source, section);
1552 obatched (clog) << "cannot fstate fdcache "
1632 /* Add to fdcache. */
1633 fdcache.intern (b_source, section, tmppath, data->d_size, true);
1771 // check for a match in the fdcache first
1772 int fd = fdcache.lookup(b_source0, b_source1);
1779 obatched(clog) << "cannot fstat fdcache " << b_source0 << endl;
1781 fdcache.clear(b_source0, b_source1);
1821 inc_metric ("http_responses_total","result","archive fdcache");
1830 obatched(clog) << "serving fdcache archive " << b_source0
1891 // 3) extract some number of prefetched entries (just into fdcache)
1914 if (fdcache.probe (b_source0, fn) && // skip if already interned
1927 // NB: don't unlink (tmppath), as fdcache will take charge of it.
1938 // Set the mtime so the fdcache file mtimes, even prefetched ones,
1947 // NB: now we know we have a complete reusable file; make fdcache
1949 fdcache.intern(b_source0, fn,
1957 // NB: now we know we have a complete reusable file; make fdcache
1959 fdcache.intern(b_source0, b_source1,
2236 // sourcetype, check if the debuginfo was interned into the fdcache.
2238 || (b_stype == "R" && fdcache.probe (b_source0, b_source1)))
3607 (void) statfs_free_enough_p(tmpdir, "tmpdir"); // this too, in case of fdcache/tmpfile usage
3960 fdcache.limit(0,0,0,0); // release the fdcache contents
3961 fdcache.limit(fdcache_fds, fdcache_mbs, fdcache_prefetch_fds, fdcache_prefetch_mbs); // restore status quo parameters
4109 // default parameters for fdcache are computed from system stats
4128 // Make the prefetch cache spaces a fraction of the main fdcache if
4138 fdcache.limit(fdcache_fds, fdcache_mbs, fdcache_prefetch_fds, fdcache_prefetch_mbs);
4318 obatched(clog) << "fdcache fds " << fdcache_fds << endl;
4319 obatched(clog) << "fdcache mbs " << fdcache_mbs << endl;
4320 obatched(clog) << "fdcache prefetch " << fdcache_prefetch << endl;
4321 obatched(clog) << "fdcache tmpdir " << tmpdir << endl;
4322 obatched(clog) << "fdcache tmpdir min% " << fdcache_mintmp << endl;