summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivoras <ivoras@FreeBSD.org>2013-08-28 10:06:20 +0000
committerivoras <ivoras@FreeBSD.org>2013-08-28 10:06:20 +0000
commitad95bec3c8287053a87374aa21dbb55a746cdc34 (patch)
tree842d289da3ddf750a5eaeb268541177716ff1e56
parentb4bb9036fd1ee6033f8df3d8ebb9136adb907a91 (diff)
downloadFreeBSD-src-ad95bec3c8287053a87374aa21dbb55a746cdc34.zip
FreeBSD-src-ad95bec3c8287053a87374aa21dbb55a746cdc34.tar.gz
Take a very small step toward the Century of the Anchovy by increasing the
time dirhash entries stay in memory before being considered for eviction to 1 minute.
-rw-r--r--sys/ufs/ufs/ufs_dirhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c
index b51fdff..5c29923 100644
--- a/sys/ufs/ufs/ufs_dirhash.c
+++ b/sys/ufs/ufs/ufs_dirhash.c
@@ -85,7 +85,7 @@ SYSCTL_INT(_vfs_ufs, OID_AUTO, dirhash_docheck, CTLFLAG_RW, &ufs_dirhashcheck,
static int ufs_dirhashlowmemcount = 0;
SYSCTL_INT(_vfs_ufs, OID_AUTO, dirhash_lowmemcount, CTLFLAG_RD,
&ufs_dirhashlowmemcount, 0, "number of times low memory hook called");
-static int ufs_dirhashreclaimage = 5;
+static int ufs_dirhashreclaimage = 60;
SYSCTL_INT(_vfs_ufs, OID_AUTO, dirhash_reclaimage, CTLFLAG_RW,
&ufs_dirhashreclaimage, 0,
"max time in seconds of hash inactivity before deletion in low VM events");
OpenPOWER on IntegriCloud