]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix: increase default msize for 9p mounts to 32MiB depending on kernel support
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 2 Jul 2024 20:40:02 +0000 (17:40 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 2 Jul 2024 20:40:02 +0000 (17:40 -0300)
ChangeLog.md
kvmx
kvmxfile

index 490d1f2ac164ac4a5f989df43377b9f4db1ccf16..0cd4080b468b94b5377443daa5689c563d4a28f8 100644 (file)
@@ -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 3780cee069b6fe44d3646537ea7e26f10ecf06b0..b694145279c2a9f86b6ba28c599a1d814c70b2dc 100755 (executable)
--- 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
index 0ecfbabb16d7c1112816f55d93d7359143fbe703..af2b0d8fb9c4df931d8b1400dbe86ca9b22deb31 100644 (file)
--- 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