Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp772689ybg; Mon, 1 Jun 2020 14:08:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbFWkwOIEHLivAESViGSlCDjU3EbiPI2wLpjAKILd1aj0aWBxwRj3tCYm3/9bAVIYHP5d/ X-Received: by 2002:a17:906:2503:: with SMTP id i3mr21555659ejb.293.1591045717036; Mon, 01 Jun 2020 14:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591045717; cv=none; d=google.com; s=arc-20160816; b=tE7Mtg+CfBdrjXBeUswJA2idrkrGO5FW8DVWesS3RXaitX/oAZ+kVA0ySfSaGEqmEe ZemFyHvy27H90NVXDUkVNo4sxDE681quU5O/99YktlvLqO9AxEQstRH25yla8L/HvAhC HZCDmlU5WdHqHFTxF7BFKKJiTQHFbRcdpG23L42hoPpD823qKTa22O5/4wzrHfKJTnWQ tElOU/tdNf7enHq9skY92FAOjdwN6SN1+TsqoS2YyWggh5R39p5xNeZ9tVb1/jFW9O/3 8biX8q88YvaEwrTgU+PSyiFvIlm4r/GfNK7x2vq8hrKPwxhgemz8+lJO6oa8r3BxjzTH X+3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=tSV/xGV0VbYrRDd3p3mZch8Eueqs94bc+62KVqtOGu8=; b=GPidYPCRCCe6XC1kr8AWKVXfSuNY408GKP7oOT4fLwymAWgF9zXTSphfaknTQjEs3R 1UXcAu5hoTPC4OtIWtanuoK288eDFz8YjWLcnmSQD1wSW/z6axHm6Of8KK3FsZRr1hOg 10QWkXch1/mJdaz45fHrGvvkT9BpCVjW46r969fFmy6dwVAFB/yDMUIFczONRkuABdQ3 QhUJ7YqmzWLspEWlX2IwlIh97GGBT8lvWL2DvOzRnWY4WuOJAYLXdMB7536LTJk0KQZu BVM/xT4rEfz4qdsU9u1sEfnuLrFDPvMocoDd9usCsITsxtBzoPf6LrLqU4r6w7KPlCNs l9qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uCJYQiXo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id um1si400485ejb.200.2020.06.01.14.08.13; Mon, 01 Jun 2020 14:08:37 -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; dkim=pass header.i=@kernel.org header.s=default header.b=uCJYQiXo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728552AbgFAVG0 (ORCPT + 99 others); Mon, 1 Jun 2020 17:06:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:36616 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727875AbgFAVG0 (ORCPT ); Mon, 1 Jun 2020 17:06:26 -0400 Received: from localhost (c-67-164-102-47.hsd1.ca.comcast.net [67.164.102.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 563D32073B; Mon, 1 Jun 2020 21:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591045585; bh=JKKCcPSQ16JBYHZKrRYFmH1gNliKgP1BlndNb+gssBE=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=uCJYQiXodj60WSq0CnVF3iKVwa43WprWs1BZN9WRewFczGAqrs7i+Q3E8PaleOJyx HCN1p+zAxD9n38xJHpHaRnuIh13HMwwwprOxYhBIBOB2rAeU5sh0m29J2LC39rmfQQ CH8NGKE3y5IS9mlEOa72REboICezVZJ3c/cVcrxA= Date: Mon, 1 Jun 2020 14:06:24 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Dominique Martinet cc: Stefano Stabellini , 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 In-Reply-To: <20200522055847.GA2833@nautica> Message-ID: References: <20200521193242.15953-1-sstabellini@kernel.org> <20200522055847.GA2833@nautica> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org n Fri, 22 May 2020, Dominique Martinet wrote: > 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... Ping :-)