Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th January 2012, 09:14 AM
dekela Offline
Registered User
 
Join Date: Mar 2006
Posts: 11
linuxchrome
Unhappy Perl scripts CPU Hog and System Freeze

Hi

I am not sure if this is the right place to post it so let me know if it needs to be moved.

I have 2 machines:

1: Desktop running Fedora 16 x86-64
Intel(R) Core(TM) i3 CPU 550 @ 3.20GHz
4GB RAM

2: MacBook Pro Core 2 Duo 2.8 8GB RAM

I wrote a simple XML Parser script that past a heavy file (24MB)

When I execute it on Fedora it freezes up all my OS (Unable to even move the mouse) and takes forever to complete (I cant even kill the process)

When I run the same script on my MacBook which I though should be slower due to the spec it is lightning fast!
More then that, It dosent freezes my OS at all.

I dont think this is right and I believe my system is probably not optimized correctly.

Can you direct me what I need to check?
Do I need to recompile my kernel for better process management and memory management?

I must say that on both machines I am running a VirtualMachine with 1 GB of RAM allocation.

Thanks,
Dekel
Reply With Quote
  #2  
Old 5th January 2012, 08:06 AM
dekela Offline
Registered User
 
Join Date: Mar 2006
Posts: 11
linuxchrome
Re: Perl scripts CPU Hog and System Freeze

Bumping to get attention
Reply With Quote
  #3  
Old 5th January 2012, 09:04 PM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfedorafirefox
Re: Perl scripts CPU Hog and System Freeze

I'm NOT a perl developer at all, but you should try the obvious things.

1/ The perl command has a debug option have you tried it ?
2/ If you start the process in the background does it still lockup the syste m?
3/ Are you running the app with privilege ? (generally shouldn't).
4/ Are you exceeding the DRAM ? The 'free' command will show any swap used. Using swap means the system gets VERY slow and seems to lockup. Using swap in a virtualization can be even worse.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
Reply

Tags
cpu, freeze, hog, perl, scripts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Perl scripts on desktop 2009tester Using Fedora 4 8th November 2010 03:46 PM
How to configure cgi-bin to recognize perl scripts? ItecKid Using Fedora 1 11th February 2010 12:10 PM
cannot execute perl scripts in /var/www/html bjaques Using Fedora 2 23rd November 2005 09:16 PM
Permission problem for perl scripts overule Servers & Networking 2 27th August 2005 07:23 PM
crontab not running perl scripts? Spydaw Using Fedora 5 31st May 2005 09:15 AM


Current GMT-time: 23:59 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat