1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-08 04:59:37 +02:00

bees: limit FD cache size explicitly

This will allow the default size limit for cache objects to be changed
with impunity.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
(cherry picked from commit 9daa51edaab44c02ce0917ff94b20683036d7594)
Dieser Commit ist enthalten in:
Zygo Blaxell
2017-01-26 22:03:10 -05:00
Ursprung d6f97edf4a
Commit 6c8d2bf428
2 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
+1
Datei anzeigen
@@ -35,6 +35,7 @@ BeesFdCache::BeesFdCache()
BEESCOUNTADD(open_ino_ms, open_timer.age() * 1000);
return rv;
});
m_file_cache.max_size(BEES_FD_CACHE_SIZE);
}
Fd
+3
Datei anzeigen
@@ -81,6 +81,9 @@ const int BEES_PROGRESS_INTERVAL = 3600;
// Status is output every freakin second. Use a ramdisk.
const int BEES_STATUS_INTERVAL = 1;
// Number of FDs to open (not counting 100 roots)
const size_t BEES_FD_CACHE_SIZE = 384;
// Log warnings when an operation takes too long
const double BEES_TOO_LONG = 2.5;