Stream: git-wasmtime

Topic: wasmtime / PR #3141 Fix pooling tests on high-cpu-count s...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 04 2021 at 15:18):

alexcrichton opened PR #3141 from fix-concurrency to main:

This commit fixes an issue where cargo test was failing pretty
reliably on an 80-thread system where many of the pooling tests would
fail in mmap to reserve address space for the linear memories
allocated for a pooling allocator. Each test wants to reserve about 6TB
of address space, and if we let 80 tests do that apparently Linux
doesn't like that and starts returning errors from mmap.

The implementation here is a relatively simple semaphore-lookalike
which allows a fixed amount of concurrency in pooling tests.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Aug 04 2021 at 16:49):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 04 2021 at 16:55):

alexcrichton merged PR #3141.


Last updated: Dec 23 2024 at 12:05 UTC