Virtual Memory 虚拟内存

什么是虚拟内存?

  • 允许执行程序的技术
    • 可以驻留在不连续的内存位置
    • 不必完全驻留在内存中
  • 允许计算机“伪造”程序,使其相信
    • 内存是连续的
    • 内存空间比物理内存大,给人一种超大内存的错觉

为什么虚拟内存很重要?

  • 便宜-不再需要买很多内存
  • 减轻程序员的内存资源管理负担
  • 支持多道程序设计、分时、保护
  • 连续的虚拟地址,映射到分散的物理地址

多处理器

MIMD

集中共享存储器的多处理器系统

  • With small processor counts
  • With large caches
  • Called symmetric (shared-memory) multiprocessors (SMPs) 对称多处理系统
  • Called UMA for uniform memory access 统一内存访问

分布式存储器的多处理器系统 Distributed-memory architecture

  • With large processor counts
  • the need for a high bandwidth interconnect 对高带宽互连的需求
  • Advantage:
    • cost-effective way to scale the memory bandwidth, if most of accesses are to local memory in the node. 如果大多数访问都是对节点中的本地内存进行的,则采用经济高效的方式来扩展内存带宽。
    • It reduces the latency for access to the local memory.

 

Snooping 侦听

根据不同的数据执行不同的事务,主要针对总线结构。

Write vaild 写无效: 一个人更改 其他人作废

Write update 写更新: 一个人更改 其他人同时更新

Directory protocol 目录式


0 条评论

发表评论

Avatar placeholder