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 5:36 AM, Marc Espie <espie%nerim.net@localhost> wrote:
> On Sun, Sep 02, 2012 at 08:53:50PM +0000, David Holland wrote:
>> On Sun, Sep 02, 2012 at 11:08:23AM +0200, John Marino wrote:
>>  > I'm not having luck with lintpkgsrc today.
>>  >
>>  > This command: lintpkgsrc -or -M /mech/bulk
>>  > terminated with "Out of memory!"
>>  >
>>  > It's an 8GB machine, but 4600M are truncated since the 32-bit
>>  > platform was installed on it.  Still, with nearly 4GB of ram,
>>  > lintpkgsrc runs out of memory just identifying obsolete distfiles?
>>  >
>>  > Is there a way to work around this?
>>
>> rewrite it not in perl? :(
>
> There's totally no reason for stuff to be inefficient when written in perl.
> Over in OpenBSD, we have quite a few tools that ARE written in perl, deal
> with the full pkgtree, and work within reasonable memory (60 - 100M for
> really big jobs that handle all the packing-lists of all packages)
>
> Of course, this requires knowing your tool.  Just look through pkglintsrc,
> pass a few suspect data structures thru Devel::Size, and you'll soon figure
> out what's wrong.

agreed..

how many files do you have in /mech/bulk ?


Home | Main Index | Thread Index | Old Index