HP3000-L Archives

May 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Joe Weisman <[log in to unmask]>
Reply To:
Joe Weisman <[log in to unmask]>
Date:
Thu, 10 May 2001 18:18:58 -0700
Content-Type:
multipart/mixed
Parts/Attachments:
text/plain (-1 MB) , text/plain (-1 MB) , text/plain (-1 MB)



Here I am again; finally reached what I have been afraid of, which is the performance problem. I get APACHE running and it seems to run, and I can serve up pages from my HP3000 just fine, and they come up as fast as I can click the mouse button but, when I try to get the server to execute a little script it takes an abysmally long time, like around 10 seconds. This time is about the same weather the target is a simple script file (sample below) or a little 'c' program that just does a PRINTOP intrinsic so I can see it as soon as it starts. I have been told that fork() needs a lot of contiguous disk space on LDEV 1, and I have verified that I have at least one block of 100,000 sectors there. I have a program which does just printf(), fork(), printf() and it executes (from the command line) just fine so it isn't fork() itself unless fork() for some reason takes a long time if it is a big program like APACHE doing the fork() instead of a little test program. The machine is kind of small, a 917, but there is nobody running anything on it but me. I hope hope hope this is a bug not a feature, as my application is worthless if there is a 10 second delay between screens. Thanks to all for the help I have gotten so far, and thanks in advance for more. This is the html file I point to from the server:   <HTML>   <HEAD>   <TITLE> Validator </TITLE>   </HEAD>   <BODY>   <center>   <h2>This is /APACHEFW/PUB/htdocs/joe/fruit/small.html</h2>   <br>   <h3>Push the button labelled 'start' to execute the</h3>   <h3>file /APACHEFW/PUB/cgi-bin/small.test</h3>   <FORM name="cfmclogin" METHOD="POST" ACTION="/cgi-bin/small.test">     <br>     <table border=0>     <tr> <th colspan=2>         <INPUT TYPE="submit" VALUE="Start">     </table>   </FORM>   </BODY>   </HTML> And this is the file 'small.test' which is pointed at by the above html file:   #!/bin/sh   echo Content-type: text/plain   echo   echo CGI/1.0 test script report:   echo   echo argc is $#. argv is "$*".   echo   echo CGIXDUMP = $CGIXDUMP   echo CGIXPAUSE = $CGIXPAUSE   echo CONTENT_LENGTH = $CONTENT_LENGTH   echo CONTENT_TYPE = $CONTENT_TYPE   echo REQUEST_METHOD = $REQUEST_METHOD   echo SCRIPT_NAME = $SCRIPT_NAME
joe Joe Weisman ([log in to unmask] or 541-745-5265 voice, 541-745-5266 FAX)             (in San Francisco, direct line 415-369-3082)              "He didn't like fighting. Not Peter's way, the strong               against the weak and not his way either, the intelligent               against the stupid."

ATOM RSS1 RSS2