Return-Path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:34175 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753496AbcDZUmb (ORCPT ); Tue, 26 Apr 2016 16:42:31 -0400 Subject: Re: [PATCH v2 04/18] xprtrdma: Prevent inline overflow To: Chuck Lever References: <20160425185956.3566.64142.stgit@manet.1015granger.net> <20160425192120.3566.99978.stgit@manet.1015granger.net> <571FC7A3.2010407@grimberg.me> Cc: linux-rdma , Linux NFS Mailing List From: Sagi Grimberg Message-ID: <571FD2B3.1010505@grimberg.me> Date: Tue, 26 Apr 2016 23:42:27 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Sender: linux-nfs-owner@vger.kernel.org List-ID: >>> When deciding whether to send a Call inline, rpcrdma_marshal_req >>> doesn't take into account header bytes consumed by chunk lists. >>> This results in Call messages on the wire that are sometimes larger >>> than the inline threshold. >> >> I'm not sure I understand why you need to account the chunk list size >> when deciding on the inline data size., aren't chunk lists for remote >> access only? > > The chunk lists and RPC message payload effectively > share the same 1024-byte buffer (it's two buffers > gathered, but the sum of the two buffer sizes has to > be less than 1025). > > If the chunk lists are large, the RPC message size is > reduced. > I'm effectively asking when will a chunk list and inline data would appear in the same message? Is it when we want to send the first X bytes inline and have the remote read the rest Y-X bytes? Sorry if this is completely basic, just trying to understand if you really need that upper limit...