mozilla-inbound is currently approval-only due to issues with Windows PGO builds. The short explanation is that we turn on aggressive code optimization for our Windows builds. This aggressive code optimization causes the linker than comes with Visual Studio to run out of virtual memory. The current situation is especially problematic because we can’t increase the amount of virtual memory the linker can access (unlike last time, where we “just” moved the builds to 64-bit machines).
We don’t really have a good handle on what causes these issues (other than the obvious “more code”), but at least we are tracking the linker’s vsize and we’ll soon have pretty pictures of the same. We hadn’t expected to have to deal with this problem for several more months. The graph below helps explain why we’re hitting this problem a little sooner than before. The data for this graph was taken from the Windows nightly build logs.
Notice the massive spike in October, as well as the ~100MB worth of growth in early January. While the data is not especially fine-grained (nightly builds can include tens of changesets, and we’d really like information on the vsize growth on a per-changeset basis), looking at the biggest increases over the last ten months might prove helpful. There have been ~300 nightly builds since we started recording data; below is a list of the top 20 daily increases in linker max vsize. The date in the table is the date the nightly build was done; the newly-included changeset range is linked to for your perusal.
|Nightly build date||vsize increase (MB)|
Mike Hommey suggested that trying to divine the whys and hows of extra memory usage would be a fruitless endeavor. Looking at the above pushlogs, I am inclined to agree with him. There’s nothing in any of them that jumps out. I didn’t try clicking through to individual changesets to figure out what might have added large chunks of code, though.