[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 309
  • Last Modified:

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
0
dtotten800
Asked:
dtotten800
2 Solutions
 
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
 
ozoCommented:
What part pf the script is running slower?
How are  Perl 5.0.5 and Perl 5.8.7 configured?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
TintinCommented:
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
 
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
 
TintinCommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now