windows-remove-log-messages-20050826
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 26 Aug 2005 14:46:11 +0000 (14:46 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 26 Aug 2005 14:46:11 +0000 (14:46 +0000)
commitee937439adc8d8ea214c9d53aee0ee5329697c80
tree845f9745d03b7cb627f98c8f35dffe3215437c48
parent48b0320b201c2efe153098e8a5a5e4e6470a41c5
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.
src/WINNT/afsd/cm_buf.c