Professional Documents
Culture Documents
De Sistemas en Paralelo A Sistemas Distribuidos
De Sistemas en Paralelo A Sistemas Distribuidos
sistemas distribuidos
Operating System Concepts – 10th Edition Silberschatz, Galvin and Gagne ©2018
Outline
▪ Review
▪ From parallel to distributed systems
• Pitfalls in distributed computing
• New requirement: scalability
• Event-driven Server Architectures
• Grid and cloud computing
Operating System Concepts – 10th Edition 4.2 Silberschatz, Galvin and Gagne ©2018
Outline
▪ Review
▪ From parallel to distributed systems
• Pitfalls in distributed computing
• New requirement: scalability
• Event-driven Server Architectures
• Grid and cloud computing
Operating System Concepts – 10th Edition 4.3 Silberschatz, Galvin and Gagne ©2018
Parallel vs distributed: summary
▪ Parallelism system
• Shared memory or
• Close physically colocated
• No concurrency
HPC IBM's Blue Gene/P massively parallel
• Scientists supercomputer
▪ Distributed system
• Physically remote
• Concurrency
• Business Cloud computing
Operating System Concepts – 10th Edition 4.4 Silberschatz, Galvin and Gagne ©2018
Concurrency vs. Parallelism
Concurrency is a conceptual property of a program, while parallelism is a
runtime state.[1]
In terms of scheduling, parallelism can only be achieved if the hardware
architecture supports parallel execution, like multi-core or multi-processor
systems do. A single core machine will also be able to execute multiple threads
concurrently, however it can never provide true parallelism.[1]
Operating System Concepts – 10th Edition 4.5 Silberschatz, Galvin and Gagne ©2018
Parallel vs distributed: Concurrency perspective
Operating System Concepts – 10th Edition 4.7 Silberschatz, Galvin and Gagne ©2018
Outline
▪ Review
▪ From parallel to distributed systems
• Pitfalls in distributed computing
• New requirement: scalability
• Event-driven Server Architectures
• Grid and cloud computing
Operating System Concepts – 10th Edition 4.8 Silberschatz, Galvin and Gagne ©2018
Pitfalls in distributed computing
▪ Programming distributed systems introduces a set of additional challenges
compared to regular programming.
▪ The “Fallacies of Distributed Computing”:
• The network is reliable.
• Latency is zero.
• Bandwidth is infinite.
• The network is secure.
• Topology doesn't change.
• There is one administrator.
• Transport cost is zero.
• The network is homogeneous.
Operating System Concepts – 10th Edition 4.9 Silberschatz, Galvin and Gagne ©2018
Programming languages on distributed systems
Operating System Concepts – 10th Edition 4.10 Silberschatz, Galvin and Gagne ©2018
New requirement: scalability
Operating System Concepts – 10th Edition 4.11 Silberschatz, Galvin and Gagne ©2018
Scalability and Concurrency: Amdahl’s Law
▪ Identifies performance gains from adding additional cores to an application that
has both serial and parallel components
▪ S is serial portion
▪ N processing cores
▪ That is, if application is 75% parallel / 25% serial, moving from 1 to 2 cores
results in speedup of 1.6 times
▪ As N approaches infinity, speedup approaches 1 / S
Serial portion of an application has disproportionate effect on
performance gained by adding additional cores
Operating System Concepts – 10th Edition 4.12 Silberschatz, Galvin and Gagne ©2018
Server Architectures
There are traditionally two competitive server architectures—one is based on
threads, the other on events. Over time, more sophisticated variants emerged,
sometimes combining both approaches. There has been a long controversy,
whether threads or events are generally the better fundament for high
performance.
Operating System Concepts – 10th Edition 4.13 Silberschatz, Galvin and Gagne ©2018
Event-driven Server Architectures
Operating System Concepts – 10th Edition 4.14 Silberschatz, Galvin and Gagne ©2018
Event-driven Server Architectures
New events are queued and the thread executes a so-called event loop—
dequeuing events from the queue, processing the event, then taking the next
event or waiting for new events to be pushed.
Operating System Concepts – 10th Edition 4.15 Silberschatz, Galvin and Gagne ©2018
Event-driven Server Architectures
Operating System Concepts – 10th Edition 4.16 Silberschatz, Galvin and Gagne ©2018
Grid and cloud computing
Operating System Concepts – 10th Edition 4.17 Silberschatz, Galvin and Gagne ©2018