Please Help: zope on solaris 8 (4 cpu multi-processor machine), psrset, etc
Greetings folks, I am having a problem with my zope, which runs on Sparc Solaris 8 (4 cpu multi-processor) machine: Zope Version: (Zope 2.5.1 (binary release, python 2.1, solaris-2.6-sparc), python 2.1.3, sunos5) Python Version: 2.1.3 (#1, Apr 15 2002, 12:32:48) [GCC 2.8.1] System Platform: sunos5 It is exceedingly slow and the slowness is unbearable. It started about the same time when a big app was taken off this machine and I am suspecting that python Global Interpreter Lock is not agreeable in multi-cpu environment. I read a thing or two off zope.org and decided to use "psrset" command to restrict all subprocesses to one cpu. Hardly anything is straight forward and I am running into troubles. I hand executed this command: psrset -b 1 ./start where 1 is the id returned from "psrset -c" command and start is the zope start-up script I have always used (pretty much unmodified as distribution except the port number to run on). It complains as to I am not the owner of the processor-set 1. So now I did the same as root. The complaint now is I have a problem with permission of Z2.pid file: 2003-04-03T22:14:13 INFO(0) ZODB Opening database for mounting: '9164344_1026860136.820087' ------ 2003-04-03T22:14:13 INFO(0) ZODB Mounted database '9164344_1026860136.820087' at /temp_folder ------ 2003-04-03T22:14:13 INFO(0) ZServer HTTP server started at Thu Apr 3 14:14:13 2003 Hostname: vixen Port: 7117 ------ 2003-04-03T22:14:13 INFO(0) ZServer FTP server started at Thu Apr 3 14:14:13 2003 Hostname: vixen Port: 8021 ------ 2003-04-03T22:14:13 INFO(0) ZServer PCGI Server started at Thu Apr 3 14:14:13 2003 Unix socket: /ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/var/pcgi.soc ------ 2003-04-03T22:14:13 PANIC(300) z2 Startup exception Traceback (innermost last): File /ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/z2.py, line 690, in ? IOError: [Errno 13] Permission denied: '/ulocal/local/zope/Zope-2.5.1-solaris-2.6-sparc/var/Z2.pid' (7117 is the port I am specifying from start script.) I tried to change the ownership of Z2.pid first to root and then tried the same, but I get the identical error. If there is somebody who has done the same or similar thing and willing to offer an advice or two, I would appreciate it very much. Regards, Tena Sakai (tena.sakai.b@bayer.com) PS: I am unwilling to hack the start script because it uses exec instead of spawning a subshell. I fear psrset would not work with exec command. If anybody disagrees with me, I am all ears. PS2: my subscription to zope@zope.org is via digest. If you would explicitly carbon copy to tena.sakai.b@bayer.com I would really, really appreciate it.
participants (1)
-
Tena Sakai