From 7ae2c0df3373bdce129694efaf8d0097bab606da Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 13 Jan 2012 23:58:50 -0500 Subject: [PATCH] Windows: AFS_SERVER_FLUSH_DELAY AFS_SERVER_PURGE_DELAY Alter the flush delay to 5 seconds from 30 seconds Alter the purge delay to 300 seconds from 5 seconds Change-Id: I3f8e79d84582c4015e35d58cf1bedc9a023c0d73 Reviewed-on: http://gerrit.openafs.org/6554 Reviewed-by: Peter Scott Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp | 5 ++--- src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp b/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp index a3c23a8197..c52823253d 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp @@ -7432,10 +7432,9 @@ AFSInitializeLibrary( IN AFSLibraryInitCB *LibraryInit) ulTimeIncrement = KeQueryTimeIncrement(); pControlDevExt->Specific.Control.ObjectLifeTimeCount.QuadPart = (ULONGLONG)((ULONGLONG)AFS_OBJECT_LIFETIME / (ULONGLONG)ulTimeIncrement); - pControlDevExt->Specific.Control.FcbPurgeTimeCount.QuadPart = AFS_ONE_SECOND; - pControlDevExt->Specific.Control.FcbPurgeTimeCount.QuadPart *= AFS_SERVER_PURGE_DELAY; + pControlDevExt->Specific.Control.FcbPurgeTimeCount.QuadPart = AFS_SERVER_PURGE_DELAY; pControlDevExt->Specific.Control.FcbPurgeTimeCount.QuadPart /= ulTimeIncrement; - pControlDevExt->Specific.Control.FcbFlushTimeCount.QuadPart = (ULONGLONG)((ULONGLONG)(AFS_ONE_SECOND * AFS_SERVER_FLUSH_DELAY) / (ULONGLONG)ulTimeIncrement); + pControlDevExt->Specific.Control.FcbFlushTimeCount.QuadPart = (ULONGLONG)((ULONGLONG)AFS_SERVER_FLUSH_DELAY / (ULONGLONG)ulTimeIncrement); pControlDevExt->Specific.Control.ExtentRequestTimeCount.QuadPart = (ULONGLONG)((ULONGLONG)AFS_EXTENT_REQUEST_TIME/(ULONGLONG)ulTimeIncrement); // diff --git a/src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h b/src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h index cc93a44a65..7f1c39eb8a 100644 --- a/src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h +++ b/src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h @@ -164,7 +164,7 @@ NTSTATUS // Fcb lifetime in seconds // -#define AFS_OBJECT_LIFETIME 30 * AFS_ONE_SECOND +#define AFS_OBJECT_LIFETIME 600 * AFS_ONE_SECOND #define AFS_EXTENT_REQUEST_TIME 10 * AFS_ONE_SECOND @@ -195,8 +195,8 @@ NTSTATUS #define CRC32_POLYNOMIAL 0xEDB88320L; -#define AFS_SERVER_FLUSH_DELAY 30 -#define AFS_SERVER_PURGE_DELAY 60 +#define AFS_SERVER_FLUSH_DELAY (5LL * AFS_ONE_SECOND) +#define AFS_SERVER_PURGE_DELAY (300LL * AFS_ONE_SECOND) // // PURGE_SLEEP is the number of PURGE_DELAYS we wait before we will unilaterally // give back extents.