On Wed, Dec 23, 2009 at 3:31 AM, Dr. David Kirkby <david.kir...@onetel.net> wrote: > David Joyner wrote: >> On Tue, Dec 22, 2009 at 8:08 PM, Dr. David Kirkby >> <david.kir...@onetel.net> wrote: >>> I've just set this Sage 4.2.1 server up. >>> >>> It's on my home computer, on a slow network, so performance wont be great. >>> The >>> machine is also 8 years old, so don't expect miracles from it! >>> >>> It is running on Solaris 10 update 7, in a zone, so nobody can't bring down >>> my >>> system, even if someone manages to hack it and get root access. >>> >>> (Zones are quite different to VirtualBox. They run the same operating >>> system, as >>> the host, and share many files. But their overhead is very small. About 40 >>> MB >>> RAM and even dozens of zones will use < 1% CPU time on a fast machine. >>> VirtualBox does not support the SPARC processor, whereas Zones run on SPARC >>> too). >>> >>> >>> I've limited this zone to one 1200 MHz CPU, 6 GB RAM and 4 GB swap. >>> >>> http://213.78.42.15:8000 >>> >>> I'd just be interested if it functional. >> >> >> Not for me. I got an "internal error" of some type. >> I could not create worksheets or upload sws files >> (though the sws files I tested were from 4.3.rc0) > > OK, I investigated this best I could. > > I can see on the console for this Solaris zone: > > Dec 23 02:40:30 t2nb tmpfs: WARNING: /etc/svc/volatile: File system full, swap > space limit exceeded. > > So something caused the Solaris zone to use up more the 3 GB swap I'd limited > it > to. Given I'd allocated the zone 6 GB of physical RAM, that's a lot of > resources > being used! There's plenty of machines sold today with less than 6 GB RAM.
That was me, since you specifically asked somebody to try to use up all RAM. I did this right when David was trying to upload worksheets. This was by using the matrix(ZZ,10000) command (or something like that). You might recall that I specifically said in this thread that I was doing so. > Sage was the only program running in the zone, so perhaps Sage running on > Solaris is using up an excessive amount of resources for some reason. (This > would indicate that Sage *must* run in a zone when run on 't2', but as William > is aware, I had some problems getting a zone networked properly on 't2'. On my > own machine, I had no such problems.) > > At 2009-12-23 02:50:10 (some 10 minutes later), Sage indicates it run out of > space. There are some messages about not enough pty devices > > Here's the output shown by Sage. (note I'd modified the banner a bit, but > apart > from that, this was version 4.2 upgraded to 4.2.1). > > It should be noted > > 1) I built this on a completely different physical machine - a much older one, > with an early release of Solaris. > > 2) The 'sage -bdist' command does not work on Solaris, so I copied this over > to > the zone on the other machine using scp. That is not copying the links > properly > (creating new files instead of links.) I gather this is a nature of scp, as it > is based on the older 'rcp' which does not handle links. > > The failure to copy the links properly caused a problem when starting sage, > but > a Google on that showed me how to get around it. > > $SAGE_ROOT/devel/sage was a copy, not a link to $SAGE_ROOT/devel/sage-main. > So I > sorted that out. So some of this could be due to the way this was copied from > one machine to another. > > Dave > > Here's how I started sage, and the outputs it shows. > > > -bash-3.00$ ./sage > ---------------------------------------------------------------------- > | Sage Version 4.2.1, Release Date: 2009-11-14 | > | | > | Built on Solaris 10 03/2005 so will run on any Solaris 10 system | > | Note, at this point in time, Sage on Solaris is somewhat | > | experimental, having not had extensive testing. | > | | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > sage: notebook(address='', server_pool=['sa...@localhost'], ulimit='-v > 500000', > accounts=True) > ********************************************************************** > WARNING: Running the notebook insecurely not on localhost is dangerous > because its possible for people to sniff passwords and gain access to > your account. Make sure you know what you are doing. > ********************************************************************** > The notebook files are stored in: sage_notebook.sagenb > ********************************************************************** > WARNING: Insecure notebook server listening on external address. > Unless you are running this via ssh port forwarding, you are > **crazy**! You should run the notebook with the option secure=True. > ********************************************************************** > ************************************************** > * * > * Open your web browser to http://localhost:8000 * > * * > ************************************************** > /homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/_sslverify.py:5: > DeprecationWarning: the md5 module is deprecated; use hashlib instead > import itertools, md5 > 2009-12-23 00:53:48+0000 [-] Log opened. > 2009-12-23 00:53:48+0000 [-] twistd 8.2.0 > (/homes/sage/sage-4.2/local/bin/python > 2.6.2) starting up. > 2009-12-23 00:53:48+0000 [-] reactor class: > twisted.internet.selectreactor.SelectReactor. > 2009-12-23 00:53:48+0000 [-] twisted.web2.channel.http.HTTPFactory starting > on 8000 > 2009-12-23 00:53:48+0000 [-] Starting factory > <twisted.web2.channel.http.HTTPFactory instance at 0x3879530> > /homes/sage/sage-4.2/local/bin/sage-native-execute: xdg-open: not found > 2009-12-23 01:38:51+0000 [HTTPChannel,55,212.120.90.152] Request error: > Connection to the other side was lost in a non-clean fashion. > 2009-12-23 02:42:40+0000 [HTTPChannel,189,98.117.210.77] ERROR initializing > compute process: > 2009-12-23 02:42:40+0000 [HTTPChannel,189,98.117.210.77] > 2009-12-23 02:42:40+0000 [HTTPChannel,189,98.117.210.77] Pexpect: pty.fork() > failed: out of pty devices > 2009-12-23 02:42:40+0000 [HTTPChannel,189,98.117.210.77] Exception rendering: > 2009-12-23 02:42:40+0000 [HTTPChannel,189,98.117.210.77] Unhandled Error > Traceback (most recent call last): > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 186, in addCallbacks > self._runCallbacks() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 328, in _runCallbacks > self.result = callback(self.result, *args, **kw) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 289, in _continue > self.unpause() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 285, in unpause > self._runCallbacks() > --- <exception caught here> --- > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 328, in _runCallbacks > self.result = callback(self.result, *args, **kw) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/server.py", > line 296, in <lambda> > d.addCallback(lambda res, req: res.renderHTTP(req), self) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/resource.py", > line 85, in renderHTTP > return method(request) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/resource.py", > line 202, in http_GET > return super(Resource, self).http_GET(request) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/resource.py", > line 128, in http_GET > return self.render(request) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/twist.py", > line 1428, in render > self.worksheet.sage() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/worksheet.py", > line 2974, in sage > self.initialize_sage() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/worksheet.py", > line 2947, in initialize_sage > raise RuntimeError, msg > exceptions.RuntimeError: Pexpect: pty.fork() failed: out of pty devices > > 2009-12-23 02:43:23+0000 [HTTPChannel,190,98.117.210.77] ERROR initializing > compute process: > 2009-12-23 02:43:23+0000 [HTTPChannel,190,98.117.210.77] > 2009-12-23 02:43:23+0000 [HTTPChannel,190,98.117.210.77] Pexpect: pty.fork() > failed: out of pty devices > 2009-12-23 02:43:23+0000 [HTTPChannel,190,98.117.210.77] Exception rendering: > 2009-12-23 02:43:23+0000 [HTTPChannel,190,98.117.210.77] Unhandled Error > Traceback (most recent call last): > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 186, in addCallbacks > self._runCallbacks() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 328, in _runCallbacks > self.result = callback(self.result, *args, **kw) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 289, in _continue > self.unpause() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 285, in unpause > self._runCallbacks() > --- <exception caught here> --- > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 328, in _runCallbacks > self.result = callback(self.result, *args, **kw) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/server.py", > line 296, in <lambda> > d.addCallback(lambda res, req: res.renderHTTP(req), self) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/resource.py", > line 85, in renderHTTP > return method(request) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/resource.py", > line 202, in http_GET > return super(Resource, self).http_GET(request) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/resource.py", > line 128, in http_GET > return self.render(request) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/twist.py", > line 1428, in render > self.worksheet.sage() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/worksheet.py", > line 2974, in sage > self.initialize_sage() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/worksheet.py", > line 2947, in initialize_sage > raise RuntimeError, msg > exceptions.RuntimeError: Pexpect: pty.fork() failed: out of pty devices > > 2009-12-23 02:50:10+0000 [HTTPChannel,199,24.35.121.68] ERROR initializing > compute process: > 2009-12-23 02:50:10+0000 [HTTPChannel,199,24.35.121.68] > 2009-12-23 02:50:10+0000 [HTTPChannel,199,24.35.121.68] Pexpect: pty.fork() > failed: [Errno 12] Not enough space > 2009-12-23 02:50:10+0000 [HTTPChannel,199,24.35.121.68] Exception rendering: > 2009-12-23 02:50:10+0000 [HTTPChannel,199,24.35.121.68] Unhandled Error > Traceback (most recent call last): > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 186, in addCallbacks > self._runCallbacks() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 328, in _runCallbacks > self.result = callback(self.result, *args, **kw) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 289, in _continue > self.unpause() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 285, in unpause > self._runCallbacks() > --- <exception caught here> --- > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/internet/defer.py", > line 328, in _runCallbacks > self.result = callback(self.result, *args, **kw) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/server.py", > line 296, in <lambda> > d.addCallback(lambda res, req: res.renderHTTP(req), self) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/resource.py", > line 85, in renderHTTP > return method(request) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/resource.py", > line 202, in http_GET > return super(Resource, self).http_GET(request) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-solaris-2.10-sun4u.egg/twisted/web2/resource.py", > line 128, in http_GET > return self.render(request) > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/twist.py", > line 1367, in render > self.worksheet.restart_sage() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/worksheet.py", > line 3285, in restart_sage > self.sage() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/worksheet.py", > line 2974, in sage > self.initialize_sage() > File > "/homes/sage/sage-4.2/local/lib/python2.6/site-packages/sagenb/notebook/worksheet.py", > line 2947, in initialize_sage > raise RuntimeError, msg > exceptions.RuntimeError: Pexpect: pty.fork() failed: [Errno 12] Not > enough space > > > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe from this group, send an email to > sage-devel+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org