From f0ef5021f8c78e10f6667c4cdcee57bf0e550f50 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 2 Jul 2024 17:40:02 -0300 Subject: Fix: increase default msize for 9p mounts to 32MiB depending on kernel support --- ChangeLog.md | 4 +++- kvmx | 2 +- kvmxfile | 12 ++++++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 490d1f2..0cd4080 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -2,7 +2,9 @@ ## 0.1.1 - 2024-07-02 -* Increase default `msize` for 9p mounts to 4MiB. +* Increase default `msize` for 9p mounts to 32MiB depending on kernel support, + which may only be effective depending on `trans_virtio` driver support for + sizes larger than 500kB. * QEMU parameter updates: * Update `nowait` to `wait=off`. diff --git a/kvmx b/kvmx index 3780cee..b694145 100755 --- a/kvmx +++ b/kvmx @@ -461,7 +461,7 @@ function kvmx_up { fi if [ -z "$shared_folder_msize" ]; then - shared_folders_msize="4194304" + shared_folders_msize="33554432" fi if [ -z "$shared_folders_cache" ]; then diff --git a/kvmxfile b/kvmxfile index 0ecfbab..af2b0d8 100644 --- a/kvmxfile +++ b/kvmxfile @@ -52,8 +52,16 @@ net="user" # https://github.com/clearcontainers/hyperstart/pull/25 # https://issues.guix.gnu.org/47225 # -# Example: 4194304 bytes = 4MiB -#shared_folders_msize="4194304" +# Examples: 4194304 bytes = 4MiB +# 16777216 bytes = 16MiB +# 33554432 bytes = 32MiB +# +# Depending on upstream support (kernel and virtio), the underlying drivers may +# cap this to a max, and give you the following message: +# +# 9pnet: Limiting 'msize' to 512000 as this is the maximum supported by transport virtio +# +#shared_folders_msize="33554432" # Shared folders caching # See https://www.kernel.org/doc/Documentation/filesystems/9p.txt -- cgit v1.2.3