Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
CPU Time and Elapse Time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics
Author Message
ilakkia

New User


Joined: 17 May 2008
Posts: 19
Location: chennai

PostPosted: Fri Aug 08, 2008 12:13 pm    Post subject: CPU Time and Elapse Time
Reply with quote

Please explain the difference between the CPU time and Elapse time?

What are all the various factors that constitute the Elapse time?
Back to top
View user's profile Send private message
References
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3509
Location: Brussels once more ...

PostPosted: Fri Aug 08, 2008 12:22 pm    Post subject:
Reply with quote

Elapsed = Clock
CPU = amount of time CPU was utilised
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2159
Location: Phoenix, AZ

PostPosted: Fri Aug 08, 2008 12:48 pm    Post subject:
Reply with quote

Continued...

CPU time is the time for which the CPU was busy executing the task. It does not take into account the time spent in waiting for I/O (disk IO or network IO). Since I/O operations, such as reading files from disk, are performed by the OS, these operations may involve noticeable amount of time in waiting for I/O subsystems to complete their operations. This waiting time will be included in the elapsed time, but not CPU time. Hence CPU time is usually less than the elapsed time.

But in certain cases, the CPU time may be more than the elapsed time !When multiple threads are used on a multi-processor system or a multi-core system, more than one CPU may be used to complete a task. In this case, the CPU time may be more than the elapsed time.
Back to top
View user's profile Send private message
Robert Sample

Senior Member


Joined: 06 Jun 2008
Posts: 891
Location: Atlanta, GA

PostPosted: Fri Aug 08, 2008 2:58 pm    Post subject:
Reply with quote

It may not be possible to fully describe all the factors that constitute elapsed time, but for a batch job here are some of them:
CPU utilization
Number of jobs in system
System overhead
Initiators in use
Tape contention
Disk contention
Channel contention
Job priority
WLM policies

And there is a minimal correlation between CPU time and elapsed time. The exact same job can use the exact same about of CPU time and the elapsed time may vary by hours -- due to the above-mentioned factors, among others.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8643
Location: 221 B Baker St

PostPosted: Fri Aug 08, 2008 10:15 pm    Post subject:
Reply with quote

Hello,

As has been mentioned before, elapsed time itself is not a "tunable" parameter.

Elapsed time can be altered by tuning (positively or negatively) things in the environment (like reducing i/o, gettng a faster cpu, tuning database design and query structure, and on and on and on) or by tuning specific things in the process itself.

One situation that i see more and more frequently is some "requirement" that causes thousands or millions of records to be handled 3, 5, or more times just allow the requirement to be met "with a jcl". Sometimes there are multiple utility and/or sort steps requiring incredible amounts of system resources just so some small bit of program code can be avoided.

And once implemented they will not perform satisfactorily. . . And have a major impact on other processes in the system.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 510
Location: work

PostPosted: Fri Aug 08, 2008 11:45 pm    Post subject: Reply to: CPU Time and Elapse Time
Reply with quote

Quote:
the factors that constitute elapsed time,


Elapsed time is also referred to 'wall clock time'... the rate cannot change, as time is constant. I think you meant "the factors that influence the elapsed time".
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 510
Location: work

PostPosted: Fri Aug 08, 2008 11:50 pm    Post subject: Reply to: CPU Time and Elapse Time
Reply with quote

Judging by some of the questions in some of the forums, I think some people are writing rexx programs to schedule other jobs. I am assuming there is a lot of waiting for jobs to end. That is, in a scheme like that, the master would sleep most of the time, waking up every few minutes to see if a job ended. Elapsed time may be high, but CPU time low.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1