On 12/14/2012 09:51 PM, Nicolas M. Thiery wrote:
On Fri, Dec 14, 2012 at 09:34:06PM +0800, P Purkayastha wrote:
How much memory do you have? It works here on Gentoo amd64, with a
ulimit (didn't want to crash this machine :)):
~/tmp/a» ulimit -t 300 -m 1000 -u 1000 -v 2500000
~/tmp/a» make truc
sage cm.sage
~/tmp/a» echo $?
0
~/tmp/a» cat Makefile
truc:
sage cm.sage
~/tmp/a» cat cm.sage
x,y = var('x y')
desolve_rk4(x*y*(2-y), y, ics=[0,1], end_points=[0, 1], step=0.5)
I have 5Gb. Maxima eats up the memory very fast; so if you use a
ulimit you need to set it high enough, or to look quick, if you want
to have a chance to see the maxima process before it gets killed by
the system because it has reached the memory limit. Here is the test I
used:
It doesn't crash for me. Otherwise the output of "sage cm.sage" wouldn't
be just empty, and $? wouldn't be 0 either.
In fact, I tried it on another Gentoo installation I have, with
sage-5.5rc0. The result is the same, no crash.
~/tmp/Downloadz/a» time make truc
sage cm.sage
memory used in MB = 865.11328125
memory overhead after computation = 43.32421875
make truc 2.12s user 0.23s system 79% cpu 2.947 total
~/tmp/Downloadz/a» cat cm.sage
t = get_memory_usage()
print "memory used in MB = {0}".format(t)
x,y = var('x y')
desolve_rk4(x*y*(2-y), y, ics=[0,1], end_points=[0, 1], step=0.5)
print "memory overhead after computation = {0}".format(get_memory_usage(t))
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/sage-devel?hl=en.