Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp10474ybr; Thu, 21 May 2020 23:03:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzrNJ33ptfQvzjJYLc6U1AwSaxOtiY2b9AkT4BgUO5KpBckt/dtS0Yhvxrq/NIODT17nrr X-Received: by 2002:a17:906:6bc5:: with SMTP id t5mr6564976ejs.459.1590127381154; Thu, 21 May 2020 23:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590127381; cv=none; d=google.com; s=arc-20160816; b=rO3Ao4u90NNYqxPuDsatfns1o3OnciGVdH1nO0bW6qMcMtKaOp/T1QvgehldhyyXyb 3vz+UDYOWv5ZhhZJKepq43g7KzbyKhftae6ie3VGezeKQKEBhFP5RHO06PaKvZIMvXK2 Q2KzvCNAE1iW3jZ7lbccvA+kMzZEbcguMMtm2GTGFswSXUMfrU8AVoR3wUEQdD/0VzdW epV5E6ad4CNfTJ2bRHzC+Bcfij8+h21HNBOSPiyyPZyph7lAmSBg++mTl8ef9jnKDWQM xxpFUmDaclEYfeCYhDdmnbRIoK2EM0uU40JYj65G2owkCMoOCyFOJsZ0e2ShU+nOPbIC XHEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VNzELlHeC27QCLHICRyA9SmMzD+uZDaudpmDyA1wVDU=; b=ZM3bgNIvKBkE+slXuGDbpJsEAosBiMF995bKHjIUz6ZBIvpnEkZj6L1SlZpUvMSpdE 4qGK1Q+Ulp2hPyd3ZmcSmlDi0O05L8I3cUKAiFE+xvuNQmxftb5BKQ+c4mm5voMZPPFT 53T85Gb+pDnPGVaqxmpoErSKr6OF8XmbHurRWz4kf0b4za+79jdltsGR/iQ3YY+X+/ch jlA0UKUQN5H9tSh13YWWJaS6CnGSZuuWmA9vBYox3o2Loz4DmMcCfH5o7Z7YTS2cHFRH 8fL7xKHSUxp4OsQuiA9O+NXn0bY/LbxS/KeKmz5LcHvYf5lyKWB2w70zYBxb+qenAR9N xLYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be4si4100718edb.210.2020.05.21.23.02.38; Thu, 21 May 2020 23:03:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728125AbgEVF7E (ORCPT + 99 others); Fri, 22 May 2020 01:59:04 -0400 Received: from nautica.notk.org ([91.121.71.147]:38062 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgEVF7E (ORCPT ); Fri, 22 May 2020 01:59:04 -0400 X-Greylist: delayed 123720 seconds by postgrey-1.27 at vger.kernel.org; Fri, 22 May 2020 01:59:03 EDT Received: by nautica.notk.org (Postfix, from userid 1001) id 8C85FC009; Fri, 22 May 2020 07:59:02 +0200 (CEST) Date: Fri, 22 May 2020 07:58:47 +0200 From: Dominique Martinet To: Stefano Stabellini Cc: jgross@suse.com, boris.ostrovsky@oracle.com, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, ericvh@gmail.com, lucho@ionkov.net, Stefano Stabellini Subject: Re: [PATCH v2] 9p/xen: increase XEN_9PFS_RING_ORDER Message-ID: <20200522055847.GA2833@nautica> References: <20200521193242.15953-1-sstabellini@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200521193242.15953-1-sstabellini@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stefano Stabellini wrote on Thu, May 21, 2020: > From: Stefano Stabellini > > Increase XEN_9PFS_RING_ORDER to 9 for performance reason. Order 9 is the > max allowed by the protocol. > > We can't assume that all backends will support order 9. The xenstore > property max-ring-page-order specifies the max order supported by the > backend. We'll use max-ring-page-order for the size of the ring. > > This means that the size of the ring is not static > (XEN_FLEX_RING_SIZE(9)) anymore. Change XEN_9PFS_RING_SIZE to take an > argument and base the calculation on the order chosen at setup time. > > Finally, modify p9_xen_trans.maxsize to be divided by 4 compared to the > original value. We need to divide it by 2 because we have two rings > coming off the same order allocation: the in and out rings. This was a > mistake in the original code. Also divide it further by 2 because we > don't want a single request/reply to fill up the entire ring. There can > be multiple requests/replies outstanding at any given time and if we use > the full ring with one, we risk forcing the backend to wait for the > client to read back more replies before continuing, which is not > performant. > > Signed-off-by: Stefano Stabellini LGTM, I'll try to find some time to test this by the end of next week or will trust you if I can't make it -- ping me around June 1st if I don't reply again until then... Cheers, -- Dominique