PDC Lecture 3
PDC Lecture 3
Speed up &
Amdhal’s Law
Week 3
Scalability
different dimensions:
with respect to its size, meaning that we can easily add/ remove
different vendors.
Scalability: Scale out (Horizontal) & Scale
up (Vertical)
An example might involve scaling out (to increase) from one web
server to three.
nodes.
Scalability: Issues
For example, if a single file server can support 20 users, then two
such servers should be able to support 40 users. Although that
sounds an obvious goal, it is not necessarily easy to achieve in
practice.
Scalability: Issues
So, we should use such algorithms which may support Scaling up/
Scaling out, to prevent performance loss.
Scalability: Issues
If we scale up our system from 32 bit to 64 bit, but we are using old
32 bit algorithms (software), performance loss.
In the late 1970s, it was decided to use 32 bits for this purpose, the
supply of available Internet addresses is running out.
Scalability: Issues
For this reason, a new version of the protocol with 128-bit Internet
addresses is being adopted, and this will require modifications to
many software components.
Scalability: Issues
For example, we normally install SSD’s rather than HDD, for quick
response from secondary storage devices, and so on.
Amdhal’s Law
• where
• s is the speedup of the part of the task that benefits from improved system resources;
• p is the proportion of execution time that the part benefiting from improved resources
originally occupied.
Amdhal’s Law
up, p will be 0.95 (p=0.95), and the portion which will get benefit of
Formula: S= 1/ (1-p)+(p/s)
1
Speedup =
1−0.4 +0.4/3
1
Speedup =
0.6+0.1333
1
Speedup =
0.7333
Speedup ≈ 1.362