From patchwork Thu Jul 9 20:41:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever III X-Patchwork-Id: 6758931 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2B9BFC05AD for ; Thu, 9 Jul 2015 20:42:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5BD962078A for ; Thu, 9 Jul 2015 20:42:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 70AE020790 for ; Thu, 9 Jul 2015 20:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753840AbbGIUmE (ORCPT ); Thu, 9 Jul 2015 16:42:04 -0400 Received: from mail-qg0-f42.google.com ([209.85.192.42]:33143 "EHLO mail-qg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753787AbbGIUmD (ORCPT ); Thu, 9 Jul 2015 16:42:03 -0400 Received: by qgef3 with SMTP id f3so70910157qge.0; Thu, 09 Jul 2015 13:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:from:to:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=UdVen82AMJ8rbJ3zMB1K1Of+thSib9tznfqHdxsarSQ=; b=j4V1/AdDyHH9Et+3SKIxtSe/poc3Z/BG9ZsswGqNscj/Hf5Y3fWuZMFEZy87mvXgRX VtI8TKZPIIvicbhxavF50KkrTLDIq/jXAKUsKrUGxKibR+dttmQq4GhUvIhh2Ij3cGp6 aeiXXlT0D5vtoU+ihRE8z/3ZsYX+W+IIXKfv95BM06ujLDCOgbPfEDfJKZY5GIn+7ZTq HLL2plFWWY7xDJgVHGNP3pG9KmCiPq9qI41d5hYG5bXG1bjugADqbwu6/27HtvKZQBha 1D6AOG83R3/3u7jDWzbvfK1ld2Zd+1xuRu9E28vagSuU6xpN01MWJJ04R9V0QZETQuo8 FBSg== X-Received: by 10.55.42.35 with SMTP id q35mr27267216qkh.46.1436474521648; Thu, 09 Jul 2015 13:42:01 -0700 (PDT) Received: from manet.1015granger.net ([2604:8800:100:81fc:82ee:73ff:fe43:d64f]) by smtp.gmail.com with ESMTPSA id i197sm4206485qhc.36.2015.07.09.13.42.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 13:42:00 -0700 (PDT) Subject: [PATCH v1 02/12] xprtrdma: Raise maximum payload size to one megabyte From: Chuck Lever To: linux-rdma@vger.kernel.org, linux-nfs@vger.kernel.org Date: Thu, 09 Jul 2015 16:41:59 -0400 Message-ID: <20150709204159.26247.44592.stgit@manet.1015granger.net> In-Reply-To: <20150709203242.26247.4848.stgit@manet.1015granger.net> References: <20150709203242.26247.4848.stgit@manet.1015granger.net> User-Agent: StGit/0.17.1-3-g7d0f MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 The point of larger rsize and wsize is to reduce the per-byte cost of memory registration and deregistration. Modern HCAs can typically handle a megabyte or more with a single registration operation. Signed-off-by: Chuck Lever Reviewed-By: Devesh Sharma Reviewed-By: Sagi Grimberg --- net/sunrpc/xprtrdma/xprt_rdma.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h index f49dd8b..abee472 100644 --- a/net/sunrpc/xprtrdma/xprt_rdma.h +++ b/net/sunrpc/xprtrdma/xprt_rdma.h @@ -165,8 +165,7 @@ rdmab_to_msg(struct rpcrdma_regbuf *rb) * struct rpcrdma_buffer. N is the max number of outstanding requests. */ -/* temporary static scatter/gather max */ -#define RPCRDMA_MAX_DATA_SEGS (64) /* max scatter/gather */ +#define RPCRDMA_MAX_DATA_SEGS ((1 * 1024 * 1024) / PAGE_SIZE) #define RPCRDMA_MAX_SEGS (RPCRDMA_MAX_DATA_SEGS + 2) /* head+tail = 2 */ struct rpcrdma_buffer;