7005654 qperf: 32bit only: qperf fails in all RC/UD streaming tests s11-sru
authorJohnny Cheung <Johnny.Cheung@Sun.COM>
Fri, 15 Jun 2012 00:10:31 -0700
branchs11-sru
changeset 2291 b0bb4aa104b6
parent 2290 1eee62467178
child 2292 7fe16a6a2bde
7005654 qperf: 32bit only: qperf fails in all RC/UD streaming tests
components/open-fabrics/qperf/patches/base.patch
--- a/components/open-fabrics/qperf/patches/base.patch	Wed Jun 13 09:33:37 2012 -0700
+++ b/components/open-fabrics/qperf/patches/base.patch	Fri Jun 15 00:10:31 2012 -0700
@@ -289,7 +289,17 @@
  #include <unistd.h>
  #include <netinet/in.h>
  #include <rdma/rdma_cma.h>
[email protected]@ -566,11 +570,15 @@
[email protected]@ -110,7 +114,8 @@
+     uint32_t    srqn;                   /* Shared queue number */
+     uint32_t    rkey;                   /* Remote key */
+     uint32_t    alt_lid;                /* Alternate Path Local LID */
+-    uint32_t    rd_atomic;              /* Number of read/atomics supported */
++    uint32_t    rd_atomic               /* Number of read/atomics supported */
++    __attribute__ ((aligned (8)));	/* align struct size to 64-bit binary */
+ } NODE;
+ 
+ 
[email protected]@ -566,11 +571,15 @@
  void
  run_client_uc_bi_bw(void)
  {
@@ -305,7 +315,7 @@
  }
  
  
[email protected]@ -580,7 +588,11 @@
[email protected]@ -580,7 +589,11 @@
  void
  run_server_uc_bi_bw(void)
  {
@@ -317,7 +327,7 @@
  }
  
  
[email protected]@ -590,6 +602,9 @@
[email protected]@ -590,6 +603,9 @@
  void
  run_client_uc_bw(void)
  {
@@ -327,7 +337,7 @@
      par_use(L_ACCESS_RECV);
      par_use(R_ACCESS_RECV);
      par_use(L_NO_MSGS);
[email protected]@ -597,6 +612,7 @@
[email protected]@ -597,6 +613,7 @@
      rd_params(IBV_QPT_UC, K64, 1, 0);
      rd_client_bw(IBV_QPT_UC);
      show_results(BANDWIDTH_SR);
@@ -335,7 +345,7 @@
  }
  
  
[email protected]@ -606,7 +622,11 @@
[email protected]@ -606,7 +623,11 @@
  void
  run_server_uc_bw(void)
  {
@@ -347,7 +357,7 @@
  }
  
  
[email protected]@ -616,8 +636,12 @@
[email protected]@ -616,8 +637,12 @@
  void
  run_client_uc_lat(void)
  {
@@ -360,7 +370,7 @@
  }
  
  
[email protected]@ -627,7 +651,11 @@
[email protected]@ -627,7 +652,11 @@
  void
  run_server_uc_lat(void)
  {
@@ -372,7 +382,7 @@
  }
  
  
[email protected]@ -637,9 +665,13 @@
[email protected]@ -637,9 +666,13 @@
  void
  run_client_uc_rdma_write_bw(void)
  {
@@ -386,7 +396,7 @@
  }
  
  
[email protected]@ -649,7 +681,11 @@
[email protected]@ -649,7 +682,11 @@
  void
  run_server_uc_rdma_write_bw(void)
  {
@@ -398,7 +408,7 @@
  }
  
  
[email protected]@ -659,8 +695,12 @@
[email protected]@ -659,8 +696,12 @@
  void
  run_client_uc_rdma_write_lat(void)
  {
@@ -411,7 +421,7 @@
  }
  
  
[email protected]@ -670,7 +710,11 @@
[email protected]@ -670,7 +711,11 @@
  void
  run_server_uc_rdma_write_lat(void)
  {
@@ -423,7 +433,7 @@
  }
  
  
[email protected]@ -680,9 +724,13 @@
[email protected]@ -680,9 +725,13 @@
  void
  run_client_uc_rdma_write_poll_lat(void)
  {
@@ -437,7 +447,7 @@
  }
  
  
[email protected]@ -692,7 +740,11 @@
[email protected]@ -692,7 +741,11 @@
  void
  run_server_uc_rdma_write_poll_lat(void)
  {
@@ -509,3 +519,14 @@
      qgetnameinfo((SA *)&sa, salen, 0, 0, p, sizeof(p), NI_NUMERICSERV);
      port = atoi(p);
      if (!port)
+diff -r -u /tmp/730054/qperf-0.4.6/src/qperf.h qperf-0.4.6/src/qperf.h
+--- /tmp/730054/qperf-0.4.6/src/qperf.h	Mon Aug 31 00:00:40 2009
++++ qperf-0.4.6/src/qperf.h	Mon Jun 11 21:45:24 2012
[email protected]@ -193,6 +193,7 @@
+     uint32_t    no_cpus;                /* Number of processors */
+     uint32_t    no_ticks;               /* Ticks per second */
+     uint32_t    max_cqes;               /* Maximum CQ entries */
++    __attribute__ ((aligned (8)))	/* align with 32-bit & 64-bit binary */
+     CLOCK       time_s[T_N];            /* Start times */
+     CLOCK       time_e[T_N];            /* End times */
+     USTAT       s;                      /* Send statistics */