From patchwork Mon Aug 3 17:02:50 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: 6931311 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BAD119F358 for ; Mon, 3 Aug 2015 17:03:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B910F200E3 for ; Mon, 3 Aug 2015 17:03:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7639C2039E for ; Mon, 3 Aug 2015 17:02:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754039AbbHCRCy (ORCPT ); Mon, 3 Aug 2015 13:02:54 -0400 Received: from mail-qg0-f50.google.com ([209.85.192.50]:34448 "EHLO mail-qg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753195AbbHCRCx (ORCPT ); Mon, 3 Aug 2015 13:02:53 -0400 Received: by qgeu79 with SMTP id u79so93183595qge.1; Mon, 03 Aug 2015 10:02:52 -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=wUUBsXPRCGC1v+FZZkYQgUUByOpkp0GA8HIqAOif1s0=; b=n+2e/ubPLkh/O6tyEei1EJbIP9cXhlOD098/5FVFOvm1cJXIYr1v1qXbitpSBx4xuG kiPGTEM3JIQqycku3133C/yAf5AhN1HgFY5WqCkKHrlIwa1Pr64suivHJbk6AkEXqqpf jtSTnSDQAruUKJDlj8MMw/Z+H44ySI6N/MfjMyB5fZxZqaMJel2jeJ9HiYXC75H4mOsS B6AtzrBaGlPyzgChHxDmMb7Qpwg5g3lcE+Nn7Ueo4GDNxn44aT/s512q9oNR0jIRlyHS zX6eEOfcNE111wagGyhFXAsjZrftxdDGbyRUoshWhaIVQ9I7rsPXXISMPTqUCPVMP6iN oiCg== X-Received: by 10.140.95.5 with SMTP id h5mr26036217qge.68.1438621372636; Mon, 03 Aug 2015 10:02:52 -0700 (PDT) Received: from manet.1015granger.net ([2604:8800:100:81fc:82ee:73ff:fe43:d64f]) by smtp.gmail.com with ESMTPSA id z73sm7154989qkg.44.2015.08.03.10.02.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 10:02:51 -0700 (PDT) Subject: [PATCH v4 02/16] xprtrdma: Raise maximum payload size to one megabyte From: Chuck Lever To: linux-rdma@vger.kernel.org, linux-nfs@vger.kernel.org Date: Mon, 03 Aug 2015 13:02:50 -0400 Message-ID: <20150803170250.9115.64462.stgit@manet.1015granger.net> In-Reply-To: <20150803165807.9115.23842.stgit@manet.1015granger.net> References: <20150803165807.9115.23842.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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 Tested-by: Devesh Sharma --- 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;