Memory allocated by PETSC?
Shi Jin
jinzishuai at yahoo.com
Wed Feb 28 16:14:19 CST 2007
Hi,
I am curious how much extra memory PETSc allocates in
the background. Since my estimate of memory usage of
the code is much smaller than what I see when it runs.
So I did this simple test:
First I used PETSc to dump a matrix in binary format
into a file. The file has a size of 13MB. I assume
this should be the same size that is used to store the
matrix in memory. Then I wrote a simple code that does
nothing but to load this matrix from the file by
MatLoad(). However, I found that the code consumes
29MB of memory (VIRT=29M from top) using single
process.
This is confirmed by the -malloc_log option where it
says
Maximum memory PetscMalloc()ed 29246912 maximum size
of entire process 0
I've attached the output of the code with detailed
malloc information.
Could you please explain to me about the difference
of over two time?
I don't want to criticize anything but need an clear
idea of how much memory is needed so that I know
whether there is a chance for me to reduce the memory
usage of my production code.
Thank you very much.
Shi
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out
Type: application/octet-stream
Size: 1455 bytes
Desc: 1857821269-out
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070228/724d9d05/attachment.obj>
More information about the petsc-users
mailing list