From 7fa63896fff04f973f4b9059b5b0b4ae760715b1 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Tue, 5 Mar 2013 13:39:00 -0800 Subject: [PATCH] librdmacm/rstream: Adjust transfer counts A customer has reported that 100 transfers for large sizes is insufficient to achieve the top bandwidth over a high latency link. Contrary, 100,000 transfers is too high for small latency ping-pong over a slow connection. Signed-off-by: Sean Hefty --- examples/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/common.c b/examples/common.c index 4eb5bbec..54339d5c 100644 --- a/examples/common.c +++ b/examples/common.c @@ -118,13 +118,13 @@ void cnt_str(char *str, size_t ssize, long long cnt) int size_to_count(int size) { if (size >= (1 << 20)) - return 100; + return 250; else if (size >= (1 << 16)) return 1000; else if (size >= (1 << 10)) return 10000; else - return 100000; + return 25000; } void format_buf(void *buf, int size) -- 2.41.0