From f209cafcd879ec559ea6e51ed4b1112fbad59df3 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Mon, 16 Dec 2024 22:15:55 -0500 Subject: [PATCH] bees: bump the file limits again, 512k files and 64k dirs 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 --- src/bees.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bees.h b/src/bees.h index a280860..c518b14 100644 --- a/src/bees.h +++ b/src/bees.h @@ -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;