From: Dan Hyde Date: Wed, 23 Apr 2008 19:56:52 +0000 (+0000) Subject: vol-setaside-one-fd-per-thread-20080423 X-Git-Tag: openafs-devel-1_5_61~1111 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6809ba29fadbd0d84ff6a9bf2ccd909b2f54b186;p=packages%2Fo%2Fopenafs.git 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. --- 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