0.9.0pre2:
FS:
- - measure latencies (core, datastore) => trust economy
- FS performance benchmarking
* DHT: [Nate]
- track paths content travels (PUT, reply-to-get) in messages,
* @author Christian Grothoff
*
* TODO:
- * - introduce random latency in processing
* - more statistics
*/
#include "platform.h"
if (GNUNET_LOAD_get_average (datastore_put_load) < 50)
return GNUNET_NO; /* very fast */
ld = GNUNET_LOAD_get_load (datastore_put_load);
- if ( (ld < 1) || (ld < priority) )
+ if (ld < 2.0 * (1 + priority))
return GNUNET_NO;
GNUNET_STATISTICS_update (stats,
gettext_noop ("# storage requests dropped due to high load"),
putl = GNUNET_LOAD_get_load (datastore_put_load);
if ( (GNUNET_NO == prq.request_found) &&
( (GNUNET_YES != active_migration) ||
- (putl > 2.0) ) )
+ (putl > 2.5 * (1 + prq.priority)) ) )
{
cp = GNUNET_CONTAINER_multihashmap_get (connected_peers,
&other->hashPubKey);
pr->namespace = (GNUNET_HashCode*) &pr[1];
memcpy (&pr[1], &opt[bits++], sizeof (GNUNET_HashCode));
}
- if ( (GNUNET_LOAD_get_load (cp->transmission_delay) > 3) ||
+ if ( (GNUNET_LOAD_get_load (cp->transmission_delay) > 3 * (1 + priority)) ||
(GNUNET_LOAD_get_average (cp->transmission_delay) >
GNUNET_CONSTANTS_MAX_CORK_DELAY.value * 2 + GNUNET_LOAD_get_average (rt_entry_lifetime)) )
{