From patchwork Mon Dec 15 19:58:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 5497371 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4D2ED9F1D4 for ; Mon, 15 Dec 2014 19:59:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8129920973 for ; Mon, 15 Dec 2014 19:59:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8EF40209D3 for ; Mon, 15 Dec 2014 19:59:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751053AbaLOT7D (ORCPT ); Mon, 15 Dec 2014 14:59:03 -0500 Received: from mga02.intel.com ([134.134.136.20]:38205 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751057AbaLOT7C (ORCPT ); Mon, 15 Dec 2014 14:59:02 -0500 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 15 Dec 2014 11:58:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,691,1406617200"; d="scan'208";a="499097836" Received: from cst-linux.jf.intel.com ([10.23.221.72]) by orsmga003.jf.intel.com with ESMTP; 15 Dec 2014 11:54:48 -0800 From: arlin.r.davis@intel.com To: linux-rdma@vger.kernel.org Cc: Arlin Davis Subject: [PATCH 2/4] dtestx: allow scale up to 1000 EP's Date: Mon, 15 Dec 2014 11:58:53 -0800 Message-Id: <1418673535-1464-3-git-send-email-arlin.r.davis@intel.com> X-Mailer: git-send-email 1.7.3 In-Reply-To: <1418673535-1464-1-git-send-email-arlin.r.davis@intel.com> References: <1418673535-1464-1-git-send-email-arlin.r.davis@intel.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Arlin Davis Signed-off-by: Arlin Davis --- test/dtest/dtestx.c | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/test/dtest/dtestx.c b/test/dtest/dtestx.c index 8b3294a..931c860 100755 --- a/test/dtest/dtestx.c +++ b/test/dtest/dtestx.c @@ -143,7 +143,7 @@ int disconnect_ep(void); #define RCV_RDMA_BUF_INDEX 1 #define SEND_BUF_INDEX 2 #define RECV_BUF_INDEX 3 -#define MAX_EP_COUNT 8 +#define MAX_EP_COUNT 1000 #define MAX_AH_COUNT (MAX_EP_COUNT * 2) DAT_VADDR *atomic_buf; @@ -520,8 +520,8 @@ send_msg(void *data, if (ud_test) { /* * single QP - ep[0] and ah[0] for client and server - * multi QP - ep[i]->ah[i] for client, to 0 - * ep[0]->ah[i] for server, to all + * multi QP - ep[i]->ah[i] for client, i to i + * ep[0]->ah[i] for server, 0 to all */ if (multi_eps) { ah_idx = i; @@ -704,7 +704,10 @@ void process_conn(int idx) } if (ia_attr.extension_version >= 209) { - /* Destroy CM resources for AH resolution */ + LOGPRINTF("%s EP_L[%d]=%p -> cm %p CM_FREE\n", + ext_event->type == DAT_IB_UD_PASSIVE_REMOTE_AH ? + "PASSIVE":"ACTIVE ", ep_l, ep[ep_l], + ext_event->context.as_ptr); dat_ib_ud_cm_free(ep[ep_l], ext_event->context.as_ptr); } @@ -723,7 +726,7 @@ int connect_ep(char *hostname, struct sockaddr *ser_sa) DAT_DTO_COOKIE cookie; DAT_CONN_QUAL conn_qual; DAT_BOOLEAN in, out; - int i, ii, pdata, ctx; + int i, ii, pdata, ctx, qdepth = REG_MEM_COUNT; DAT_DTO_COMPLETION_EVENT_DATA *dto_event = &event.event_data.dto_completion_event_data; @@ -762,8 +765,10 @@ int connect_ep(char *hostname, struct sockaddr *ser_sa) } ep_attr.qos = 0; ep_attr.recv_completion_flags = 0; - ep_attr.max_recv_dtos = eps * 10; - ep_attr.max_request_dtos = eps * 10; + if (ud_test && !multi_eps) + qdepth = eps * REG_MEM_COUNT; + ep_attr.max_recv_dtos = qdepth; + ep_attr.max_request_dtos = qdepth; ep_attr.max_recv_iov = 1; ep_attr.max_request_iov = 1; ep_attr.request_completion_flags = DAT_COMPLETION_DEFAULT_FLAG; @@ -1548,7 +1553,7 @@ int main(int argc, char **argv) switch (rc) { case 'u': ud_test = 1; - eps = MAX_EP_COUNT / 2; + eps = 4; break; case 'm': multi_eps = 1;