From: Nathan S. Evans Date: Thu, 9 Sep 2010 12:15:23 +0000 (+0000) Subject: better values for dht bloomfilter, reduce collisions for peers even with large routin... X-Git-Tag: initial-import-from-subversion-38251~20372 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3020d7339962057bb2275a0522a8c660e1835820;p=oweals%2Fgnunet.git better values for dht bloomfilter, reduce collisions for peers even with large routing tables --- diff --git a/src/dht/dht.h b/src/dht/dht.h index 86edc9997..94276b8d5 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h @@ -29,17 +29,20 @@ #define DEBUG_DHT GNUNET_NO -#define DEBUG_DHT_ROUTING GNUNET_NO +/** + * Needs to be GNUNET_YES for logging to dhtlog to work! + */ +#define DEBUG_DHT_ROUTING GNUNET_YES -#define DHT_BLOOM_SIZE 32 +#define DHT_BLOOM_SIZE 128 -#define DHT_BLOOM_K 8 +#define DHT_BLOOM_K 6 #define MAX_OUTSTANDING_FORWARDS 100 #define DHT_FORWARD_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5) -#define DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 1) +#define DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 60) #define DHT_SEND_PRIORITY 4