windows-smb-async-store-20080224
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 25 Feb 2008 05:33:54 +0000 (05:33 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 25 Feb 2008 05:33:54 +0000 (05:33 +0000)
commitf95915a55ae579bab4052f24f6fedca21d114567
treee579cb90726186700ef58b006a958d3e93a53230
parent27dc7b13aa6356ba76916e47c6ddb48aa4b99846
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.
src/WINNT/afsd/afsd_init.c
src/WINNT/afsd/cm_config.h
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb.h