summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-10 19:13:54 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-10 19:13:54 +0000
commita72d66e9bb2f2b696a46b731c4debbeaa4cc5ad4 (patch)
treef462e9041d865c5de11431e58cfaa4a480680f96
parent2b8063b576a312fc3a8b7be9db6d3717e8151c31 (diff)
downloadgnunet-a72d66e9bb2f2b696a46b731c4debbeaa4cc5ad4.tar.gz
gnunet-a72d66e9bb2f2b696a46b731c4debbeaa4cc5ad4.zip
-more realistic default quota values
-rw-r--r--src/datacache/datacache.c4
-rw-r--r--src/datastore/datastore.conf.in2
-rw-r--r--src/dht/dht.conf.in2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c
index 9087ae0dd..80ce1a677 100644
--- a/src/datacache/datacache.c
+++ b/src/datacache/datacache.c
@@ -114,6 +114,8 @@ env_delete_notify (void *cls, const struct GNUNET_HashCode * key, size_t size)
114 GNUNET_CONTAINER_bloomfilter_remove (h->filter, key); 114 GNUNET_CONTAINER_bloomfilter_remove (h->filter, key);
115 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), -size, 115 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), -size,
116 GNUNET_NO); 116 GNUNET_NO);
117 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# items stored"), -1,
118 GNUNET_NO);
117} 119}
118 120
119 121
@@ -249,6 +251,8 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
249 GNUNET_h2s (key)); 251 GNUNET_h2s (key));
250 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), size, 252 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), size,
251 GNUNET_NO); 253 GNUNET_NO);
254 GNUNET_STATISTICS_update (h->stats, gettext_noop ("# items stored"), 1,
255 GNUNET_NO);
252 GNUNET_CONTAINER_bloomfilter_add (h->filter, key); 256 GNUNET_CONTAINER_bloomfilter_add (h->filter, key);
253 while (h->utilization + used > h->env.quota) 257 while (h->utilization + used > h->env.quota)
254 GNUNET_assert (GNUNET_OK == h->api->del (h->api->cls)); 258 GNUNET_assert (GNUNET_OK == h->api->del (h->api->cls));
diff --git a/src/datastore/datastore.conf.in b/src/datastore/datastore.conf.in
index 4149417de..809a51a3f 100644
--- a/src/datastore/datastore.conf.in
+++ b/src/datastore/datastore.conf.in
@@ -9,7 +9,7 @@ HOME = $SERVICEHOME
9BINARY = gnunet-service-datastore 9BINARY = gnunet-service-datastore
10ACCEPT_FROM = 127.0.0.1; 10ACCEPT_FROM = 127.0.0.1;
11ACCEPT_FROM6 = ::1; 11ACCEPT_FROM6 = ::1;
12QUOTA = 100 MB 12QUOTA = 5 GB
13BLOOMFILTER = $SERVICEHOME/datastore/bloomfilter 13BLOOMFILTER = $SERVICEHOME/datastore/bloomfilter
14DATABASE = sqlite 14DATABASE = sqlite
15# DISABLE_SOCKET_FORWARDING = NO 15# DISABLE_SOCKET_FORWARDING = NO
diff --git a/src/dht/dht.conf.in b/src/dht/dht.conf.in
index d6afe39e9..0a96e1a8a 100644
--- a/src/dht/dht.conf.in
+++ b/src/dht/dht.conf.in
@@ -28,5 +28,5 @@ DISABLE_TRY_CONNECT = NO
28 28
29[dhtcache] 29[dhtcache]
30DATABASE = sqlite 30DATABASE = sqlite
31QUOTA = 1 MB 31QUOTA = 500 MB
32 32