]> git.hungrycats.org Git - bees/commitdiff
bees: bump the file limits again, 512k files and 64k dirs
authorZygo Blaxell <bees@furryterror.org>
Tue, 17 Dec 2024 03:15:55 +0000 (22:15 -0500)
committerZygo Blaxell <bees@furryterror.org>
Tue, 17 Dec 2024 03:54:12 +0000 (22:54 -0500)
Test machines keep blowing past the 32k file limit.  16 worker
threads at 10,000 files each is much larger than 32k.

Other high-FD-count services like DNS servers ask for million-file
rlimits.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees.h

index a28086088e96e753b3a968c28edc0ce1d9285719..c518b14869557fb6ca985b0e6ff4a3d31309b17e 100644 (file)
@@ -78,10 +78,10 @@ const int BEES_PROGRESS_INTERVAL = BEES_STATS_INTERVAL;
 const int BEES_STATUS_INTERVAL = 1;
 
 // Number of file FDs to cache when not in active use
-const size_t BEES_FILE_FD_CACHE_SIZE = 32768;
+const size_t BEES_FILE_FD_CACHE_SIZE = 524288;
 
 // Number of root FDs to cache when not in active use
-const size_t BEES_ROOT_FD_CACHE_SIZE = 4096;
+const size_t BEES_ROOT_FD_CACHE_SIZE = 65536;
 
 // Number of FDs to open (rlimit)
 const size_t BEES_OPEN_FILE_LIMIT = BEES_FILE_FD_CACHE_SIZE + BEES_ROOT_FD_CACHE_SIZE + 100;