Microsoft PowerPoint - Chapter9_OtherOS.pptx

Similar documents
9.otherOS.pptx

<4D F736F F F696E74202D20C8EDBCFEBCDCB9B9CAA6D1D0D0DEBDB2D7F92E707074>

2/80 2

目次 

A Preliminary Implementation of Linux Kernel Virus and Process Hiding

提纲 1 2 OS Examples for 3

投影片 1

CH01.indd

Cloudy computing forEducation

第 15 章 程 式 編 写 語 言 15.1 程 式 編 写 語 言 的 角 色 程 式 編 寫 語 言 是 程 式 編 寫 員 與 電 腦 溝 通 的 界 面 語 法 是 一 組 規 則 讓 程 式 編 寫 員 將 字 詞 集 合 起 來 電 腦 是 處 理 位 元 和 字 節 的 機 器, 與

DocHdl2OnPPMtmpTarget

Microsoft PowerPoint - 数据通信-ch1.ppt

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

输电线路智能监测系统通信技术应用研究

豐佳燕.PDF

m m m ~ mm

工程师培训

13 A DSS B DSS C DSS D DSS A. B. C. CPU D. 15 A B Cache C Cache D L0 L1 L2 Cache 16 SMP A B. C D 17 A B. C D A B - C - D

F4

Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram

epub83-1

IT Data-intensive application,iscsi Middl

的 機 器 指 令, 由 Java 虛 機 器 代 表 第 三 種 是 Unix 虛 擬 機 器 模 型 我 們 將 一 一 介 紹 這 些 不 同 派 別 的 VM 模 型 IBM 虛 擬 機 器 模 型 現 今 所 使 用 的 主 要 VM 模 型 之 一 就 是 IBM(Internation

随需应变网络,恒久电信质量

,2(1) 基 礎 上, 各 種 數 據 均 以 圖 形 化 方 式 表 達, 因 此 各 級 分 析 結 果 均 可 以 隨 時 檢 驗 另 外, 由 於 系 統 是 以 網 站 形 式 發 佈, 任 何 用 戶 均 可 通 過 網 絡 查 詢 瀏 覽 系 統 中 的 數 據, 因

OSI OSI 15% 20% OSI OSI ISO International Standard Organization 1984 OSI Open-data System Interface Reference Model OSI OSI OSI OSI ISO Prototype Prot

ebook140-8

BYOD IP+Optical (IP NGN) API 4. End-to-End (Service Aware) 5. IP NGN (IP Next Generation Network) ( ) Prime Carrier Management Access Edge Co

ERP ERP ERP ERP ERP 13

自由軟體教學平台

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

经华名家讲堂

WTO

Basic System Administration

1 IT IT IT IT Virtual Machine, VM VM VM VM Operating Systems, OS IT

Microsoft PowerPoint - Aqua-Sim.pptx

TCP/IP TCP/IP OSI IP TCP IP IP TCP/IP TCP/IP

Microsoft PowerPoint ARIS_Platform_en.ppt

untitled


UDC 厦门大学博硕士论文摘要库

大学计算机基础B.doc

國立中山大學學位論文典藏.PDF


[1] Liu Hongwei,2013, Study on Comprehensive Evaluation of Iron and Steel Enterprises Production System s Basic Capacities, International Asia Confere

XXX专业本科人才培养方案

RAQMON Context Setting MG PDA Applications RTP / FTP/ HTTP TCP/UDP S ignaling control plane (e.g. RS VP, NS IS) Streaming Media, Transaction, Bulk dat

IP505SM_manual_cn.doc

VASP应用运行优化

K301Q-D VRT中英文说明书141009

9, : Java 19., [4 ]. 3 Apla2Java Apla PAR,Apla2Java Apla Java.,Apla,,, 1. 1 Apla Apla A[J ] Get elem (set A) A J A B Intersection(set A,set B) A B A B

ebook140-9

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

Microsoft Word - netcontr.doc

<4D F736F F D20312D3120B9ABBFAAD7AAC8C3CBB5C3F7CAE9A3A8C9EAB1A8B8E5A3A92E646F63>

1.ai

Cube20S small, speedy, safe Eextremely modular Up to 64 modules per bus node Quick reaction time: up to 20 µs Cube20S A new Member of the Cube Family


Learning Java

Microsoft Word - HHG 10 Page 001.doc

2 response personnel to speed up the rescue operations after various natural or man-made disasters. Keywords: SMS, Database, Disaster

Microsoft Word - 12 hhg doc

附3

Chun- Chao Tseng Far East colledge Abstract This study focuses on the school administration which is closely related to whether the administrative aff

06721 main() lock pick proc() restart() [2][4] MINIX minix2.0 GDT, IDT irq table[] CPU CPU CPU CPU (IDTR) idt[] CPU _hwint00:! Interrupt


计 算 机 系 统 应 用 年 第 25 卷 第 4 期 线 程 的 复 用 [2,3]. 通 常 情 况 下, 服 务 器 端 程 序 在 启 动 时 创 建 若 干 数 量 的 线 程 对 象 并 缓 存 起 来, 此 时 它 们 处 于

面向对象系统中有两种基本的复用方式:框架复用和类库复用

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南

穨control.PDF

案例正文:(幼圆、小三、加粗)(全文段前与段后0

ArcGIS Sever.NET ArcGIS Server Web JAVA ArcGIS Server Web

自由軟體社群發展經驗與 Linux認證介紹

20-25%,

普 通 高 等 教 育 十 二 五 重 点 规 划 教 材 计 算 机 系 列 中 国 科 学 院 教 材 建 设 专 家 委 员 会 十 二 五 规 划 教 材 操 作 系 统 戴 仕 明 姚 昌 顺 主 编 姜 华 张 希 伟 副 主 编 郑 尚 志 梁 宝 华 参 编 参 编 周 进 钱 进

黃 花 崗 讀 者 子 日 先 生 在 大 陸 遙 祝 雜 誌 同 仁 中 秋 好! 參 加 過 八 年 抗 戰 的 國 民 革 命 軍 前 中 將 羅 澄 先 生 告 訴 黃 花 崗 雜 誌 主 編 說 : 你 們 做 的 就 是 在 歷 史 和 文 化 上 正 本 清 源 繼 往 開 來 的 大

计 算 机 系 统 应 用 年 第 25 卷 第 1 期 的 编 程 语 言 Giotto [9] 编 写 控 制 程 序, 可 以 方 便 的 控 制 程 序 的 逻 辑 执 行 时 间, 从 而 使 得 任 务 时 间 的 依 赖 关 系

Microsoft Word - 00-巻頭言.doc

Microsoft Word - A doc

Mechanical Science and Technology for Aerospace Engineering October Vol No. 10 Web SaaS B /S Web2. 0 Web2. 0 TP315 A


iml v C / 0W EVM - pplication Notes. IC Description The iml8683 is a Three Terminal Current Controller (TTCC) for regulating the current flowin

new Taiwanese children etc., it is imperative to build a new system of Primary Teachers training program, which is the system. It is the t

Microsoft PowerPoint - Performance Analysis of Video Streaming over LTE using.pptx

iml v C / 4W Down-Light EVM - pplication Notes. IC Description The iml8683 is a Three Terminal Current Controller (TTCC) for regulating the cur

Master Thesis_專門用來製作目錄.doc

2011年上海市高校精品课程申报表(本科)


892213E006146

Dell EMC Data Domain DDOS 5.5 Data Domain Data Domain Data Domain : Data Domain Boost (DDBoost) Dell EMC DDBoost Data Domain DDBoost Source De-Dup Bac

A API Application Programming Interface 见 应 用 程 序 编 程 接 口 ARP Address Resolution Protocol 地 址 解 析 协 议 为 IP 地 址 到 对 应 的 硬 件 地 址 之 间 提 供 动 态 映 射 阿 里 云 内

(Electronic Data Interchange) (Executive Information System) (Economic Order Quantity) (Enterprise Resource Planning) (Flexible Manufacture System) (F

AL-M200 Series

05_資源分享-NFS及NIS.doc

lan03_yen

软件测试(TA07)第一学期考试

SERVERIRON ADX

Epson

iml88-0v C / 8W T Tube EVM - pplication Notes. IC Description The iml88 is a Three Terminal Current Controller (TTCC) for regulating the current flowi

Transcription:

操作系统 2014 春 第 9 章其他类型的操作系统 授课人 : 孙海龙 2014 年 5 月 21 日 多处理机系统 内容提要 实时操作系统 嵌入式操作系统 2 1

多处理机系统的三种模型 (a) 共享存储的多处理机. (b) 基于消息传递的多处理机. (c) 广域分布式系统. 统一存储器访问 UMA 的总线型多处理机体系结构 (a) 无缓存. (b) 有缓存. (c) 有缓存和私有存储 2

统一存储器访问 UMA 的交叉开关型多处理机体系结构 (a) 8 8 交叉开关. (b) 打开的交叉点. (c) 闭合的交叉点. 使用多阶段交换网络的 UMA 多处理机 (1) Figure 8-4. (a) A 2 2 switch with two input lines, A and B, and two output lines, X and Y. (b) A message format. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639 3

使用多阶段交换网络的 UMA 多处理机 (2) Figure 8-5. An omega switching network. 非一致内存访问 NUMA 的多处理机 Figure 8-6. (a) A 256-node directorybased multiprocessor. 访问远程内存比访问本地内存要慢 4

每个 CPU 拥有各自的操作系统 每个 CPU 具有自己的内存, 用于保存私有数据 ; 操作系统的代码被所有 CPU 进行共享 主从式多处理机 Figure 8-8. A master-slave multiprocessor model. 所有的系统调用都由主 CPU 处理, 从 CPU 只负责运行用户进程 5

对称多处理机 Figure 8-9. The SMP multiprocessor model. 互斥访问 死锁处理 多处理机同步与互斥 TSL 指令 : 必须锁住总线, 否则会失效 6

多处理机的调度 - 分时系统 使用一个数据结构进行调度 ( 线程之间无依赖关系 ) 多处理机调度 - 空间共享 32 个 CPU 分成 4 个区域, 两个 CPU 可用 ( 某些线程需要同时进行调度 ) 7

群调度 Gang Scheduling (1) Figure 8-14. Communication between two threads belonging to thread A that are running out of phase. 空间共享与分时的结合, 让一个进程的所有线程一起调度运行 Gang Scheduling (2) The three parts of gang scheduling: 1.Groups of related threads are scheduled as a unit, a gang. 2.All members of a gang run simultaneously, on different timeshared CPUs. 3.All gang members start and end their time slices together. 8

Gang Scheduling (3) Figure 8-15. Gang scheduling. 多计算机之间的互联 : Interconnection Technology (1) Figure 8-16. Various interconnect topologies. (a) A single switch. (b) A ring. (c) A grid. 9

Interconnection Technology (2) Figure 8-16. Various interconnect topologies. (d) A double torus. (e) A cube. (f) A 4D hypercube. Network Interfaces Figure 8-18. Position of the network interface boards in a multicomputer. 10

阻塞与非阻塞调用 (1) (a) 阻塞的 send 调用. 阻塞与非阻塞调用 (2) 非阻塞的 send 调用 问题 : 直到消息发送出去才能修改其消息缓冲区, 否则消息会丢失, 发送进程仍然无法连续发送消息 三种方法 : 复制消息到内核缓冲区 发送结束之后中断发送者 缓冲区写时复制 11

阻塞与非阻塞调用 (3) 因此发送方有四种选择 : 1.Blocking send (CPU idle during message transmission). 2.Nonblocking send with copy (CPU time wasted for the extra copy). 3.Nonblocking send with interrupt (makes programming difficult). 4.Copy on write (extra copy probably needed eventually). 远程过程调用 :Remote Procedure Call 屏蔽 I/O 层的细节 12

分布式共享内存 (1) 不同层次实现存储器共享 分布式共享内存 (2) (a) Pages of the address space distributed among four machines. 13

多计算机间的调度算法 : 基于图论的确定性调度算法 Figure 8-24. Two ways of allocating nine processes to three nodes. 目标 : 最小网络流 A Sender-Initiated Distributed Heuristic Algorithm 过载的节点主动询问空闲节点 14

虚拟化技术 系统虚拟化 : 实现操作系统与物理计算机的分离, 使得在一台物理计算机上可以同时安装和运行一个或多个虚拟的操作系统 虚拟机 : 使用系统虚拟化技术, 运行在一个隔离环境中 具有完整硬件功能的逻辑计算机系统, 包括操作系统和其中的应用程序 最早在 IBM 370 中提出 IBM Systems Journal, vol. 18, no. 1, 1979, pp. 4 17. Concurrent execution of multiple production operating systems Testing and development of experimental systems Adoption of new systems with continued use of legacy systems Ability to accommodate applications requiring specialpurpose OS Introduced notions of handshake and virtual-equals-real mode to allow sharing of resource control information with CP Leveraged ability to co-design hardware, VMM, and guestos 15

计算机系统结构与接口 API ABI ISA Libraries Operating System System Calls System ISA Applications User ISA Hardware API application programming interface ABI application binary interface ISA instruction set architecture 系统级 VMM 类型 Provides ABI interface Efficient execution Can add OS-independent services (e.g., migration, intrustion detection) 进程级 Provdes API interface Easier installation Leverage OS services (e.g., device drivers) Execution overhead (possibly mitigated by justin-time compilation) 16

系统级的虚拟化设计 完全虚拟化 (direct execution) Exact hardware exposed to OS Efficient execution OS runs unchanged Requires a virtualizable architecture Example: VMWare 半虚拟化 Paravirtualization OS modified to execute under VMM Requires porting OS code Execution overhead Necessary for some (popular) architectures (e.g., x86) Examples: Xen, Denali Design Space (level vs. ISA) API interface ABI interface Variety of techniques and approaches available Critical technology space highlighted 17

系统级 VMM Type 1 Structure Type 1: runs directly on host hardware Type 2: runs on HostOS Primary goals Type 1: High performance Type 2: Ease of construction/installation/acceptability Examples Type 1: VMWare ESX Server, Xen, OS/370 Type 2: User-mode Linux Type 2 Structure Hybrid between Type1 and Type2 Core VMM executes directly on hardware I/O services provided by code running on HostOS Goals Improve performance overall leverages I/O device support on the HostOS Hosted VMMs Disadvantages Incurs overhead on I/O operations Lacks performance isolation and performance guarantees Example: VMWare (Workstation) 18

Whole-system VMMs Challenge: GuestOS ISA differs from HostOS ISA Requires full emulation of GuestOS and its applications Example: VirtualPC CS5204 Operating Systems VMM machine 虚拟机环境下的内存管理 OS physical process virtual entity address space VMM shadow page tables GuestOS page tables Isolation/protection of Guest OS address spaces Efficient MM address translation 19

分布式系统 小结 : 多处理机系统. 20

内容提要 多处理机系统 实时操作系统 嵌入式操作系统 41 实时操作系统 满足实时应用需求的操作系统, 其关键的指标是实际处理时间与所指定时间的一致性程度 分为 : 软实时和硬实时 调度算法 : 协作型调度 抢先式调度 最早截止时间优先调度 随机有向图调度 http://en.wikipedia.org/wiki/real time_operating_system 21

内容提要 多处理机系统 实时操作系统 嵌入式操作系统 43 嵌入式操作系统 嵌入式系统 : 具有专用功能的机电系统, 通常具有实时需求 能耗优化 CPU 消耗 内存使用 网络带宽 22

问题? 23