IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reasons for Elapsed time being greater than CPU time


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mubs55

New User


Joined: 19 Apr 2006
Posts: 12

PostPosted: Wed Dec 27, 2006 3:37 pm
Reply with quote

Hi,

Can anyone let me know what might be the reason behind the Elapsed time being greater than CPU time.

One reason i know could be due to database problem. I would like to if it could result from other problems.

Regards,
Mubeena
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Dec 27, 2006 5:15 pm
Reply with quote

Hi !

Normaly, in the step accounting data, the elapsed (wall clock) time for a job step represents the period between the beginning of the actual execution of the job step and the completion of all termination processing for it. Elapsed time is influenced by all I/O-activities. In BatchJobs using
large seq. datasets or VSAM you could reduce elapsed time by adding BUFFERS to the Dataset. Please have a look at BUFNO & BUFFND/BUFFNI statements in JCL.

Regards, UmeySan
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Dec 27, 2006 9:09 pm
Reply with quote

Mubeena,

Unless you are running dedicated on the processor, which is seldom if ever, the elapsed time will always be greater than the CPU time.

As ?UmeySan? said, elapsed time is from the start of your job/program to the end (Clock time)

CPU time, on the other hand, is allocated and accumulated by your job/program only when it is actually executing instructions. So, if there are 5 other jobs/programs vying for time on the processor, the CPU time must be shared between the other jobs/programs.

Depending on the priority you job is running in you may get more, or less of the shared CPU time than the other jobs running.
Back to top
View user's profile Send private message
sundar28

New User


Joined: 30 Jul 2005
Posts: 11
Location: Mysore

PostPosted: Thu Dec 28, 2006 12:02 am
Reply with quote

Hi Mubeena,

Elapsed Time = Time taken by the JES to submit and re-submit the job till its completion
+ CPU time
+ Time taken on waiting for the allotment of resources*
+ Time taken for response of the resources
( + User response time for interactive processes)


*resources - Files, Memory and Printers (and CICS or DB2 or MVS system call services like DATE, TIME etc)

Elapsed time can never be equal to the CPU time for an application program.

Please correct me if wrong.
Back to top
View user's profile Send private message
sundar28

New User


Joined: 30 Jul 2005
Posts: 11
Location: Mysore

PostPosted: Thu Dec 28, 2006 12:12 am
Reply with quote

mubs55 wrote:


One reason i know could be due to database problem.



icon_razz.gif Yes.

On tuning the database to optimize for the minimal response time, the time difference can be minimized.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Dec 28, 2006 4:35 am
Reply with quote

You forgot my favorite:

1) Your pgm calls for a tape to be mounted.
2) The tape pool operator decides to go to lunch. icon_evil.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top