The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To reduce execution time Sreejith_VK Shell Programming and Scripting 4 05-13-2008 03:49 AM
specifying an execution time VGR UNIX for Advanced & Expert Users 7 03-19-2008 05:32 AM
script execution time calculation johnsonbryce Shell Programming and Scripting 9 02-25-2006 01:33 AM
last execution time cubs0729 UNIX for Dummies Questions & Answers 1 01-20-2006 08:45 PM
execution time ramki_rk High Level Programming 2 08-27-2003 10:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-16-2008
Sreejith_VK
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Estimated execution time

Hi All,

One of my script runs (approximately) for 20 to 40 hours
Is there any way in unix to find the estimated time required for a shell script(Cron job).ie to find the time required for execution even before the script is executed.
Any discussion(pointers) regarding the same is most welcome.
  #2 (permalink)  
Old 04-16-2008
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,799
Not really. You can go by historical run times.

If this is almost all shell you may want to start running the time command on sections of it to find bottlenecks. For example, you may want to change a loop that iterates ten times as ten separate concurrent sub processes and just wait for their completion.
  #3 (permalink)  
Old 04-16-2008
Sreejith_VK
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
hi jim,

I dont have an issue with execution of the script it is working fine and it take only the required time.
But as this script does many compilations(compiled files are undergoes change regularly), the time used by the script varies to a very large extend.

So I want to predict.

Last edited by Sreejith_VK; 04-16-2008 at 09:44 AM..
  #4 (permalink)  
Old 04-16-2008
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
If/when you find out the way to predict the future - let us all know - I want to get get on this gig!

but seriously.... you have to identify what influences the consumed time. Once identified, establish a 'baseline' based on the historical data. Once the 'baseline' is established. take a snapshot of the 'changed' criterias and 'extrapolate' the time based on your 'baseline'.
  #5 (permalink)  
Old 04-16-2008
Sreejith_VK
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
the historical data is already available.
BUT,
I guess the time taken by a process may depend up on the server load.
So this is NOT POSSIBLE.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0