On 2013-04-22, Stefan van Zwam <[email protected]> wrote:
> --Apple-Mail=_74BC8403-8943-4A42-AB16-3A3033AB1299
> Content-Type: text/plain; charset=ISO-8859-1
>
> Dear all,
>
> Gordon Royle has the following issue. Any ideas?
a memory leak?

>
> --Stefan van Zwam.
>
> Begin forwarded message:
>
>> Subject: [sage-matroid] Memory
>> Date: April 22, 2013 2:24:05 AM EDT
>> To: [email protected]
>> Reply-To: [email protected]
>> 
>> I'm trying to work with some collections of graphs and matroids, but I can't 
>> seem to keep the memory usage under control...
>> 
>> For example, I have a test file containing 100000 multigraphs that I want to 
>> import into sage and then process.
>> 
>> gs = []
>> gs.append(Graph([(0,1,0),(0,1,1),(0,1,2),(0,1,3),(2,3,4),(2,3,5),(2,3,6),(4,5,7),(4,5,8),(4,5,9),(0,1,10),(0,1,11),(0,1,12),(0,1,13),(0,1,14)]))
>> gs.append(Graph([(0,1,0),(0,1,1),(0,1,2),(0,1,3),(2,3,4),(2,3,5),(2,3,6),(4,5,7),(4,5,8),(4,5,9),(0,1,10),(0,1,11),(0,1,12),(0,1,13),(0,2,14)]))
>> 
>> and another 99998 lines of the same length.
>> 
>> 
>> The entire file occupies 14Mb of disk space.
>> 
>> When I run it through sage, the memory usage of the python2.7 process 
>> fluctuates dramatically from the 140Mb of the just started sage, up to over 
>> 4Gb before finally settling at 950Mb when the file is fully imported.
>> 
>> 
>> So somehow, my 14Mb file has blown out to over 800Mb when imported into 
>> Sage....
>> 
>> Given that this file is just a sample for my REAL file which has 4.2 million 
>> graphs, I just can't see how to proceed.
>> 
>> -- 
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-matroid" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to