]> git.michaelhowe.org Git - packages/o/openafs.git/commit
libafs: Use vcount, not maxvcount to trim vcaches
authorAndrew Deason <adeason@sinenomine.net>
Thu, 28 Apr 2011 16:48:18 +0000 (11:48 -0500)
committerDerrick Brashear <shadow@dementia.org>
Tue, 3 May 2011 02:20:26 +0000 (19:20 -0700)
commit126333cff710983faeb4185b0470013d66b16717
tree366eebbc017edf5208946ecc947eb3073da8abd0
parent2571b6285d5da8ef62ab38c3a938258ddd7bac4e
libafs: Use vcount, not maxvcount to trim vcaches

Every five minutes we afs_ShakeLooseVCaches to try and return the
number of vcaches in use down to the originally configured -stat level
(when we are using dynamic vcaches). We should calculate how many
vcaches to flush based on the number of currently active vcaches
(afs_vcount), not the peak number (afs_maxvcount). Otherwise, once we
exceed the configured -stat level, we will always keep trying to flush
numerous vcaches, even if we barely have any vcaches in use.

Reviewed-on: http://gerrit.openafs.org/4584
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 2a2206bfe16815a6625fee4d37520e9676d88ab4)

Change-Id: I80cfbf31ba81d7cf23013c0efcea0b8ac8c341db
Reviewed-on: http://gerrit.openafs.org/4602
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_daemons.c