The stupid question is the question not asked | |
PerlMonks |
Possible Perl Issue, plz help...by WeNdeL (Novice) |
on Oct 16, 2003 at 17:11 UTC ( [id://299820]=perlquestion: print w/replies, xml ) | Need Help?? |
WeNdeL has asked for the wisdom of the Perl Monks concerning the following question: Let me preface this by stating I am a junior systems admin who knows very little about Perl and tuning servers for specific applications, especially Perl apps. We have a Netfinity 7000 M10 with the following specs: We are trying to utilize a certain PERL program that is acting as a portal (sort of) for our companies day-to-day computing needs. That is all this box is being used for. User's SSH to this box and invoke an instance of said program. The problem is this... This program runs a little slow... When an exact copy of this program is thrown on a plain old workstation (a box with a 450MHz cpu and maybe 128 MB's of RAM), it runs much faster than on the Netfinity. Now aside from turning off all unwanted daemons and processes, I haven't done much in the way of tuning this box. The perl code in question lives on the 15K RPM SCSI HDD by the way... In an attempt at defining what I mean by slow, I should state that the program consists of a a good number of PERL scripts that get exec'd as needed. The program starts when the user ssh's to said server, starts up an Xterm on their local display and then exec's an initial wrapper script. This initial script contains a menu whose options correspond to PERL scripts that when exec'd, end up replacing the initial parent script. And as expected, there are submenus of options that exhibit the same behavior. The "slowness" in question here is when the user switches between menus. I am assumming their is some sort of IO bottleneck upon the reading/compilation of each script. I do not believe that the network is an issue here... When I performed the intial test with my workstation versus the server, the same network was used and dramatic results were observed. I even ran the code locally on the server in question and experienced the same "slowness". The perl install has evidently compiled with threading enabled.
After speaking with the developers, I have assessed that they are not making use of threads nor are they using any forks to spawn new processes. They are using "exec's" and "system calls" to accomplish the tasks at hand. Any ideas of what the problem may be? I am being told that it is a systems/server issue. I have been seeking knowledge relating to any performance enhancements I can make to help this program operate but have come up with very little if anything at all. Care to help? Thanks in advance...
Back to
Seekers of Perl Wisdom
|
|