]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
librdmacm/rstream: Adjust transfer counts
authorSean Hefty <sean.hefty@intel.com>
Tue, 5 Mar 2013 21:39:00 +0000 (13:39 -0800)
committerSean Hefty <sean.hefty@intel.com>
Tue, 5 Mar 2013 21:39:00 +0000 (13:39 -0800)
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 <sean.hefty@intel.com>
examples/common.c

index 4eb5bbec46e8ce6f3d88759e8e81db6e6815b684..34f3af5bde278139913ff3ac653dd97c4aed2b9f 100644 (file)
@@ -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 300;
        else if (size >= (1 << 16))
                return 1000;
        else if (size >= (1 << 10))
                return 10000;
        else
-               return 100000;
+               return 30000;
 }
 
 void format_buf(void *buf, int size)