Final part of the fix for 6837 - "Too many open files" when trying to access large...
authorJeremy Allison <jra@samba.org>
Wed, 16 Dec 2009 18:19:19 +0000 (10:19 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 16 Dec 2009 18:19:19 +0000 (10:19 -0800)
Win7 needs a min of 16k file handles to work against a
server.

Jeremy.

source3/include/local.h

index de54ea5886613a0cea46d2c30b1bfb13318f13c2..a88b17be137353194e64674829ee78194a5992f9 100644 (file)
 #define SYSLOG_FACILITY LOG_DAEMON
 #endif
 
-/* 
- * Default number of maximum open files per smbd. This is
- * also limited by the maximum available file descriptors
- * per process and can also be set in smb.conf as "max open files"
- * in the [global] section.
- */
-
-#ifndef MAX_OPEN_FILES
-#define MAX_OPEN_FILES 10000
-#endif
-
 /*
  * Fudgefactor required for open tdb's, etc.
  */
  */
 
 #ifndef MIN_OPEN_FILES_WINDOWS
-#define MIN_OPEN_FILES_WINDOWS 1050
+#define MIN_OPEN_FILES_WINDOWS 16384
+#endif
+
+/*
+ * Default number of maximum open files per smbd. This is
+ * also limited by the maximum available file descriptors
+ * per process and can also be set in smb.conf as "max open files"
+ * in the [global] section.
+ */
+
+#ifndef MAX_OPEN_FILES
+#define MAX_OPEN_FILES (MIN_OPEN_FILES_WINDOWS + MAX_OPEN_FUDGEFACTOR)
 #endif
 
 #define WORDMAX 0xFFFF