diff options
author | Jeremy Allison <jra@samba.org> | 1998-08-28 21:46:29 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-08-28 21:46:29 +0000 |
commit | 779b924ec1f6c81ff578d22295b20fece698d1fc (patch) | |
tree | aed94f78bf615954694607daf8d9fc0cb2601135 /source/nmbd | |
parent | 7db45f169c33e0f3a67ba2260049226992de8bdf (diff) | |
download | samba-779b924ec1f6c81ff578d22295b20fece698d1fc.tar.gz samba-779b924ec1f6c81ff578d22295b20fece698d1fc.tar.xz samba-779b924ec1f6c81ff578d22295b20fece698d1fc.zip |
This checking fixes the statcache bug that stopped NetBench from running
correctly. Added new parameter "stat cache size" - set to 50 by default.
I now declare the statcache code officially "open" for business :-).
It gets a hit rate of 97% with a NetBench run and seems to make
using a case insensitive run as efficient as a case sensitive run.
Also tidied up our sys_select usage - added a maxfd parameter and
also added an implementation of select in terms of poll(), for systems
where poll() is much faster. This is disabled by default.
Jeremy.
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd_packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_packets.c b/source/nmbd/nmbd_packets.c index d557414a272..65d98c9a596 100644 --- a/source/nmbd/nmbd_packets.c +++ b/source/nmbd/nmbd_packets.c @@ -1773,7 +1773,7 @@ BOOL listen_for_packets(BOOL run_election) BlockSignals(False, SIGUSR2); #endif /* SIGUSR2 */ - selrtn = sys_select(&fds,&timeout); + selrtn = sys_select(256,&fds,&timeout); /* We can only take signals when we are in the select - block them again here. */ |