mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Final part of the fix for 6837 - "Too many open files" when trying to access large number of files
Win7 needs a min of 16k file handles to work against a server. Jeremy.
This commit is contained in:
parent
b8c87c43dd
commit
8f4d4a6758
@ -56,17 +56,6 @@
|
||||
#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.
|
||||
*/
|
||||
@ -82,7 +71,18 @@
|
||||
*/
|
||||
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user