[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: vm: Use "cache=loose" for all 9p mounts.
From: |
Ludovic Courtès |
Subject: |
07/07: vm: Use "cache=loose" for all 9p mounts. |
Date: |
Sun, 23 Sep 2018 17:34:32 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit fce225471128c4a5246342b3aa1b7e53a8066211
Author: Ludovic Courtès <address@hidden>
Date: Sun Sep 23 23:31:52 2018 +0200
vm: Use "cache=loose" for all 9p mounts.
This significantly improves read throughput when running things like
"guix hash -r ...".
* gnu/system/vm.scm (%linux-vm-file-systems): Add 'flags' for "store".
Add "cache=loose" to every file system.
---
gnu/system/vm.scm | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 435501d..a1b595d 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -99,21 +99,28 @@
(device "store")
(type "9p")
(needed-for-boot? #t)
- (options "trans=virtio")
+ (flags '(read-only))
+ (options "trans=virtio,cache=loose")
(check? #f))
+
+ ;; The 9p documentation says that cache=loose is "intended for
+ ;; exclusive, read-only mounts", without additional details. In
+ ;; practice it seems to work well for these, and it's much faster than
+ ;; the default cache=none, especially when copying and registering
+ ;; store items.
(file-system
(mount-point "/xchg")
(device "xchg")
(type "9p")
(needed-for-boot? #t)
- (options "trans=virtio")
+ (options "trans=virtio,cache=loose")
(check? #f))
(file-system
(mount-point "/tmp")
(device "tmp")
(type "9p")
(needed-for-boot? #t)
- (options "trans=virtio")
+ (options "trans=virtio,cache=loose")
(check? #f))))
(define not-config?
- branch master updated (e10bf49 -> fce2254), Ludovic Courtès, 2018/09/23
- 02/07: serialization: Remove redundancy in 'write-file'., Ludovic Courtès, 2018/09/23
- 03/07: store-copy: Display a progress bar when copying store items., Ludovic Courtès, 2018/09/23
- 04/07: database: 'register-items' shows a progress bar., Ludovic Courtès, 2018/09/23
- 01/07: system: Mention '--skip-checks' in initrd diagnostics., Ludovic Courtès, 2018/09/23
- 05/07: database: Register each store item only once., Ludovic Courtès, 2018/09/23
- 07/07: vm: Use "cache=loose" for all 9p mounts.,
Ludovic Courtès <=
- 06/07: vm: Disable deduplication for 'guix system vm-image'., Ludovic Courtès, 2018/09/23