Virtual Shared Memory (VSM)



Similar documents
Vorlesung Rechnerarchitektur 2 Seite 178 DASH

Virtual vs Physical Addresses

COS 318: Operating Systems. Virtual Memory and Address Translation

Chapter 12: Multiprocessor Architectures. Lesson 09: Cache Coherence Problem and Cache synchronization solutions Part 1

Multiprocessor Cache Coherence

Web DNS Peer-to-peer systems (file sharing, CDNs, cycle sharing)

DFSgc. Distributed File System for Multipurpose Grid Applications and Cloud Computing

OPERATING SYSTEM - VIRTUAL MEMORY

Virtual Memory. How is it possible for each process to have contiguous addresses and so many of them? A System Using Virtual Addressing

COSC 6374 Parallel Computation. Parallel I/O (I) I/O basics. Concept of a clusters

Intel P6 Systemprogrammering 2007 Föreläsning 5 P6/Linux Memory System

Distributed Systems. REK s adaptation of Prof. Claypool s adaptation of Tanenbaum s Distributed Systems Chapter 1

Virtual Memory Paging

Network Attached Storage. Jinfeng Yang Oct/19/2015

CS 61C: Great Ideas in Computer Architecture Virtual Memory Cont.

Components of a Computer System

Lecture 23: Multiprocessors

OpenMosix Presented by Dr. Moshe Bar and MAASK [01]

Annotation to the assignments and the solution sheet. Note the following points

Veritas Cluster Server

Principles and characteristics of distributed systems and environments

Simple Solution for a Location Service. Naming vs. Locating Entities. Forwarding Pointers (2) Forwarding Pointers (1)

The Data Grid: Towards an Architecture for Distributed Management and Analysis of Large Scientific Datasets

Introduction to Virtual Machines

Distributed Systems. Virtualization. Paul Krzyzanowski

Naming vs. Locating Entities

matasano Hardware Virtualization Rootkits Dino A. Dai Zovi

Microkernels, virtualization, exokernels. Tutorial 1 CSC469

Chapter 11 Distributed File Systems. Distributed File Systems

CDAT Overview. Remote Managing and Monitoring of SESM Applications. Remote Managing CHAPTER

Exploiting Address Space Contiguity to Accelerate TLB Miss Handling

Lecture 17: Virtual Memory II. Goals of virtual memory

Pervasive PSQL Meets Critical Business Requirements

Exokernel : An Operating System Architecture for Application-Level Resource Management. Joong Won Roh

Page 1 of 5. IS 335: Information Technology in Business Lecture Outline Operating Systems

2.1 What are distributed systems? What are systems? Different kind of systems How to distribute systems? 2.2 Communication concepts

Planning and Maintaining a Microsoft Windows Server Network Infrastructure

Why Computers Are Getting Slower (and what we can do about it) Rik van Riel Sr. Software Engineer, Red Hat

Memory Coherence in Shared Virtual Memory Systems

ZooKeeper. Table of contents

CSC 2405: Computer Systems II

Cluster Computing. ! Fault tolerance. ! Stateless. ! Throughput. ! Stateful. ! Response time. Architectures. Stateless vs. Stateful.

Virtual machine interface. Operating system. Physical machine interface

IOMMU: A Detailed view

Hierarchy storage in Tachyon.

Deploying and Optimizing SQL Server for Virtual Machines

COSC 6374 Parallel Computation. Parallel I/O (I) I/O basics. Concept of a clusters

1. Computer System Structure and Components

CORBA and object oriented middleware. Introduction

HTTP-FUSE PS3 Linux: an internet boot framework with kboot

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

Hardware Assisted Virtualization

Distribution transparency. Degree of transparency. Openness of distributed systems

Design and Evolution of the Apache Hadoop File System(HDFS)

Uses for Virtual Machines. Virtual Machines. There are several uses for virtual machines:

Operating system Dr. Shroouq J.

The Reduced Address Space (RAS) for Application Memory Authentication

Amoeba Distributed Operating System

WINDOWS SERVER MONITORING

MCSE Core exams (Networking) One Client OS Exam. Core Exams (6 Exams Required)

High Performance Computing. Course Notes HPC Fundamentals

Understanding Hardware Transactional Memory

Chapter 18: Database System Architectures. Centralized Systems

HRG Assessment: Stratus everrun Enterprise

Parallel Algorithm Engineering

A distributed system is defined as

How To Make A Distributed System Transparent

NVM PM Remote Access for High Availability

Virtual Machines. COMP 3361: Operating Systems I Winter

Operating Systems. Design and Implementation. Andrew S. Tanenbaum Melanie Rieback Arno Bakker. Vrije Universiteit Amsterdam

Operating Systems 4 th Class

Outline. Operating Systems Design and Implementation. Chap 1 - Overview. What is an OS? 28/10/2014. Introduction

CS 416: Opera-ng Systems Design

Remus: : High Availability via Asynchronous Virtual Machine Replication

Centralized Systems. A Centralized Computer System. Chapter 18: Database System Architectures

RAID. RAID 0 No redundancy ( AID?) Just stripe data over multiple disks But it does improve performance. Chapter 6 Storage and Other I/O Topics 29

CHAPTER 6: DISTRIBUTED FILE SYSTEMS

Distributed Systems LEEC (2005/06 2º Sem.)

HDFS Architecture Guide

.OR.AT.ATTORNEY.AUCTION.BARGAINS.BAYERN.BERLIN.BLACKFRIDAY.BOUTIQUE.BRUSSELS.BUILDERS

Big Data With Hadoop

Restoring Microsoft SQL Server 7 Master Databases

INSTALLING MICROSOFT SQL SERVER AND CONFIGURING REPORTING SERVICES

Memory Architecture and Management in a NoC Platform

COS 318: Operating Systems

Hardware/Software Guidelines

x86 Virtualization Hardware Support Pla$orm Virtualiza.on

Preserving Message Integrity in Dynamic Process Migration

Ensim WEBppliance 3.0 for Windows (ServerXchange) Release Notes

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

Transcription:

Vorlesung Rechnerarchitektur 2 Seite 76 Basic Concepts Virtual Shared (VSM) Virtual shared memory (VSM) was first developed in a Ph.D. thesis ky Kai Li (1986). The idea is to implement a coherent shared memory on a network of processors without physically shared memory. The system uses virtual addresses for memory references. The VSM address space is organized in pages which can be accessed by any node in the system. A memory-mapping manager on each node views its memory as a large cache of pages for its associated processor. Pages that are marked read-only can have copies in the physical memory of other nodes. A page currently written may reside in only one memory. The page fault mechanism of the MMU is used to handle the access and an VSM manager called by the MMU trap can perform the consistency protocol and the of pages. page based access control page fault handler Home node The node holding the primary page primary page The page located at the home node, only copies of this page are distributed to other nodes copied page A Page which is a of a primary page write permission only for primary pages without copies

Vorlesung Rechnerarchitektur 2 Seite 77 Read access Virtual Shared (VSM) Node # i 1. read fault 4. enter new address 3. store Node # j addr 2. read primary page 1. access to variable by a read => page fault 2. find the appropriate primary page (Node #j) and send a read to this node 3. the page to the er 4. enter new address into page table and restart page access Read access Page fault handler is software-based. The MMU traps into the OS on a page miss. Instead of transferring the missing page from swap space into memory, the page fault handler sends a message to the home node ing a of the page. Upon reception of the answer, the page is stored at the appropriate location in main memory and the process can resume execution. Functions of the page fault handler finding the source of state information by using a directory; a page has a "home" determined by (a part of) the virtual address finding the appropriate copies communicating with the copies and the page to the er; setting page access rights rescheduling of the process to hide latency

Vorlesung Rechnerarchitektur 2 Seite 78 Write access Virtual Shared (VSM) Node # i 4. store primary page Node # j.n access pr pa 1. write 6. enter new address.m faultaddr.m access 1. access to variable by a write => page fault 5. invalidate 5. invalidate 3. new owner 3. new owner addr.n 2. page Node # k.o co of 2. find the appropriate primary page (Node #j) and send a write to this node 3. messages to all nodes with read copies to enter new single write owner.o 4. store primary page to write er 5. invalidate all copies 6. enter new address into page table and restart page access Write access The write access in a virtual shared memory (VSM) is much more complicated than a read. The single writer coherency scheme requires the invalidation of all copies handed out for read only and the move of the page to the write er.

Vorlesung Rechnerarchitektur 2 Seite 79 Virtual Shared (VSM) Example of a Coherency Protocol for VSM remote write read miss INVALID write miss remote write SHARED write hit OWNED remote read LOCAL global States of the coherence protocol invalid: access not possible shared: only read-access allowed, copies are present on other nodes owned: write access possible, copies are not allowed : state for multiple writer access scheme, see next page

Vorlesung Rechnerarchitektur 2 Seite 8 Virtual Shared (VSM) Methode for unification of partly changed copies replicate replicate difference difference update update sequential consistency updated data.8 1.5.8 1.5 1. original data 2. subtraction 3. determine changes.3.7 subtraction partial changed updated data Update scheme for partial changed copies