virtiofs: enable cache, inode file handles#1817
Merged
brianmcgillion merged 2 commits intotiiuae:mainfrom Mar 11, 2026
Merged
Conversation
91901b4 to
2f0b9d0
Compare
2f0b9d0 to
9b423f8
Compare
vunnyso
reviewed
Mar 11, 2026
Attempt to improve load times for shared store access by enabling virtiofs cache Bump microvm.nix to include upstream inodeFileHandles change Signed-off-by: Kajus Naujokaitis <kajus.naujokaitis@unikie.com>
9b423f8 to
8a65246
Compare
vunnyso
reviewed
Mar 11, 2026
Disabled s76 scheduler by default, as there seems to be no clear performance improvement. Adjusted TuneD config for the host to use transparent_hugepages when not on powersave profile, reduced vm.swappiness Signed-off-by: Kajus Naujokaitis <kajus.naujokaitis@unikie.com>
8a65246 to
ec3d0c9
Compare
vunnyso
approved these changes
Mar 11, 2026
brianmcgillion
approved these changes
Mar 11, 2026
Open
19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description of Changes
Upstream microvm recently made a change that sets virtiofs to prefer inode file handles by default.
Here we bump microvm.nix to include this change.
In addition, we explicitly change the virtiofs cache setting from the default
autotoalways.Reference manual for these options can be found here
https://gitlab.com/virtio-fs/virtiofsd
These options should hopefully improve the load times for various apps, tools, and libraries, especially on subsequent launches.
Other changes:
Type of Change
Related Issues / Tickets
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify: