The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell script performance issues --Urgent icefish Shell Programming and Scripting 18 12-14-2007 06:43 AM
Announcing collectl - new performance linux performance monitor MarkSeger News, Links, Events and Announcements 0 10-26-2007 03:14 PM
Performance issue with ftp script. Shiv@jad Shell Programming and Scripting 3 08-20-2007 07:04 AM
Script for system performance vastare Shell Programming and Scripting 2 01-19-2006 07:51 AM
Korn Shell Coprocess Performance Question Mark Puddephat Shell Programming and Scripting 8 12-14-2005 01:33 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-20-2007
Registered User
 

Join Date: Aug 2007
Location: Bangalore
Posts: 285
Thumbs up Performance of a shell script

Hiii,
I wrote a shell script for testing purpose.

I have to test around 200thousand entries with the script.When i am doing only for 6000 entries its taking almost 1hour.If i test the whole testingdata it will take huge amount of time.

I just want to know is it something dependent on the configuration of machine.
Any suggestion how i can increase the efficiency of my script.

Thanks in advance.
Namish
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-20-2007
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,638
We can comment better if we see the script. As such, if you use external tools like cat, grep or something in a shell script, then you should see the mileage varying a lot.

See http://www.unix.com/shell-programmin...-complete.html as an example.

Last edited by vino; 08-20-2007 at 01:23 AM.
Reply With Quote
  #3 (permalink)  
Old 08-20-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Choose the language appropriate to the task.

Shells are very heavy users of process forking/execing.

Using a language like Perl, C, C++, Java may give a dramatic improvement because they are not continually starting new processes to do tiny tasks.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0