Upgrade from Perl 5.0.5 to 5.8.7. cause slow performance

Hi all,

I am experiencing slow performance problems with a perl script after upgrading from Perl 5.0.5 to 5.8.7.

 basically, we have a Perl script that we have been running for 10+ years and it is running much slower on our new Solaris 9 server than it did on our Solaris 8 server.  the script basically reads a text file and writes it out another text file in a different format.

Do you know what may be causing this? And what things i can do
dtotten800Asked:
Who is Participating?
 
TintinConnect With a Mentor Commented:
Is the new Solaris 9 server running on different hardware to your Solaris 8 server?  If so, there could be hundreds of non-perl reasons it will be running slower.

How much slower is the script running?
What measurement tools have you use to determine the slowness?
Do you utilise system calls in the Perl script?

If the script is not very big, perhaps you can post it here.

Given the script is over 10 years old, I have a funny feeling that the file might be read into an array and then looped over, which is very inefficient for very large files as you can run into memory problems.
0
 
jasonsbytesCommented:
It is much more likely a difference in the OS (due to the OS upgrade) than it is a difference in Perl 5.0.5 vs 5.0.8.

It could be any number of things, but I doubt it is Perl.
0
 
Adam314Commented:
Are the files you are opening being accessed over a network?
Is the network busier than before?
Are the drives busier than before?

Just as an experiment, you could try installing perl 5.0.5 on your new machine, and use that to run the script, and compare times.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
ozoCommented:
What part pf the script is running slower?
How are  Perl 5.0.5 and Perl 5.8.7 configured?
0
 
dtotten800Author Commented:
Could you send me some commands to verify that problem isn;t perl.

And also send me commands to verify that problem could be OS
0
 
dtotten800Author Commented:
Hi , you asked me all these questions. What commands can you use to gather this data
How much slower is the script running?
What measurement tools have you use to determine the slowness?
Do you utilise system calls in the Perl script?
0
 
TintinConnect With a Mentor Commented:
You don't need any commands for these questions:

1.  You've stated the script is running much slower.  How are you determining that?  How much slower?

2.  Is the Solaris 9 system running on different/newer hardware to the Solaris 8 system?

3.  If yes to the above, is the new server configured in a similar way to the old system, particularly in relation to disk layout and memory.

4.  Is the script small enough to post here (<200-300 lines)?
0
 
TintinCommented:
dtotten.

Could you explain your awarding of points?  There was a whole series of questions you never answered.  Did you find the cause in the end?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.