Repository navigation
docs: virtiofs re-measurement script and honest 3.0.1 status (#523) - #542
Open
zcsizmadia wants to merge 1 commit into
Open
zcsizmadia wants to merge 1 commit into
zcsizmadia wants to merge 1 commit into
Conversation
The 9p-versus-virtiofs ratios on the vm-sizing page were measured on WSL 2.9.11, and 3.0 changed virtiofs internals. A ratio needs both transports on one machine and build, and switching needs `wsl --shutdown`. - scripts/measure-mounts.ps1: runs the page's method through a container bind mount for whichever transport the machine is on, refuses to record the wrong one (-Expect checks /proc/mounts), never shuts WSL down, and prints the page's table with ratios from a 9p and a virtiofs result (-Compare) - docs/vm-sizing.md: says the table is 2.9.11, records the one-sided WSL 3.0.1 virtiofs numbers from #523 explicitly as not giving any ratio, and documents how to take the baseline - doctor: its virtiofs detail says the ratios are not yet re-confirmed on 3.0
This branch has not been deployed
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.
Refs #523 (does not close it: the 9p baseline is still to be taken).
Items 1 and 2 of #523 landed in #528. Item 3, re-measuring the
docs/vm-sizing.mdtable, is blocked on a 9p baseline from the same machine and WSL build, which needswsl --shutdown, so it can't be done from a machine where that is unsafe.What this adds
scripts/measure-mounts.ps1: the page's method (Windows folder bind-mounted into a container, timed inside it, cold first write discarded, 3 rounds, medians with range, machine and WSL build recorded).wsl --shutdown.-Expect 9p|virtiofsis a guard: it reads the live/proc/mountsand refuses to record when it disagrees (settingwsl.virtiofswithout the shutdown leaves you on 9p and looks like success).-Compare 9p.json,virtiofs.jsonprints the page's table with ratios, and refuses runs from different WSL builds or machines.docs/vm-sizing.md: states the table is WSL 2.9.11 and that no claim has been confirmed on stable WSL; records the one-sided 3.0.1 virtiofs numbers from the issue explicitly as giving no ratio (including thatls -lis not faster than the old 0.22 s, still unexplained); documents how to take the baseline.Testing
-Comparechecked against synthetic fixtures (ratios, same-transport and mismatch refusals); the-Expectguard checked against a missing distro.-Rounds 1; those numbers are discarded and not recorded anywhere. It has not been run against a Skrog engine.Still open on #523
Run the script on virtiofs and on 9p (same machine, stable WSL), paste the
-Compareoutput into the table, update the "2.9.11" wording with the WSL version and date, decide whether 4.0× / 3.1× hold, and look atls -l.