Jason Grout wrote: > ma...@mendelu.cz wrote: >> >> On 13 Led, 17:47, "William Stein" <wst...@gmail.com> wrote: >>> On Tue, Jan 13, 2009 at 8:36 AM, ma...@mendelu.cz <ma...@mendelu.cz> wrote: >>> >>>> Dear all, >>>> I had a lecture in computer lab. There were about 15 students on one >>>> sage server. After about 20 minutes we got messages, that Sage lost >>>> connection to Maxima. I did not know how to establish the connection >>>> again and I restarted the virtual server (I run sage on virtual server >>>> under Debain lenny with Xen virtualization). >>>> Can you guess what happened (overloaded server? problems with memory?) >>>> and what to do with this next time? >>> How much RAM does the virtual server have? >>> >> 500 MB >> >> >> free >> total used free shared >> buffers cached >> Mem: 504828 396664 108164 0 134916 >> 113796 >> -/+ buffers/cache: 147952 356876 >> Swap: 273064 0 273064 > > > 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).
I should retract this statement. I just measured it again and found that it took about 40MB per worksheet process. To measure this, I started the sage server, created a new worksheet, and ran "1+1". I then looked at the free memory reported at the top of top. Then I created another new worksheet and ran "1+1", and checked the free memory again. The free memory went down by about 45MB. Michael Abshoff says that that numbers sounds about right. I don't know if I measured inaccurately before or if I just misremembered the number. At any rate, with that number, it seems that 15 simultaneous worksheets would use a minimum of 15*45=675MB, which is still more than you allocated. And as others point out, this is before the OS, the sage server, etc. Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---