Sigil 0.23.1
A bug-fix release for long-running programs. Short file reads no longer inflate the garbage collector's allocation totals, and minor collections give back oversized temporary storage.
Less memory growth in long-running programs
Programs that repeatedly read files shorter than the requested buffer, such as many small files under /proc, could accumulate inflated allocation totals and hold onto much more memory than their data needed. The 0.22 line fixed short-read accounting in 0.22.15, but 0.23.0 shipped without that fix.
Short reads now charge only the bytes returned, and minor collections clear only the scratch space they need and return oversized storage. In a 10-minute nested desktop replay with about 700 processes and 30-second census timers, resident memory fell from 1,298 MB to 241 MB. Mean minor pauses fell from 47.6 ms to 36.6 ms, p99 from 93.8 ms to 56.2 ms, and the worst from 151.3 ms to 56.8 ms.
Fixes
- A file read error could leave an incompletely initialized bytevector for a later collection. Failed reads now clean up their temporary buffer directly.
- Large collector scratch sizes can no longer overflow into a tiny table and hang a collection. Failure to allocate scratch space now stops with a fatal error instead of skipping part of the scan.