From 3020d7339962057bb2275a0522a8c660e1835820 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Thu, 9 Sep 2010 12:15:23 +0000 Subject: [PATCH] better values for dht bloomfilter, reduce collisions for peers even with large routing tables --- src/dht/dht.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 -- 2.25.1