Operating System - HP-UX
1834414 Members
1839 Online
110067 Solutions
New Discussion

Re: Perl scripts using 100% of single CPU.

 
Aaron Salvo
Occasional Contributor

Perl scripts using 100% of single CPU.

I'm having some problems (or maybe it's not a problem) with Perl on our N-Class system under HP-UX 11.0. Any script that is run uses 100% of a single processor. We have installed the disto from HP and recently compiled on the system. This is not happening on our K-Class under 10.20. This is happening no matter how simple or complex the script is. Needless to say our scripts are running faster on our K-Class than on our N-Class (which doesn't make sense). Any ideas or suggestions would be greatly appreciated.

Thanks.

Aaron
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: Perl scripts using 100% of single CPU.

Aaron,

You say you compiled perl from a distribution, what version of perl do you have? What compiler did you use?

Also, what version of 11, 32 or 64bit? What's your latest patch bundle installed, because there are about 7 patches to 11.00 for perl.

Did you add any other packages to perl?

live free or die
harry
Live Free or Die
Aaron Salvo
Occasional Contributor

Re: Perl scripts using 100% of single CPU.

Harry,

Here's the scoop...

Using Perl 5.6.1

Compiled using gcc 3.0.1

Using 64 bit 11.0 compiled Perl with 64 bit options.

Patch last patch bundle installed on system is dated March 2001.

Let me know if you need anything else.

Thanks for your help

Aaron
harry d brown jr
Honored Contributor

Re: Perl scripts using 100% of single CPU.


Do you need to be able to compile perl or would an already compiled version work?

Here is a precompiled version (ported by HP) of perl 5.6.1 for 11.x:

http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.6.1/

I'd try to switch to this precompiled version of perl first, and if the same problem occurs, then I'd look into other causes.


live free or die
harry
Live Free or Die
Aaron Salvo
Occasional Contributor

Re: Perl scripts using 100% of single CPU.

Harry,

Funny you should mention that. We replaced the pre-compiled distro with the source distro. just today, in the hopes that this problem would go away.

It didn't.

What else you got?

Thanks for your help.

Aaron
harry d brown jr
Honored Contributor

Re: Perl scripts using 100% of single CPU.

Aaron,

Can you post your kmtune output? Also do you have glance installed, so that you can "watch" the process? If not, you can install a trial version.

live free or die
harry
Live Free or Die
Aaron Salvo
Occasional Contributor

Re: Perl scripts using 100% of single CPU.