From 427b846c6c52194e5246bc913c65ac632f54f604 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 23 Feb 2017 15:32:06 +0100 Subject: optimize queue-full case, reduce max queue size due to O(n) operation --- src/fs/fs.conf.in | 2 +- src/fs/gnunet-service-fs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fs') diff --git a/src/fs/fs.conf.in b/src/fs/fs.conf.in index 3534378ae..d46de387f 100644 --- a/src/fs/fs.conf.in +++ b/src/fs/fs.conf.in @@ -36,7 +36,7 @@ MAX_PENDING_REQUESTS = 65536 # How many requests do we have at most waiting in the queue towards # the datastore? (important for memory consumption) -DATASTORE_QUEUE_SIZE = 1024 +DATASTORE_QUEUE_SIZE = 32 # Maximum frequency we're allowed to poll the datastore # for content for migration (can be used to reduce diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index 8c605c6a2..256d0c2b8 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -1349,7 +1349,7 @@ run (void *cls, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_INFO, "fs", "DATASTORE_QUEUE_SIZE"); - dqs = 1024; + dqs = 32; } GSF_datastore_queue_size = (unsigned int) dqs; GSF_enable_randomized_delays = -- cgit v1.2.3