[ofa-general] [PATCH 1/1] SDP - Make bzcopy defualt for 2K and larger transfer size

Jim Mott jim at mellanox.com
Fri Nov 2 19:49:24 PDT 2007


In order to be sure we test the new bzcopy code it will be enabled by
default.  The 2K threshold is what my testing shows to be the lowest
value that always wins.  We may have to adjust this upward if other
hardware has worse performance.

Signed-off-by: Jim Mott <jim at mellanox.com>
---

diff --git a/drivers/infiniband/ulp/sdp/sdp_main.c
b/drivers/infiniband/ulp/sdp/sdp_main.c
index f0b8703..d1eb6ab 100644
--- a/drivers/infiniband/ulp/sdp/sdp_main.c
+++ b/drivers/infiniband/ulp/sdp/sdp_main.c
@@ -141,7 +141,7 @@ static unsigned int sdp_keepalive_time =
SDP_KEEPALIVE_TIME;
 module_param_named(sdp_keepalive_time, sdp_keepalive_time, uint, 0644);
 MODULE_PARM_DESC(sdp_keepalive_time, "Default idle time in seconds
before keepalive probe sent.");
 
-static int sdp_zcopy_thresh = 0;
+static int sdp_zcopy_thresh = 2048;
 module_param_named(sdp_zcopy_thresh, sdp_zcopy_thresh, int, 0644);
 MODULE_PARM_DESC(sdp_zcopy_thresh, "Zero copy send threshold; 0=0ff.");



More information about the general mailing list