From 1a09381d1e947a1e89d313d7fb8db09ad5d6dda4 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 3 Aug 2022 18:49:25 +0000 Subject: [PATCH] docs: mention thread pool option for virtiofsd Signed-off-by: Wei Liu --- docs/fs.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/fs.md b/docs/fs.md index 9f4b201bd..80f0f5f76 100644 --- a/docs/fs.md +++ b/docs/fs.md @@ -32,7 +32,8 @@ _Run virtiofsd_ --log-level debug \ --socket-path=/tmp/virtiofs \ --shared-dir=/tmp/shared_dir \ - --cache=never + --cache=never \ + --thread-pool-size=$N ``` The `cache=never` option is the default when using `virtiofsd` with @@ -44,6 +45,10 @@ The `cache=always` option will allow the host page cache to be used, which can result in better performance for the guest's workload at the cost of increasing the footprint on host memory. +The `thread-pool-size` option controls how many IO threads are spawned. For +very fast storage like NVMe spawning enough worker threads is critical to +getting an acceptable performance compared to native. + ### Kernel support Modern Linux kernels (at least v5.10) have support for virtio-fs. Use of older