]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-smb-async-store-20080224
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 25 Feb 2008 05:36:46 +0000 (05:36 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 25 Feb 2008 05:36:46 +0000 (05:36 +0000)
commitb48ead62cb5b8a27dc53162a8120ce03d42e035a
tree08bfc7651a04c7c6cfa5f34f94710a630459c1b1
parent945498236d84fb3d12670cadf40cc863042397f3
DEVEL15-windows-smb-async-store-20080224

LICENSE MIT

Add two new configuration knobs to control the behavior of smb_WriteData.

HKLM\SOFTWARE\OpenAFS\Client
  DWORD EnableSMBAsyncStore  (default: 1)
  DWORD SMBAsyncStoreSize    (default: 32K)

Instead of tying the async store size to either the chunksize (too large)
or the buffer block size (too small) provide an intermediate value that
can be independently controlled.

In the future it would be desireable for the async store size to be
dynamically determined based upon measurable characteristics of the
network.  In the meantime, 32KB is an acceptable performance compromise
that should work well on 1Gbit networks and low-speed cellular networks.

(cherry picked from commit f95915a55ae579bab4052f24f6fedca21d114567)
src/WINNT/afsd/afsd_init.c
src/WINNT/afsd/cm_config.h
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb.h