]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of rstream-opt
authorSean Hefty <sean.hefty@intel.com>
Tue, 29 May 2012 21:15:15 +0000 (14:15 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 29 May 2012 21:15:15 +0000 (14:15 -0700)
examples/rstream.c

index 6577fe13dae5e520867bcb9ef4c6296b9ea6ec5d..78f3c28af4cbb93d8705d64936ff3c5005e33192 100644 (file)
@@ -539,6 +539,7 @@ static int run(void)
               "name", "bytes", "xfers", "iters", "total", "time", "Gb/sec", "usec/xfer");
        if (!custom) {
                optimization = opt_latency;
+optimization = opt_bandwidth;
                ret = dst_addr ? client_connect() : server_connect();
                if (ret)
                        goto free;
@@ -547,11 +548,13 @@ static int run(void)
                        if (test_size[i].option > size_option)
                                continue;
                        init_latency_test(test_size[i].size);
+init_bandwidth_test(test_size[i].size);
                        run_test();
                }
                rs_shutdown(rs, SHUT_RDWR);
                rs_close(rs);
 
+sleep(1);
                optimization = opt_bandwidth;
                ret = dst_addr ? client_connect() : server_connect();
                if (ret)