numarray memory leak

John Hunter jdhunter at ace.bsd.uchicago.edu
Sun Nov 14 10:25:04 EST 2004


>>>>> "Peter" == Peter Dobcsanyi <peter at designtheory.org> writes:


    Peter> With n a few hundreds (say n>=500), the continuous growth
    Peter> of the program's memory footprint is quite noticeable. I am
    Peter> working on Linux (Debian testing), I monitor the memory
    Peter> usage of the program by top.  The allocated memory is never
    Peter> released.

    Peter> I have noticed this problem of memory leak in connection
    Peter> with numarray a few months ago in a program of mine. The
    Peter> program processes the incidence matrices of thousands of
    Peter> combinatorial structures read from a file one by one. As
    Peter> the number of combinatorial objects went up I started
    Peter> running out of memory even on a machine with 2 Gbyte
    Peter> memory.  It took me a while to pinpoint that it was caused
    Peter> by matrix multiplication.

    Peter> I will try the CVS.

Yep, numarray 1.1 has a memory leak in dot, which Matrix multiply
uses.  It also has a leak in cumulative boolean functions like
sometrue.  Both are fixed in CVS.

JDH



More information about the Python-list mailing list