tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lintpkgsrc 'Out of memory!' error



On Mon, Sep 3, 2012 at 1:04 PM, John Marino <netbsd%marino.st@localhost> wrote:
> On 9/3/2012 18:50, matthew sporleder wrote:
>>
>> On Mon, Sep 3, 2012 at 11:56 AM, John Marino<netbsd%marino.st@localhost>  
>> wrote:
>>>
>>> On 9/3/2012 16:55, matthew sporleder wrote:
>>>>
>>>>
>>>>
>>>> okay..  I -think- this should help.
>>>>
>>>> I didn't profile the program, but i'm pretty sure the listdir() sub
>>>> was the cause of your memory issue.
>>>> I created 10k distfiles in my dir and it ran on my system, RSS staying
>>>> under 20M
>>>> (there are a lot of efficiencies to be had overall, even in my
>>>> changes..)
>>>>
>>>>
>>>
>>> That's one way to fix it.
>>> After running "lintpkgsrc -or -M /mech/bulk" I now have 0 distfiles.
>>> But it didn't run out of memory....
>>>
>>>
>>
>> Your directory structure is like this?
>>
>> DISTDIR = /mech/bulk
>> PACKAGES = /mech/bulk/packages
>
>
> Almost.
> DISTDIR = /mech/bulk/distfiles
> PACKAGES = /mech/bulk/packages

-M should point to the distfiles dir.

the OOM was saving you from the same behavior you found after my patch.

I just tested on my system.

Sorry it happened, though,
Matt


Home | Main Index | Thread Index | Old Index