On Jan 13, 10:52 am, Jason Grout <jason-s...@creativetrax.com> wrote:
> ma...@mendelu.cz wrote:
<SNIP>
> I noticed that for my Sage server, each open worksheet took about 140MB
> of RAM. When I ran out of memory, the server froze and lots of errors
> happened. To me, it sounds like you probably ran out of memory if you
> had 15 worksheets open simultaneously (which I would calculate would
> need about 15*140=2100 MB of RAM).
This is not how this works, i.e. a lot of the memory Sage uses is
shared mappings between libraries, so the first notebook process is
much, much more expensive than subsequent ones. top and the default
interface it uses on Linux is dumb regarding shared mappings, i.e.
every notebook process is reported to use every library that is
dlopened by Sage.
One can reduce Sage's memory consumption by doing a couple things like
stripping its libraries and so on, but this is not done by default.
> You can test this yourself by opening up your notebook and opening up 15
> worksheets in different tabs in your browser. Run a calculation in each
> one and check to see how much memory you have then. Also, you might see
> how much memory is consumed by running a single worksheet (i.e., check
> the memory usage, start up a single worksheet and calculate something,
> and then check the memory usage again).
Using Python gives a certain penalty since the memory consumption is
higher than for something written more low level, but as Robert did
remark later in this thread imports a lot of functionality per default
beyond "simple" 2D plotting. And running code that creates a bunch of
graphical output on an image with 500 MB (which the operating system
has to fit in, too) is clearly rather on the low. On top of that
running many Maxima processes on an OS with little free memory will
easily make Maxima fail to allocated more memory because of the way
clisp allocates memory.
> Jason
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---