]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Feat: Increase default msize for 9p mounts to 4MiB
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 2 Jul 2024 18:18:20 +0000 (15:18 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 2 Jul 2024 18:18:20 +0000 (15:18 -0300)
ChangeLog.md
kvmx
kvmxfile

index 4e6c39453349e08a2f8638522c7f5a2267b39d9d..490d1f2ac164ac4a5f989df43377b9f4db1ccf16 100644 (file)
@@ -1,6 +1,8 @@
 # ChangeLog
 
-## 0.1.1 - unreleased
+## 0.1.1 - 2024-07-02
+
+* Increase default `msize` for 9p mounts to 4MiB.
 
 * QEMU parameter updates:
   * Update `nowait` to `wait=off`.
diff --git a/kvmx b/kvmx
index 2756896909b22a0e94d4cd6c6c2980019a9b3a97..3780cee069b6fe44d3646537ea7e26f10ecf06b0 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -461,7 +461,7 @@ function kvmx_up {
   fi
 
   if [ -z "$shared_folder_msize" ]; then
-    shared_folders_msize="524288"
+    shared_folders_msize="4194304"
   fi
 
   if [ -z "$shared_folders_cache" ]; then
index 2ce7ee0f5c81de518c05ab32519adc43d27c7fe7..0ecfbabb16d7c1112816f55d93d7359143fbe703 100644 (file)
--- a/kvmxfile
+++ b/kvmxfile
@@ -43,10 +43,17 @@ net="user"
 # Format: <id1>:<host-folder1>:<guest-mountpoint1>,<id2>:<host-folder2>:<guest-mountpoint2>[,...]
 #shared_folders="shared1:.:/home/$user/code/$VM,shared2:$HOME/.local/share/app:/home/$user/.local/share/app"
 
-# Maximum packet size including any headers for shared folders using 9p
-# See https://forums.lime-technology.com/topic/34691-9p-sharing-speed-not-what-i-expected/
+# Maximum packet size in bytex including any headers for shared folders using 9p
+# In the past this was limited to 500kB: https://lwn.net/Articles/901523/
+#
+# See https://wiki.qemu.org/Documentation/9psetup
+#     https://wiki.qemu.org/Documentation/9p
+#     https://www.kernel.org/doc/html/latest/filesystems/9p.html
 #     https://github.com/clearcontainers/hyperstart/pull/25
-#shared_folders_msize="524288"
+#     https://issues.guix.gnu.org/47225
+#
+# Example: 4194304 bytes = 4MiB
+#shared_folders_msize="4194304"
 
 # Shared folders caching
 # See https://www.kernel.org/doc/Documentation/filesystems/9p.txt