第6章分布式存储管理 东北大学信息学院 于戈 2002年7月
第6章 分布式存储管理 东北大学信息学院 于 戈 2002年7月
主要内容 6,1分布式共享内存(DSM) 6.2一致性模型 6.3基于页面的DSM 264DSⅥM的应用 6.5习题 2002-7-12 东北大学软件所于戈 第六章分布式存储管理
2002-7-12 东北大学软件所 于戈 第六章 分布式存储管理 2 主要内容 6.1 分布式共享内存(DSM) 6.2 一致性模型 6.3 基于页面的DSM 6.4 DSVM的应用 6.5 习题
6.1分布式共享内存(DSM CPU与存储器连接模型 芯片包 口单片机 存储 ●口理想的共享存储器多处理机 CPU 器 CPU2 地址和数据线连结 CPU和主存 存储 CPL CPU3 CPU (b) 2002-7-12 东北大学软件所于戈 第六章分布式存储管理
2002-7-12 东北大学软件所 于戈 第六章 分布式存储管理 3 6.1分布式共享内存(DSM) CPU与存储器连接模型 ❑ 单片机 ❑ 理想的共享存储器多处理机
UNIX共享内存举例 I System call Description eint shmget(key, size, returns the SM identifier associated with ishmflg): key void*shmat(shmid, attaches the SM segment associated *shmaddr, shmflg); with the shmid to the data segment of the calling process int shmdt(const void detaches from the calling process's shmaddr); data segment the SM segment located at shmaddr int shmctl(shmid, cmd, provides a variety of SM control buf) operations as specified by cmd. 2002-7-12 东北大学软件所于戈 第六章分布式存储管理
2002-7-12 东北大学软件所 于戈 第六章 分布式存储管理 4 UNIX共享内存举例 System call Description int shmget(key, size, ishmflg); returns the SM identifier associated with key. void *shmat(shmid, *shmaddr, shmflg); attaches the SM segment associated with the shmid to the data segment of the calling process. int shmdt(const void *shmaddr); detaches from the calling process's data segment the SM segment located at shmaddr. int shmctl(shmid, cmd, *buf) provides a variety of SM control operations as specified by cmd
层次结构 Machine 2 Machine 1 Machine 2 Machine 1 Machine 2 Application Application Application Application Application Run-time Run-time Run-time Run-time Run-time Run-time system system system Operating Operati ng berating Operating ng system system system system system system Hardware Hardware Hardware Hardware Hardware Hardware Shared memory Shared memory Shared memory 200 c 第六方其存聞 5 东北大学软件所于戈
2002-7-12 东北大学软件所 于戈 第六章 分布式存储管理 5 层次结构