header

Categories::

Projects::

SAGE
M4RI
Code Snippets
ECrypt II
iliketotallyloveit

Stuff::

Junge Linke (de)
Battrock (de)

MiniMe::

BitBucket
Flickr
Tue, 21. Nov 2006

Memory Profiling

One thing SAGE is lacking is the ability to profile memory usage of a calculation. There are some tools available for Python allowing to inspect the used memory at a given point in time, however nothing seems to exist to draw pretty pictures of mem usage during the calculation. A workaround is to use a shell script sampling the SAGE process’ RAM usage every couple of seconds and write that information to some file. Such a script was posted to this forum and after some slight patching + wrapping. the memory usage of my F4 implementation computing a lexicographical Gröbner basis for a CTC ideal with B=4 and Nr=3 looks like this.

F4 memory consumption

The graph doesn’t say much - because the Python garbage collector might interfear - besides that the memory consumption is 3.5 GB max for this Gröbner basis calculation. Still, I guess 2.x GB after the calculation finished points to a memory leak somewhere.

Elsewhere: Looks like Uni-Bremen is benchmarker’s heaven.

posted at: 15:21 :: permanent link

Valid XHTML 1.0 Strict Valid CSS! blosxom