From patchwork Thu Sep 16 18:26:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Schoenebeck X-Patchwork-Id: 12500111 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35DE2C433F5 for ; Thu, 16 Sep 2021 19:30:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1881061164 for ; Thu, 16 Sep 2021 19:30:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232710AbhIPTcA (ORCPT ); Thu, 16 Sep 2021 15:32:00 -0400 Received: from lizzy.crudebyte.com ([91.194.90.13]:42925 "EHLO lizzy.crudebyte.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232196AbhIPTcA (ORCPT ); Thu, 16 Sep 2021 15:32:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Subject:Date:From:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Content-ID: Content-Description; bh=ik1mOPhHb219qFHw9mwE2yMv9/LvK/U8Z7AlP83Kzrw=; b=XE9A1 A4xteQqWYuuXCJk8nAkFULgkG112yddY0a5bRZkv40AmTAPMYaNqxzhwNSHNAfbxgUmKDaLM/kGy9 1aimAtHANoA1LFy2qaNvafx5DJ4sVfCLJL02Xhsec5WiYemFJEesZhDNJKtPAfw1QRXWajsSIzuGx o2MIUjONTxjd2tG4R4SHtFVl66P75AujcWtJiD+tussAu8kKjH1AeQq2lctUaKmCqBk/TE2ih8Hej CpKDErQ8sMS5/JpbHR5gLPsub4/skqX9deWcxUOsRyYeX6xupBl0oGJSJRBrIsV36iFRzO04+Irtf C5lOrNuUrRPZaIdAxEHpEb0CBwyww==; Message-Id: From: Christian Schoenebeck Date: Thu, 16 Sep 2021 20:26:08 +0200 Subject: [PATCH 0/7] net/9p: remove msize limit in virtio transport To: v9fs-developer@lists.sourceforge.net Cc: netdev@vger.kernel.org, Dominique Martinet , Eric Van Hensbergen , Latchesar Ionkov , Greg Kurz , Vivek Goyal Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This is an initial draft for getting rid of the current 500k 'msize' limitation in the 9p virtio transport, which is currently a bottleneck for performance of Linux 9p mounts. This is a follow-up of the following series and discussion: https://lore.kernel.org/all/28bb651ae0349a7d57e8ddc92c1bd5e62924a912.1630770829.git.linux_oss@crudebyte.com/T/#eb647d0c013616cee3eb8ba9d87da7d8b1f476f37 Known limitation: With this series applied I can run QEMU host <-> 9P virtio <-> Linux guest with up to 3 MB msize. If I try to run it with 4 MB it seems to hit some limitation on QEMU side: qemu-system-x86_64: virtio: too many write descriptors in indirect table I haven't looked into this issue yet. Testing and feedback appreciated! Christian Schoenebeck (7): net/9p: show error message if user 'msize' cannot be satisfied 9p/trans_virtio: separate allocation of scatter gather list 9p/trans_virtio: turn amount of sg lists into runtime info 9p/trans_virtio: introduce struct virtqueue_sg net/9p: add trans_maxsize to struct p9_client 9p/trans_virtio: support larger msize values 9p/trans_virtio: resize sg lists to whatever is possible include/net/9p/client.h | 2 + net/9p/client.c | 18 ++- net/9p/trans_virtio.c | 281 ++++++++++++++++++++++++++++++++++------ 3 files changed, 261 insertions(+), 40 deletions(-)