Summary: | FreeBSD-head-i386-build build is failing because xz ran out of memory | ||
---|---|---|---|
Product: | Base System | Reporter: | Enji Cooper <ngie> |
Component: | misc | Assignee: | Xin LI <delphij> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | delphij, lwhsu |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Enji Cooper
2017-02-11 20:37:56 UTC
delphij: I'm CCing you because this might be an issue with contrib/xz . (In reply to Ngie Cooper from comment #1) The default memory usage per thread is, according to manual page of xz(1), 94MiB: -6 8 MiB 6 94 MiB 9 MiB So with -T 0, the maximum usage would be greater than 2GiB on a system with 12 CPUs for a sufficiently large file. Can you try e.g. changing the threads to a limited number, e.g. cap at 8 for 32-bit systems and see if that would mitigate this? If that works, I think we need to rethink the -T 0 strategy... (In reply to Xin LI from comment #2) I've tried putting "XZ_CMD=xz -T 8" in make.conf and that works. Should we fix this in release/ and/or xz itself to prevent it exhausting all memory? After discussing with delphij@, we should fix this in xz(1) Xin, could you help to check this? This was fixed in 866fe991ac4014aafb031f2651f52444e2fdf3c5 (and upstream fixed it differently in f99e4a2d11f051c280ce97f0feb06463a9e8c23d). |