alexcrichton opened PR #15095 from alexcrichton:add-a-dknob to bytecodealliance:main:
This commit adds a configuration knob on
WasiCtxBuilderto control the default and maximum sizes of buffers used throughout wasmtime-wasi where necessary. These sizes have historically been limited in the past to ensure that guest memory usage is capped but this can cause real-world programs to break such as in WebAssembly/wasi-libc#894 where Python expects awritewith a large size to succeed all in one go and doesn't internally have a retry loop for remaining bytes.The default value of 64KiB is not changed in this commit, but the
wasmtimeCLI now has a default buffer size of 2MiB to work with more programs by default.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.mdPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton removed the review request for wasmtime-wasi-reviewers from PR #15095.
alexcrichton requested rvolosatovs for a review on PR #15095.
alexcrichton requested wasmtime-wasi-reviewers for a review on PR #15095.
alexcrichton requested fitzgen for a review on PR #15095.
alexcrichton removed the review request for wasmtime-core-reviewers from PR #15095.
alexcrichton requested wasmtime-core-reviewers for a review on PR #15095.
github-actions[bot] added the label wasi on PR #15095.
Last updated: Oct 31 2026 at 23:03 UTC