#
-# $Id: cf.data.pre,v 1.162 1999/10/04 05:05:01 wessels Exp $
+# $Id: cf.data.pre,v 1.163 1999/12/11 15:57:43 wessels Exp $
#
#
# SQUID Internet Object Cache http://squid.nlanr.net/Squid/
NAME: store_objects_per_bucket
TYPE: int
-DEFAULT: 50
+DEFAULT: 20
LOC: Config.Store.objectsPerBucket
DOC_START
Target number of objects per bucket in the store hash table.
Lowering this value increases the total number of buckets and
- also the storage maintenance rate. The default is 50.
+ also the storage maintenance rate. The default is 20.
-store_objects_per_bucket 50
+store_objects_per_bucket 20
DOC_END
NAME: client_db
/*
- * $Id: store_key_md5.cc,v 1.21 1999/04/23 02:57:38 wessels Exp $
+ * $Id: store_key_md5.cc,v 1.22 1999/12/11 15:57:42 wessels Exp $
*
* DEBUG: section 20 Storage Manager MD5 Cache Keys
* AUTHOR: Duane Wessels
}
int
-storeKeyHashBuckets(int nobj)
+storeKeyHashBuckets(int nbuckets)
{
- if (nobj < 0x2000)
- return 0x2000;
- if (nobj < 0x4000)
- return 0x4000;
- if (nobj < 0x8000)
- return 0x8000;
- return 0x10000;
+ int n = 0x2000;
+ while (n < nbuckets)
+ n <<= 1;
+ return n;
}
int