aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cp.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-23 17:37:07 +0000
committerChristian Grothoff <christian@grothoff.org>2015-03-23 17:37:07 +0000
commit2add3875884f9d8ef65cbd3d4d1dd1aa897d71ca (patch)
tree8c8461a2651152530252cfb3bec2b208ed523f48 /src/fs/gnunet-service-fs_cp.h
parented51bc86aad5044b88ce4fc3641cc920c8186863 (diff)
downloadgnunet-2add3875884f9d8ef65cbd3d4d1dd1aa897d71ca.tar.gz
gnunet-2add3875884f9d8ef65cbd3d4d1dd1aa897d71ca.zip
-re benchmarking and adjusting MAX_QUEUE_PER_PEER
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.h')
-rw-r--r--src/fs/gnunet-service-fs_cp.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/fs/gnunet-service-fs_cp.h b/src/fs/gnunet-service-fs_cp.h
index eca6ff1ed..5dee37a94 100644
--- a/src/fs/gnunet-service-fs_cp.h
+++ b/src/fs/gnunet-service-fs_cp.h
@@ -33,19 +33,16 @@
33/** 33/**
34 * Maximum number of outgoing messages we queue per peer. 34 * Maximum number of outgoing messages we queue per peer.
35 * 35 *
36 * Performance measurements for 2 peer setup for 50 MB file 36 * Performance measurements for 2 peer setup for 10 MB file
37 * (with MAX_DATASTORE_QUEUE = 1 and RETRY_PROBABILITY_INV = 1): 37 * (using perf_gnunet_service_fs_p2p):
38 * 38 *
39 * 2: 1700 kb/s, 1372 kb/s 39 * 24: 2-3 MB/s # ~ 24 MB RAM
40 * 8: 2117 kb/s, 1284 kb/s, 1112 kb/s 40 * 256: 8 MB/s # ~256 MB RAM
41 * 16: 3500 kb/s, 3200 kb/s, 3388 kb/s
42 * 32: 3441 kb/s, 3163 kb/s, 3277 kb/s
43 * 128: 1700 kb/s; 2010 kb/s, 3383 kb/s, 1156 kb/s
44 * 41 *
45 * Conclusion: 16 seems to be a pretty good value (stable 42 * Conclusion: 24 should suffice (reasonable
46 * and high performance, no excessive memory use). 43 * performance, no excessive memory use).
47 */ 44 */
48#define MAX_QUEUE_PER_PEER 16 45#define MAX_QUEUE_PER_PEER 24
49 46
50/** 47/**
51 * Length of the P2P success tracker. Note that having a very long 48 * Length of the P2P success tracker. Note that having a very long