




























































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!





























































































Scalable computing over the Internet
Computers evolve from monolithic and centralized computing to distributed computations, of
course this means that data becomes intensive, and the network becomes centralized. So,
scalability becomes the real issue. First need has been high performance computing - HPC
(big power) due to solve the problems caused by applications that require centralized and
coordinated approach to solve massive complex problems, so we start talking about
supercomputing, massive parallel computing organized in clusters.
Second need has been high throughput computing - HTC (a lot of operations done
simultaneously), in fact they have variable workload, but this workload can be incredibly high,
as well; so, the problem to solve are scalability, sharing and decentralization of control.
Remember that high performance computing and high throughput computing are very
different.
Go in detail to analyze these two categories.
In HTC we have disparate nodes, that shares files using a P2P network, so we have a
distributed control, thanks to these characteristics we have high throughput of the number of
tasks completed per unit of time. An example of use of HTC is in Google Search where we
have a lot of requests per second. However, the best advantage in using HTC is the extreme
scalability, reduction of energy and the increased security and reliability. While, in HPC we
have homogeneous nodes with a high-speed connectivity (10^8 FL operations per second)
that use clusters; these systems are requested by scientific, engineering, and manufacturing
communities; the disadvantage is that HPC are limited to specialized users.
Some important paradigms:
● Centralized computing : all computer resources are centralized in one physical
system. All resources are fully shared and tightly coupled within one integrated OS,
that means just one resource manager. Many data centres and supercomputers are
centralized systems, but they are used in parallel, distributed, and CC applications.
● Parallel computing : all processors are tightly coupled with centralized shared memory
or loosely coupled with distributed memory. Interprocessor communication is
accomplished through shared memory or via message passing.
● Distributed computing : consists of multiple autonomous computers, each having its
own private memory, communicating through a computer network, so we can have
different computers with different capabilities.
● Cloud computing : large data centres that offer utility computing as a service.
While the frontiers are:
● Web 2.0 : responsive, multi-device interfaces to “everything”.
● Internet cloud : providers of computing as utility, which can be electricity, heat or
water.
● Internet of Things : billions of intelligent sensors, gathering data, need to be treated
by truly scalable services.
The objectives of this kind of architecture are:
● Efficiency : measures the utilization rate of resources in an execution model by
exploiting massive parallelism in ( HPC ), job throughput, data access, storage, and
power efficiency ( HTC ).
● Dependability : measures the reliability and self-management (systems that can repair
by themselves, that can avoid malfunctions using replication, distribution etc.). The
purpose is to provide high-throughput service with QoS assurance, even under failure
conditions.
● Adaptation in the programming model : measure the ability to support billions of job
requests over massive data sets and virtualized cloud resources under various
workload and service models.
● Flexibility in application deployment measures the ability of distributed systems to
run well in both HPC (science and engineering) and HTC (business) applications
We need to also remember some scalable computer trends that are:
● Moore’s law : indicates that processor speed doubles every 18 months.
● Gilder’s law : indicates that the network bandwidth has doubled each year in the past.
● Degree of parallelism trends:
○ Bit-level parallelism (BLP) : converts bit-serial processing to word-level
processing gradually, from 4 to 16, 32, 64 bit CPUs.
○ Instruction-level parallelism (ILP): sometimes the architecture used from
CPU can be improved using pipelining, superscalar computing; that allows us
to process more instructions at the same time (very long instruction word).
○ Data-level parallelism (DLP) : rather than have many instructions to be
executed, we have one single instruction but containing several multiple data
(SMID - Single Instruction Multiple Data)
○ Task-level parallelism (TLP) : we have the most flexible organization, that
provides multicore processors, where each processor shares the same
components between different cores that can work individually.
○ Job-level parallelism (JLP) : distributed processing (coarse grain parallelism)
So, the technology convergence is composed by computing paradigms (web services, data
centres, utility computing, service computing and so on) and attributes or capabilities
From left-to-right:
Four-issue superscalar processor: single-threaded with four functional units. Each of the
three multithreaded processors is four-way multithreaded over four functional data paths.
Only instructions from the same thread are executed in a superscalar processor.
Fine-grain multithreading switches the execution of instruction from different threads per
cycle.
Course-grain multithreading executes many instructions from the same thread for quite a
few cycles before switching to another thread.
Multicore CMP executes instructions from different threads completely.
SMT allows simultaneous scheduling of instructions from different threads in the same cycle.
Other important technologies that permit the development of these architectures are the
advances in CPU processors, multicore processors, multithreading, and GPUs.
A GPU is a graphics coprocessor or accelerator meant to offload the CPU from graphics tasks
in video editing applications.
In fact, modern GPU can be built with thousands of processing cores. Unlike CPUs, GPUs
have a throughput architecture that exploits massive parallelism by executing many concurrent
threads slowly, instead of executing a single thread very quickly.
General purpose computing on GPUs, known as GPGPUs, have appeared in the HPC field.
NVIDIA’s CUDA model was for HPC using GPGPUs.
However, we have some problems related to the communication between the CPU and the
GPU caused by the BUS. The same improvement of CPU and networks happened for GPU.
One of the most important revolution it has been virtualization : the idea is to have virtual
machines that are executed in a best way on another host and are visible in terms of managing
and memory reallocating on other network hosts. The key point is the storage, we can have
several operations on virtual machines: Multiplexing the same machine hardware with different
machines; Suspension of the machine and put the memory (App and OS) on storage;
Provision or resume, that is the loading of previous suspended memory on another machine;
and finally, the Live Migration , that consist of moving contents between machines without
interruptions.
The flexibility of VM is clearly very important and multiple server functions can be
consolidated on the same hardware platform to achieve higher system efficiency. With this
approach, VMware claimed that server utilization could be increased from its current 5- 15
percent to 60-80 percent.
Another important key point, like we’ve already mentioned, is the Data Centre , which contains
all data. Now it’s important to virtualize these data, in fact instead of having just one data
centre we may have a data centre built with thousands of servers.
Typical costs are composed by:
● only 30% go to IT equipment.
● 33% attributed to the chiller.
● 18% for the uninterruptible power supply (UPS)
● 9% for computer room air conditioning
● 7% for power distribution, lighting, and transformer costs.
These costs, like we can see from the percentage are major relative to the maintenance and
for this reason we want to do a better use of the hardware. To do this we virtualize these data
centres, in this way we can divide the maintenance costs among different users that use the
portion of the virtual data centre; so, the costs remain the same, but the users increase.
System models
We can classify the systems using the functionalities and the applications that run on them:
● Computer Clusters : is a network of computers nodes, clearly homogeneous nodes
(same architecture) interconnected by LAN, WAN or SAN hierarchically. In this type of
system, the nodes have a distributed control and run Linux or UNIX, thanks to the
homogeneity of the nodes. However, it’s difficult to think about interconnection using
just the Internet, in fact also other connections are used, like Myrinet or Infiniband, that
are much more performing networks with very high bandwidth. Examples are high-
performance computing, search engines and web services (Google Search, IBM Road
Runner, etc.)
● Peer-to-Peer Networks : structured in a flexible network of client machines logically
connected by an overlay network. In a P2P system every node acts as both a client
and a server. Peer machines are simply client computers connected to the Internet.
The nodes are autonomous , that means free input/output with a self-organization.
Cloud Service models
We have different service models for cloud:
● Infrastructure as a Service (IaaS) : the idea is ‘you have the possibility to run a virtual
machine on the cloud infrastructure’, so user can deploy and run on multiple VMs
running guest OSes on specific applications: user does not manage or control the
underlying cloud infrastructure but can specify when to request and release the needed
resources.
● Platform as a Service (PaaS) : user can deploy user-built applications onto a
virtualized cloud platform. PaaS includes middleware, databases, development tools,
and some runtime support. The provider supplies API and software tools. We aren’t
free to choose OS or Database, but we have to use what platform gives us. Clearly,
it’s simpler to migrate from one platform to another with respect to IaaS.
● Software as a Service (SaaS) : you just access software using a web browser or
application and you will ignore every detail. The SaaS model applies to business
processes, industry applications, consumer relationship management (CRM) and
collaborative applications.
In SaaS we can consume the service and you don’t care about what’s below; in PaaS we can
build on it, but we don’t care about what’s below the application (OS and Storage
management, libraries, middleware, etc.); in IaaS we can migrate to it, this because the first
thing to do on IaaS is the migration from another OS and this could be really difficult to do.
Clearly also the separation of responsibilities is awarded, in fact in Iaas we handle
everything till the OS (no storage, no servers and networking), while in PaaS we handle just
Applications and Data, while in SaaS we don’t handle anything, we just consume it.
In the center of this architecture, we have a base hosting environment, which is based on http
protocol and provides other features like:
● Service interfaces.
● Service internet transport (Protocol).
● Service discovery and information.
● Service management.
● Workflow : It is another place where we can handle our application logic. For example, we
can add other logic to a service when another service is called. This allows us to put some
of logic application outside of our standard programming and allow the services
orchestration. We can have several services that are independents, and we can
orchestrate them to make them work together.
● Generally, useful services and grids : We have a repertoire of services that can be used
for starting from scratch.
● Application specific services/grids.
This kind of hierarchy is particularly important to understand what is going on this web service
architecture.
The entity interfaces correspond to the Web Services Description Language (WSDL), Java
method, and CORBA interface definition language (IDL) specifications.
These interfaces are linked with customized, high-level communication systems:
These communication systems support features including message patterns (such as Remote
Procedure Call or RPC ), fault recovery, and specialized routing. Often, these communication
systems are built on message-oriented middleware (enterprise bus) infrastructure such as Web-
Sphere MQ, or Java Messaging Service (JMS).
We can have by Web Service Reliable Messaging some tolerance, security on this service level
(image below).
Examples of services management and naming are:
● JNDI (Jini and Java Naming and Directory) ;
● UDDI (Universal Description Discovery and Integration) ;
● LDAP (Lightweight Directory Access Protocol) : It is Microsoft-based directory access
interface.
● ebXML (Electronic Business using eXtensible Markup Language).
About management we have several persistent lifecycle and persistent states in CORBA or
everything that it can be do with Java beans.
From distributed Objects to Services
On top, of course, we have what makes distributed objects into services. The key point to this
system is loose coupling and the support for heterogeneous implementation.
Both web services and REST systems have very distinct approaches to building reliable
interoperable systems, but they do have the same objects.
In web services all aspects fully specified by the standards: the messages are communicated using
Simple Object Access Protocol (SOAP ).
In the REST approach we re-adopt standard like HTTP. REST has minimal information in the
header, and the message body is opaque to generic message processing and carries all the need
information.
The evolution of SOA
SOA is moved from being an architecture that supported simple invocation of services dictating
from a standard and so on, has become somehow as a glue for the clouds, the grids and the
distributed systems (or systems of systems).
That are what is behind the Internet of things. So, the idea is that now you have a large number of
sensors like a ZigBee device, a Bluetooth device, a WiFi access point, a personal computer, a
GPA, or a wireless phone.
Raw data is collected by sensor services that interact with large or small computers, many forms
of grids, databases, the compute cloud, the storage cloud, the filter cloud, the discovery cloud, and
so on.
Filter services are used to eliminate unwanted raw data , in order to respond to specific requests
from the web, the grid, or web services.
Distributed Operating Systems
We have systems of a nodes that are loosely coupled, and we need to enroll them together, make
them work effectively together and possibly efficiently together.
The purpose of operating systems is to manage and optimize all resources of a computer.
The management of the resources, the efficiency usage of the resources is critical: we want to use
memory in a very efficient way (main and secondary), we want to schedule the processes on the
CPU’s and so on.
The problem is that everything is loosely coupled rather than being tightly coupled, so the machine,
the processor, the memory, storage and so on are tightly coupled, there are hardware interfaces,
and this is not actually the case in distributed systems. Everything is loosely coupled.
All the nodes can have an independent operating system, so we can put a layer software that is able
to manage all of them coherently and efficiently.
These distributed operating systems are managed on simpler communication mechanism, like
message passing and RPC (Remote Procedure Calls).
A distributed OS is crucial for upgrading the performance, efficiency, and flexibility of distributed
applications. The deploy of an application become complicated because is not just one machine, but
there are many more machines.
We can use three different approaches.
The first approach is to build a network OS that consist of many heterogeneous OS platforms. We
give all the single nodes lot of independencies.
It offers the lowest transparency for the users, so you do have access to the same machine, and a
distributed file system (that is not more than a distributed storage), with independent computer
relying on file sharing as a mean of communication. In this approach the user (programmer) is very
aware that he is using a distributed platform.
The second approach is to develop some middleware to offers some resource sharing (in a limited
way). This approach is used for clustered systems like MOSIX/OS.
The third approach is to develop a truly distributed OS to achieve higher use or system transparency
(we like it). This is, of course, much more challenging than the others approach because the
complexity increase. In this approach the user (programmer) doesn’t really know that he is using a
distributed platform.
In the table above there are some examples of a distributed operating systems. These are three
systems developed by researches/innovative companies.
The first one is the AMOEBA. It is a microkernel-based operating system. We can think about a
microkernel as being a very limited part of the OS that manage all kind of very important and low-
level tasks and lease out all the complicated stuffs. This is actually given to the distributed network.
It uses RPC that implement point to point and group communication (this is synchronous, it is not
publish-subscribe like JMS).
DCE as OFS/1 is a standard contribution by Open Software Foundation and here we have a real
middleware OS that actually makes a lot of complicated high-level tasks like security, services,
access, directories with distributed authentication, file handle (you are transparently redirected to the
file, as long as you do have handle to this file. Never mind where this file is). This is also based on
RPC mechanism.
Another MOSIX is another crucial OS that is used in HPC Linux and GPU clusters. This is actually
truly distributed system that uses more complex and elaborated VM and MPI elaboration mechanism
that work as a bottom communication layer which provides them a lot of benefits in speed , reliability
and so on because VM and MPI have highly elaborated mechanism for reliability and are focused
on efficiency.
Transparency for cloud platforms
The transparency, of course, in cloud platform is critical. Data is owned by users, independent of the
applications.
The OS provides clear interfaces, standard programming interfaces, or system calls to application
programmers. In a cloud infrastructure, the hardware is separated from the OS. The idea is that you
are able to choose from different OSes on top of the other devices that you prefer to use.
To separate user data from specific application programs, users can enable cloud applications as
SaaS and switch among different services. The data will not bound to specific applications.
Sum all the values that are present in all the nodes, is done with an MPI primitive, which is very
optimized, highly efficient way of doing a simple operation.
MapReduce is not powerful as Von Neumann architecture, so the computations is divided in two
faces (Map and Reduce), but they can be applied in extremely quick way on to distributed
architecture.
Map produces a set of key/value pairs so tasks can be performed absolutely in parallel. Reduce is
something that apply a margin function to take all the intermediate driving and provide the output.
Hadoop is quite similar rather more general framework for running applications on large dataset. A
scalable, efficient and reliable tool for providing users with easy access of commercial clusters.
In the above table there are some standards examples.
OGSA , Globus Toolkits , IBM Grid Toolbox they all provide high level services. An example is PKI
( Public Key Infrastructure ) protocol for signing in the platform.
OGSA: key features include a distributed execution environment, PKI services using a logical
certificate authority (CA) , trust management and security policies in grid computing.
Globus Toolkits: is a middleware library, that implements some of the OGSA standards for resource
discovery, allocation and security enforcement in a grid environment.
Quality of Service
The dimension of quality
Of course, quality is extremely important when talking about software products. There are several
dimensions for the distributed systems where the quality actually matters, and they are:
● Performance ;
● Reliability ;
● Security ;
● Energy Efficiency.
Performance and scalability
Performance means scalability, about a cloud. We need some performance metrics to measure
various distributed systems. Some are very coarse grain , so number of instructions per seconds or
the CPU speed, network bandwidth.
In a distributed system, performance is not just a simple number and is attributed to many factors.
We need to use combinations of those metrics. We can use the number of instructions per
seconds , CPU speed (MIPS) , the floating-point instructions per second (Tflops) , or the number
of transactions per seconds (TPS).
In TPS each transaction is related to a business, so a transaction is a part of the business, while
mbps, or MIPS, Tflops (tera floating-point operations per second) and so on are measures that may
be more difficult from the point of view of the consumer to relate to. Other measures include job
response time and network latency.
An interconnection network that has low latency and high bandwidth is preferred. To provide very
quick systems, we want to limit the overhead of the system, so we want to reduce the time to boot,
the time to compile, the data rate for I/O and improve the runtime support system.
When we are talking about QoS (Quality of Service) for services of the internet, we talk about
availability and dependability, but also about security and resilience for networks attacks.
Some issues about scalability
Any resource upgrade in a system should be backward compatible with existing hardware and
software resources. System scaling can increase or decrease resources depending on many
practical factors. The following dimensions of scalability are characterized in parallel and distributed
systems:
● Size scalability : This refers to achieving higher performance or more functionality by
increasing the machine size. The word size refers to adding processors, cache, memory,
storage, or I/O channels. We can increase our performance by paying more resources (we
buy 20 nodes more and our problem should be resolved much quicker).
● Software scalability : This refers to upgrade in OS or in compilers, adding mathematical and
engineering libraries, porting new application software, and installing more user-friendly
programming environments. Some software upgrades may not work with large system
configurations. An upgrade of the web browser can make our web application does not work.
● Application scalability : Also, the application must be able to scale up. We should get the
application to use the resources that we keep adding to our pool of resources. Problem size
affects the size of the data set or the workload increase. Instead of increasing machine size,
users can enlarge the problem size to enhance system efficiency or cost-effectiveness.
● Technology scalability : This refers to a system that can adapt to changes in building
technologies, such as the component and networking technologies.
It is refers also to the possibility to change the communication protocol of our application (or
other components). If an application can handle changing of communication protocol, then it
is scalable. When scaling a system design with new technology one must consider three
aspects: time , space and heterogeneity. Time refers to generation scalability. For example,
when changing to new-generation processors, one must consider the impact to the
motherboard, power supply, packaging, and cooling. Space is related to packaging and
energy concerns. Heterogeneity refers to the use of hardware components or software
packages from different vendors. Heterogeneity may limit the scalability.
Scalability and OS images
Scalability is often measured in terms of how many OS images do you have. In all kind of clusters,
grids, P2P networks, and clouds as well, the number of OS image that you have is the critical point.
An SMP ( symmetric multiprocessor ) server has a single system image, which could be a single node
in a large cluster (all nodes are equal and symmetric).
When 𝛼 = 0 then 𝑆 = 𝑛.
When our code is good, we can have all the speedup we want.
But, even with 𝑛 → ∞, the maximum Speedup (for 𝛼 > 0 is 1 /𝛼). This means that with only 25% of
the code that must be executed sequentially, the max speedup 𝑆 is 4 , even with hundreds/thousands
of processors!
Gustafson’s law
Usually, fixed workload is not always reasonable: one may be able to scale up the problem size to
match the parallel computing capability. We may encounter problems when the workload is as large
as we want.
The amount of data that you have to deal with, can be so big that you can cat pieces of any size and
deal these pieces in your program. You should sync something that can be tailored to your parallel
computation capabilities. Actually, you can use your computation, your parallel resources, much
more effectively.
Let 𝑊 be the workload that on a 𝑛 processor system can be scaled up to
𝑛
′
Only the parallelized part is scaled up, of an amount equal to the computing parallel capabilities.
Then the scaled speedup obtained is:
𝑛
′
Now you have much larger speedup that is actually depending on 𝑛, which is a good sign, because
if you increase 𝑛, so you increase the capability.
So, a program with 𝛼 =
1
4
can obtain with 256 processors a speedup with a variable workload of
The idea of Gustafson’s law is something it is very common for example in large scale economies,
where the overhead to build a certain number of goods, for example in an industry, is fixed.
Then you can scale up the number of goods that you produce so you can increase production and
the and increase efficiency. If you produce 10 processors a month, with a fixed overhead, you can
produce 10 000 or millions of processors with the same fixed overhead. This makes the overall
processes much more efficient, and you can sell the processors very cheaply.
The problem is: do you really have a scalable workload? Can you choose your size? May be if
you look around for “others” problem to solve? Want to play the “cloud provider”? Cloud service
providers can offer affordable pricing because they have many resources that share common
expenses, such as power supply, cooling system, and so on. These charges are the fixed
overhead that allows cloud providers to offer low-cost services.
Fault tolerance and Availability
A system is highly available if it has a long mean time to failure (MTTF) and a short mean time to
repair (MTTR).
If a hard disk fails, the time to substitute it was highly influenced by the time to unscrew and screw
the hard disk. It is much easier to pull out the old disk and replace with the new one without
unscrew and screw anyone screw (maybe with some interlocking mechanism). This influencing
positively the MTTR.
The system availability is formally defined as follow:
Any failure that will pull down the entire system is called a single point of failure , so we must
avoid designing with a single point of failure. We can avoid it using multiple power providers,
multiple internet provider, multiple storage devices, provide hardware redundancy, increasing
component reliability, and design for testability. We can backup data in other data centers located
in a different geographic area to provide a service of disaster recovery.
The availability of course, is increase because of their size. If we have many components, the
possibility that one of them fails is high.
SMP and MPP are vulnerable with centralized resources under one OS. Multiple OSes improve
availability of NUMA machines.
HW with failover capability improve availability of most clusters.
There is some hardware that automatically switches off and routes the requests to another piece of
hardware if it is not working (usually network switches).
A cloud has an estimated availability similar to that of the hosting cluster.
Cluster, clouds, and grids have decreasing availability as the system increase in size (isolation of
fault and automatic recovery).
A P2P file-sharing network operates independently with low availability.