2 - Operational Laws
2 - Operational Laws
Danilo Ardagna
Existing
system Parameterize the Model
Performance
Model
System Design
Performance indices
Model Definition
Existing
system Parameterize the Model
Performance
Model
System Design
Performance indices
Operational laws
Requests
Arrival
System Requests
satisfied
System
Arrivals Departures
System
Arrivals Departures
Four important quantities
System
Arrivals Departures
Job flow balance
• We will assume that the system is job flow balanced. This means
that the number of arrivals is equal to the number of
completions during an observation period, i.e. A = C
• Note that if the system is job flow balanced the arrival rate will
be the same as the completion rate, that is:
λ=X
Operational laws
System
Requests
subsystem
Arrival subsystem
Requests
subsystem
satisfied
arrival rate
thoughput or completion rate
utilization
service rate
Number of users
Example
Throughput: Xk = Ck/T
Service time Sk = Bk/Ck k for each element of the system.
Utilization: Uk = Bk/T
From:
Uk = XkSk
Utilization law
Throughput: Xk = Ck/T
Service time Sk = Bk/Ck
Utilization: Uk = Bk/T
From:
U = XS
also for the entire system
Example
Little’s law:
N = XR
Total Arrivals
This represents
the number of requests
#Jobs
Total Completions
Time T
CSE 597 - Lecture 5 11
Derivation of Little Law
We can write:
N = XR
Derivation of Little Law
We can write:
N = XR
Example
• Little’s law tells us that the average time spent at the disk by a
request must be 4/40 = 0.1 seconds
• Little’s law tells us that the average time spent at the disk by a
request must be 4/40 = 0.1 seconds
Terminals
CPU
Disks
Little’s Law, level 1
Little law N(1) =X(1) R(1) =0.9 probability that the disk is busy. It's 0 or 1 or between.
U(1) =X(1) S, U(1) = 90% here the utilization is a specific case of the little law.
Application of Little’s Law at different levels
Terminals
CPU
Disks
Little’s Law, level 2
CPU
Disks
Little’s Law, level 3
Terminals
CPU
Disks
Little’s Law, level 4
Let us suppose that there are N(4) = 10 users, and the think time is Z = 5 s.
We know that the time spent in the system is R(3) = 15 s.
Now, since R(4) = R(3) + Z, we can derive from Little law that
N(4) = X(4)(R(3) + Z),
and we can compute the time is spent at the terminals (think time Z) and the
X(4) = 0.5 job/s other is in the CPU + DISKs = R3 -> R4 = R3 + Z
Interactive Response Time Law
At the end of this non-processing period (from the file server point
of view) the job generates a fresh request.
little law.
Interactive Response Time Law
Terminals
CPU
Disks
Interactive Response Time Law
R = N/X − Z
this is the case where we take in account the think time of the users.
R = N/X - Z
Interactive Response Time Law: Example
• The interactive response time law tells us that the response time
must be 64/2 − 30 = 2 seconds
Operational laws
System
Requests
subsystem
Arrival subsystem
Requests
subsystem
satisfied
Visits
Note that:
The forced flow law captures the relationship between the different
components within a system. It states that the throughputs or
flows, in all parts of a system must be proportional to one another.
Xk = VkX
Suppose that processing each widget requires 4 accesses to the lathe and 2
accesses to the press.
We know that the lathe processes 8 widgets in a minute and we want to know
the throughput of the press.
Suppose that processing each widget requires 4 accesses to the lathe and 2
accesses to the press.
We know that the lathe processes 8 widgets in a minute and we want to know
the throughput of the press.
• Let us assume that each time a job visits the k-th resource the
amount of processing, or service time it requires is Sk
Dk =SkVk
Utilisation Law
• Utilisation Law:
• Utilisation Law:
Uk =DkX
General Residence Time Law
• From the Forced Flow Law we know that Xk = XVk. Thus we can
deduce that:
Nk/X = VkRk
General Residence Time Law
The total number of jobs in the system is clearly the sum of the
number of jobs at each resource, i.e. N = N1 +…+ NM if there are M
resources.
R= S k VkRk
The average response time of a job in the system will be the sum of
the product of its average residence time at each resource and the
number of visits it makes to that resource
General Residence Time Law: Example
Disk A
CPU
Disk B
VCPU= 126
XDiskA=15 req/sec NDiskA= 4+1 RCPU= 30 msec
VDiskA=75
XdiskB=10 req/sec NdiskB=3+1
VdiskB=50
Model Evaluation
§ T: observation interval
§ λk = Ak/T , the arrival rate
§ Xk = Ck /T , the throughput or completion rate
§ Uk = Bk/T, the utilisation
§ Sk = Bk/Ck, the mean service time per completed job
§ Vk = Ck/C, visit count of the k-th resource
§ Dk =SkVk, the total amount of service that a system job
generates at the k-th resource
Operational laws summary
Utilisation Law:
Uk =XkSk Uk=DkX
Little’s law:
N = XR
Xk = VkX
R = N/X -Z