[Scons-users] Out of memory writing back the database

Eric Fahlgren ericfahlgren at gmail.com
Fri Dec 1 12:19:06 EST 2017


No, we just update the repository and do the build.  The WIN32/install
directory is basically our installer archive, so it just sits there on one
of our servers accumulating gigabytes of garbage year after year...

Thanks for the tip on the sconsign utility, I just ran it on the old
database and it shows files dated as long ago as 2015-02-19, confirming
that it's at least a year and a half old.

(
It also crashes on that old database, but I don't think it's worth looking
into, do you care?  (Works fine on all the newer ones.)

File "t:/Python27/Scripts/sconsign.py", line 277, in map_bkids
    result.append(nodeinfo_string(bkids[i], bkidsigs[i], "        "))
IndexError: list index out of range
)


On Fri, Dec 1, 2017 at 9:01 AM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> You're not building production from a clean sandbox? (and/or via CI)
> -Bill
>
> On Fri, Dec 1, 2017 at 8:59 AM, Eric Fahlgren <ericfahlgren at gmail.com>
> wrote:
>
>> I got curious while reading this thread and looked at our .sconsign
>> files.  Most of them are around 300K, but the one in our production
>> directory was 2.5M (pretty tiny compared to Steve's 500M, but interesting
>> in that it's
>> ​10x bigger
>>  even though it's building the same source).  All of the small ones are
>> just test builds
>> ​ --
>>  one or two builds in them and then they get deleted.  The one in
>> production is many years old, with one build per day.
>>
>> I did this to get a rough look at a few of them:
>>
>> >>> python -c 'from SCons import dblite ; x =
>> dblite.open(".sconsign.dblite") ; print("\n".join("%7s %s"% (len(x[s]),
>> s) for s in sorted(x.keys())))'
>>
>> The list of keys is the same for all of those that I examined, but the
>> data blob seems to grow with use.  (I trimmed out three of the most
>> interesting ones, there were a couple hundred entries in each dump.)
>>
>>     660 win32\build
>>   23546 win32\install
>>   35249 win32\install\bin
>>
>> In production:
>>
>>  133860 win32\build
>> 2293371 win32\install
>>   83235 win32\install\bin
>>
>> The growth of the install directory
>> ​ blob​
>> itself is pretty easy to explain: we create a number of "release
>> versioned" files there, each has a file name containing the day's build
>> number so we have something like "WIN32/install/installer1234.exe" with
>> a different number each day.
>>
>>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20171201/0e24e01a/attachment.html>


More information about the Scons-users mailing list