Hardware
Hardware
Hardware
System Performance
Performance Calculation
Throughput – Is the volume of work that can
be processed by the computer system in a
given time
Instruction Mix – the combination of the
execution time for representative instructions
and frequency of such information
occurrences found in programs represent the
performance of the computer’s processor.
Example of an Instruction Mix
Total 100%
MIPS (Million Instruction Per
Second)
MIPS represents on average the number of
instructions that a processor can execute in
units of millions per second.
1,000,000 instructions / second = 1
instruction / microsecond
It takes 1 microsecond to execute one
instruction
If we calculate the MIPS of the processor of
the given instruction mix example,
Ave. Instruction mix = 200 ns X 0.65 + 400
ns X 0.2 + 300 ns x 0.1 + 100 ns X 0.5
= 245 ns (1 instruction / 245 ns)
Answer: 3 MIPS
CPI = CPI of instruction X ratio of instruction1 + CPI of
instruction 2 X ration of instruction2 + …..
a.) Compute the expected value of the CPI for CPU
CPI = 4 X 0.4 + 8 X 0.5 + 10 X 0.1
= 1.6 + 4 + 1
= 6.6 clocks
b) Compute average instruction execution time from clock time.
Since clock time is 0.05 microsecond,
Average instruction execution time = 0.05 X 6.6 = 0.33ms
= 1instruction / 0.33 ms
Answer: 304MB
Hard disk with Blocking
⚫ Just as on a magnetic tape, data is
recorded by blocks on a hard disk.
However, if a block cannot fit into a track, it
cannot be recorded. A block cannot be
recorded across multiple tracks.
Block 1 IBG Block 2 IBG Block 3 IBG Block n
Track Length
Cannot be recorded
⚫ First, data is recorded on a track, and when
that track is filled, the recording proceeds to
the next track which is a track on the
corresponding circumference of the next
Hard disk with Blocking
⚫ Given a magnetic disk with the following
specifications, how many cylinders are
required when 80,000 records of 200 bytes
each are stored in a sequential access file
of 10 records/block.
⚫ Specifications are
⚫ Cylinder number: 400 cylinders
⚫ Track / cylinder : 19 tracks
⚫ Storage capacity/ tracks : 20, 000 bytes
⚫ Inter-block gap(IBG): 120 bytes
Hard disk with Blocking
⚫ 1. First, the number of blocks of the whole
file is calculated.
⚫ Since the number of records is 80,000 and the
blocking factor is 10, the number of blocks is
determined as follows:
80,000 records ÷ 10 records/ block =
8, 000 blocks
Hard disk with Blocking
⚫ 2. The length of one block, including the
inter-block gap is calculated.
⚫ 200 bytes/record x 10
records/block + 120 bytes/block
= 2, 120 bytes/block.
Hard disk with Blocking
⚫ 3. The number of blocks that can be
recorded in 1 track is calculated.
20, 000 bytes ÷ track / 2,120
bytes/block = 9.43 blocks per track
Latency /
overhead
The reading /
The reading / writing
The reading / writing writing operation
operation starts
instruction is given by is completed
the control unit
Performance of Magnetic Disk
Access time – Average seek time + Average search
time + data transfer time
Seek time – the time it takes to move the magnetic
head to the desired track.
Search time (Rotational latency) – the lapse of time
until the target data reaches the magnetic head
position.
❑ Average search time – time required to make ½
revolution.
Data Transfer time – the time elapsed between
when the magnetic head data access starts and
when the transfer completed.
Performance of Magnetic Disk
Given a magnetic disk unit with the following
specifications, what is the access time of this
magnetic disk when a record of 9,000 bytes is
processed?
Specifications
Capacity per track : 15,000 bytes
Magnetic disk rotation speed: 3, 000
revolutions/minute.
Average seek time: 20 milliseconds
Performance of Magnetic Disk
1. First, the average search time is calculated.
Since the rotation speed of the magnetic disk is
3,000 revolutions/minute, through the following
operation
3,000 revolutions/minute ÷ 60 seconds/minute =
50 revolutions/second
It is determined that the magnetic disk makes 50
revolutions per second. Therefore, the time
required to make 1 revolution is 0.02 seconds
or 20 milliseconds.
Average search time = 10 milliseconds
2. Since in 1 revolution, the information
contained in 1 track passes through the
magnetic head, considering that the disk
makes 50 revolutions per second, the data
transfer speed is as follows:
Data transferred speed = 50 tracks/second X
15,000 bytes/track = 750 X103 bytes/second
The time it takes to transfer 9,000 bytes of
data can be calculated as follows.
(9X103 bytes) ÷ (750 X 103 bytes/track) =
0.012 seconds = 12 milliseconds
Performance of Magnetic Disk
3. Therefore the access time is as follows,
Average seek time + Average search time +
Data transfer time
= 20 ms + 10 ms + 12 ms = 42 milliseconds
System Reliability
⚫ One of the measures used to indicate the
safety and efficiency is known as RASIS
⚫ R – Reliability
⚫ A – Availability
⚫ S - Serviceability
⚫ I – Integrity
⚫ S - Security
MTBF
⚫ MTBF (Mean Time Between Failures)–
represents the degree of reliability.
System Availability
→ a percentage that indicates the level of
uninterrupted availability
→ indicated by MEAN TIME BETWEEN FAILURE
(MTBF) or MEAN TIME TO REPAIR (MTTR)
Availability of Complex Systems