'Martin R' via sage-devel
2018-11-25 06:40:21 UTC
Dear memory experts!
I am running a big, but simple computation and running out of memory, but
do not understand why. I am pretty sure that the problem is in the
computation of the moebius function. Below is a silly minimal example,
together with some checks to make sure it's in moebius_function.
I would like to know how to debug this. (I am also in need of a workaround)
Martin
sage: get_memory_usage()
5512.4296875
sage: for P in posets(7):
....: Q = P.with_bounds()
....: x=Q.moebius_function(Q.bottom(), Q.top())
....:
sage: get_memory_usage()
5517.24609375
sage: for P in posets(7):
....: Q = P.with_bounds()
....: x=Q.moebius_function(Q.bottom(), Q.top())
....:
sage: get_memory_usage()
5521.76953125
sage: reset()
sage: get_memory_usage()
5521.76953125
sage: for P in posets(7):
....: Q = P.with_bounds()
....:
sage: get_memory_usage()
5522.04296875
sage: for P in posets(7):
....: Q = P.with_bounds()
....:
sage: get_memory_usage()
5522.30078125
sage: for P in posets(7):
....: Q = P.with_bounds()
....: x = Q.bottom()
....:
sage: get_memory_usage()
5522.44140625
I am running a big, but simple computation and running out of memory, but
do not understand why. I am pretty sure that the problem is in the
computation of the moebius function. Below is a silly minimal example,
together with some checks to make sure it's in moebius_function.
I would like to know how to debug this. (I am also in need of a workaround)
Martin
sage: get_memory_usage()
5512.4296875
sage: for P in posets(7):
....: Q = P.with_bounds()
....: x=Q.moebius_function(Q.bottom(), Q.top())
....:
sage: get_memory_usage()
5517.24609375
sage: for P in posets(7):
....: Q = P.with_bounds()
....: x=Q.moebius_function(Q.bottom(), Q.top())
....:
sage: get_memory_usage()
5521.76953125
sage: reset()
sage: get_memory_usage()
5521.76953125
sage: for P in posets(7):
....: Q = P.with_bounds()
....:
sage: get_memory_usage()
5522.04296875
sage: for P in posets(7):
....: Q = P.with_bounds()
....:
sage: get_memory_usage()
5522.30078125
sage: for P in posets(7):
....: Q = P.with_bounds()
....: x = Q.bottom()
....:
sage: get_memory_usage()
5522.44140625
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+***@googlegroups.com.
To post to this group, send email to sage-***@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+***@googlegroups.com.
To post to this group, send email to sage-***@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.