CPU Performance and Its Factors
Computer performance is related to execution time, which can be defined in different ways such as
- Clock/response/elapsed time,
which means the total time to complete a task, including disk accesses, memory accesses, input/output (I/O) activities, operating system overhead—everything.
- CPU execution time,
which is the actual time the CPU spends computing for a specific task, which can be further divided into:
- User CPU time,
the CPU time spent in a program itself, and
- System CPU time,
the CPU time spent in the operating system performing tasks on behalf of the program.
This book focuses on user CPU time.
A simple formula relates the most basic metric (clock cycles and clock cycle times) to CPU time:
CPU execution time for a program
= CPU clock cycles for a program × Clock cycle time
Alternatively, because clock rate and clock cycle time are inverses,
CPU execution time for a program
= CPU clock cycles for a program / Clock rate
βIt takes a very long time to become young.β
β Pablo Picasso
|