]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-windows-remove-log-messages-20050826
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 26 Aug 2005 14:48:07 +0000 (14:48 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 26 Aug 2005 14:48:07 +0000 (14:48 +0000)
commit4324a088077c5e98281f8656ef5cd73772b7152f
treec369791d2ba3d79cd4d7e0d2f39a74ae80e6cee7
parent872a7930d305404a34dc66e323660094081650d0
STABLE14-windows-remove-log-messages-20050826

The log message added to buf_LockedCleanAsync() during the debugging
post 1.3.8201 is output for 1/10th of all buffers once every 5 seconds.
This is a huge performance hit.  Move the message so that it is only
output for buffers that are actually dirty.

Also, change the algorithm so that the sqrt() of the number of buffers
are checked every 5 seconds instead of 1/10th.   This will do a better
job with very large cache sizes.

(cherry picked from commit ee937439adc8d8ea214c9d53aee0ee5329697c80)
src/WINNT/afsd/cm_buf.c