From patchwork Mon Jul 13 16:30:01 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: 6780321 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 1090E9F38C for ; Mon, 13 Jul 2015 16:30:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 176E820549 for ; Mon, 13 Jul 2015 16:30:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA5C520547 for ; Mon, 13 Jul 2015 16:30:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750919AbbGMQaE (ORCPT ); Mon, 13 Jul 2015 12:30:04 -0400 Received: from mail-qg0-f46.google.com ([209.85.192.46]:35012 "EHLO mail-qg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751630AbbGMQaE (ORCPT ); Mon, 13 Jul 2015 12:30:04 -0400 Received: by qget71 with SMTP id t71so158711823qge.2; Mon, 13 Jul 2015 09:30:03 -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=Ll2UI9FIqknZXMce/ykWsWmC1p0+RNKOrUjuMPxmJ2g=; b=OIUMEgT90fGverTnleiVbsE4NnVhcKCsRFxP59lo1FXFvZy30hNmEjxN4Mw8xLWjEC p9elLEZYbQcotscQaDo0pCT1U9fI3uP6FWZAt74K1KrfkpV4+t9xE7CcafGnKVlOauSt x4bBGieH8iCn9zSUB8CAA2N8V1TsGFF2Cs3WGw0PkMkMpPI+XCh9odbzkYhZx+HOfOfW PBTwKGfLOG73E5gVGJkOO1mBcrb+dF6X1Ls1OnbLh5QiW22eKneHuG/J13kZLfTDAk6I YoP8daryO6ZPasguHaR6Tzee4Hmkn2s4/JD8My49bsg9DMs8buq5KkDZhHEjGpcdiIi0 bfRQ== X-Received: by 10.140.150.142 with SMTP id 136mr54580257qhw.17.1436805003335; Mon, 13 Jul 2015 09:30:03 -0700 (PDT) Received: from manet.1015granger.net ([2604:8800:100:81fc:82ee:73ff:fe43:d64f]) by smtp.gmail.com with ESMTPSA id n107sm11212532qgn.13.2015.07.13.09.30.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2015 09:30:02 -0700 (PDT) Subject: [PATCH v2 02/14] xprtrdma: Raise maximum payload size to one megabyte From: Chuck Lever To: linux-rdma@vger.kernel.org, linux-nfs@vger.kernel.org Date: Mon, 13 Jul 2015 12:30:01 -0400 Message-ID: <20150713163001.17630.43320.stgit@manet.1015granger.net> In-Reply-To: <20150713160617.17630.97475.stgit@manet.1015granger.net> References: <20150713160617.17630.97475.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=-8.2 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 --- 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;