Stream: git-wasmtime

Topic: wasmtime / PR #15095 Add configuration for buffer sizes i...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 30 2026 at 19:50):

alexcrichton opened PR #15095 from alexcrichton:add-a-dknob to bytecodealliance:main:

This commit adds a configuration knob on WasiCtxBuilder to 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 a write with 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 wasmtime CLI now has a default buffer size of 2MiB to work with more programs by default.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 30 2026 at 19:50):

alexcrichton removed the review request for wasmtime-wasi-reviewers from PR #15095.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 30 2026 at 19:50):

alexcrichton requested rvolosatovs for a review on PR #15095.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 30 2026 at 19:50):

alexcrichton requested wasmtime-wasi-reviewers for a review on PR #15095.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 30 2026 at 19:50):

alexcrichton requested fitzgen for a review on PR #15095.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 30 2026 at 19:50):

alexcrichton removed the review request for wasmtime-core-reviewers from PR #15095.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 30 2026 at 19:50):

alexcrichton requested wasmtime-core-reviewers for a review on PR #15095.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 30 2026 at 22:44):

github-actions[bot] added the label wasi on PR #15095.


Last updated: Oct 31 2026 at 23:03 UTC