From 6809ba29fadbd0d84ff6a9bf2ccd909b2f54b186 Mon Sep 17 00:00:00 2001 From: Dan Hyde Date: Wed, 23 Apr 2008 19:56:52 +0000 Subject: [PATCH] vol-setaside-one-fd-per-thread-20080423 LICENSE IPL10 FIXES 87977 kids these days share badly. give each one their own fd otherwise they fight. --- src/viced/viced.h | 2 +- src/vol/ihandle.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viced/viced.h b/src/viced/viced.h index e632bc87a..dfc649859 100644 --- a/src/viced/viced.h +++ b/src/viced/viced.h @@ -190,7 +190,7 @@ extern int saneacls; #define DONTPANIC 0 #define PANIC 1 -#define MAX_FILESERVER_THREAD 128 /* max number of threads in fileserver, subject to system limits */ +#define MAX_FILESERVER_THREAD 128 /* max number of threads in fileserver, subject to system limits. match to FD_HANDLE_SETASIDE */ #define FILESERVER_HELPER_THREADS 7 /* Listner, IOMGR, FiveMinute, * HostCheck, Signal, min 2 for RXSTATS */ diff --git a/src/vol/ihandle.h b/src/vol/ihandle.h index 5b918f8a7..b0bb3b238 100644 --- a/src/vol/ihandle.h +++ b/src/vol/ihandle.h @@ -193,7 +193,7 @@ typedef struct StreamHandle_s { #define STREAM_HANDLE_MALLOCSIZE 1 /* Number of file descriptors needed for non-cached I/O */ -#define FD_HANDLE_SETASIDE 64 +#define FD_HANDLE_SETASIDE 128 /* Match to MAX_FILESERVER_THREAD */ /* Don't try to have more than 256 files open at once if you are planning * to use fopen or fdopen. The FILE structure has an eight bit field for -- 2.39.5