# 单系统映像

单系统映像（SSI）是一种计算范式，它将若干分布式计算资源聚合起来，通过一个接口呈现，从而维持与单一系统交互的假象<sup>[1](https://www.sciencedirect.com/science/article/pii/S0743731516000058)</sup>。在集群中，这意味着一组标准机器作为一台大型机器运行：用户和应用程序看到的是单一的统一计算资源，而非一组独立的服务器<sup>[2](https://www.researchgate.net/publication/220457188_Single_System_Image)</sup><sup> • </sup><sup>[3](https://impact.ornl.gov/en/publications/kernel-level-single-system-image-for-petascale-computing/)</sup>。该特性通常缩写为SSI，这种聚合被描述为透明的，因为底层资源分布式的、可能异构的性质被隐藏了<sup>[2](https://www.researchgate.net/publication/220457188_Single_System_Image)</sup><sup> • </sup><sup>[4](https://buyya.com/papers/ssiArch.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 将分布式资源聚合在一个维持单一系统假象的接口之后<sup>[1](https://www.sciencedirect.com/science/article/pii/S0743731516000058)</sup> |
| 实现层次 | 硬件、操作系统、消息传递接口、语言/编译器或工具<sup>[5](https://www.gridcomputing.com/papers/ssiabs.html)</sup> |
| 核心操作系统机制 | 进程与线程迁移、负载均衡、分布式共享内存、单一I/O空间、检查点和高可用性<sup>[6](https://webarchiv.hlrs.de/sites/soos/images/SoOS/Reports/soos_d5.1_v1.0.pdf)</sup> |
| 知名Linux系统 | MOSIX、openMosix（2008年关闭）、OpenSSI和Kerrighed<sup>[6](https://webarchiv.hlrs.de/sites/soos/images/SoOS/Reports/soos_d5.1_v1.0.pdf)</sup> |
| 采用情况 | 尽管在2000年代兴趣达到顶峰，内核级SSI并未被广泛采用<sup>[1](https://www.sciencedirect.com/science/article/pii/S0743731516000058)</sup> |
| 千万亿次规模的动因 | 有论点认为，SSI操作系统对于在拥有数十万个处理器的系统上管理并行性、资源和进程至关重要<sup>[3](https://impact.ornl.gov/en/publications/kernel-level-single-system-image-for-petascale-computing/)</sup> |

## 可提供映像的层次

单一系统的假象可以在若干抽象层次中的任一个或多个层次上建立：硬件、操作系统、消息传递接口、语言/编译器或工具<sup>[5](https://www.gridcomputing.com/papers/ssiabs.html)</sup>。硬件级SSI涉及离散计算资源的聚合，例如通过分布式共享内存（DSM）架构，其中每个处理器可访问私有的内存池，而系统呈现一个共享地址空间<sup>[7](https://www.researchgate.net/publication/295253720_Single_system_image_A_survey)</sup>。

在操作系统层面，系统通过支持并行文件系统、并行命令以及多用户、多线程内核等特性来展现SSI<sup>[5](https://www.gridcomputing.com/papers/ssiabs.html)</sup>。一份关于SSI操作系统特性的调查列举了以下内容：进程和线程的迁移、负载均衡策略、全局分布式共享内存、可能支持动态添加节点的集群管理、容错、检查点和高可用性、可扩展的分布式文件系统、高性能网络原语，以及用于在集群范围内管理用户、组和权限的安全特性<sup>[6](https://webarchiv.hlrs.de/sites/soos/images/SoOS/Reports/soos_d5.1_v1.0.pdf)</sup>。

中间件方法具有规模经济性，但不像操作系统方法那样提供完整的SSI<sup>[2](https://www.researchgate.net/publication/220457188_Single_System_Image)</sup>。一个广泛使用的中间件风格示例是Linux虚拟服务器（LVS），它使集群在单一[IP地址](https://www.edgepedia.org/zh/ip-address)上呈现为虚拟服务，并组织为三层架构<sup>[2](https://www.researchgate.net/publication/220457188_Single_System_Image)</sup>。

## 进程迁移与负载均衡

**进程迁移**是许多内核级SSI所依赖的基本机制<sup>[8](https://citeseerx.ist.psu.edu/document?doi=52bdba4f6e04713b6f69295fa98f505c7e49a167&repid=rep1&type=pdf)</sup>。由希伯来大学开发的MOSIX使多个服务器节点协同工作，如同单一系统的一部分：其算法通过抢占式、透明地将进程从一个节点迁移到另一个节点来响应资源使用变化，以实现负载均衡并防止任何节点出现内存耗尽<sup>[9](https://www.linuxjournal.com/article/4546)</sup>。MOSIX对应用程序透明运行，允许顺序和并行应用程序无需关心进程在何处执行，且在不改变Linux接口的情况下做到这一点，因此用户继续看到和控制他们的进程，如同这些进程在本地节点上运行一样<sup>[9](https://www.linuxjournal.com/article/4546)</sup>。

MOSIX的系统映像模型是主节点模型：用户的所有进程似乎都在用户的登录节点上运行，每个新进程在其父进程所在的同一节点上创建，被迁移的进程通过主节点与用户环境交互，同时尽可能使用本地资源<sup>[9](https://www.linuxjournal.com/article/4546)</sup>。由于其算法是分散的，每个节点既是本地创建进程的主节点，也是被迁移进程的服务器，因此可以随时添加或移除节点，而对运行中的进程干扰极小<sup>[9](https://www.linuxjournal.com/article/4546)</sup>。

迁移与I/O和通信有强烈的相互作用。在一份已报道的使用案例中，MOSIX的默认迁移最初在软件构建时失败，因为它不执行本地I/O，而是将I/O送回进程起源的节点；后来的版本允许远程进程直接对某些集群文件系统执行I/O<sup>[10](https://www.usenix.org/legacy/publications/library/proceedings/usenix2000/freenix/full_papers/mcclure/mcclure_html/index_new.html)</sup>。对于openMosix——MOSIX的一个开源衍生物——被迁移进程之间的进程间通信是一个已知问题，有人提出了一种套接字迁移方案，通过提供用户级库和内核修改来消除被称为“代理”（deputy）的中间代码，从而减少迁移后的通信时间<sup>[11](https://www.sciencedirect.com/science/article/abs/pii/S0164121204000536)</sup>。

## 实现

若干系统为Linux实现了SSI。一份该领域的调查将openMosix、OpenSSI和Kerrighed列为Linux SSI系统<sup>[7](https://www.researchgate.net/publication/295253720_Single_system_image_A_survey)</sup>，而最初基于MOSIX的openMosix项目于2008年正式关闭<sup>[6](https://webarchiv.hlrs.de/sites/soos/images/SoOS/Reports/soos_d5.1_v1.0.pdf)</sup>。

**Kerrighed**是由雷恩的IRISA/INRIA开发的一种面向Linux的单系统映像实现，以一组Linux模块的形式实现<sup>[7](https://www.researchgate.net/publication/295253720_Single_system_image_A_survey)</sup><sup> • </sup><sup>[12](https://nongnu.uib.no/certi/papers/04F-SIW-014.pdf)</sup>。其迁移机制建立在以下机制之上：进程幽灵化——它提取进程状态信息并将其存储在磁盘、网络或内存设备上；容器——它在节点间共享数据的同时确保一致性，并支持内存共享、协作文件缓存和KerFS分布式文件系统；以及可迁移流——用于处理通信进程的迁移<sup>[13](https://www.researchgate.net/publication/4203887_OpenMosix_OpenSSI_and_Kerrighed_a_comparative_study)</sup>。在这三个系统的比较研究中，只有Kerrighed提供了可用的集群范围内存共享机制：openMosix不提供节点间内存共享的机制，OpenSSI对集群范围的System V内存段提供了一些支持，但性能极低<sup>[13](https://www.researchgate.net/publication/4203887_OpenMosix_OpenSSI_and_Kerrighed_a_comparative_study)</sup>。

**OpenSSI**曾作为一项千万亿次规模SSI提案的基础。Ong、Vetter及其同事在《ACM操作系统评论》（2006年）上提出，最初为单处理器设计的类UNIX系统不再适合千万亿次计算，因为缺乏足够的系统服务来全局管理并行性、进程和资源，用户可能将系统视为一组独立服务器而非一台强大的机器<sup>[3](https://impact.ornl.gov/en/publications/kernel-level-single-system-image-for-petascale-computing/)</sup>。他们认为，千万亿次规模的SSI必须看起来非常像普通UNIX，能运行未经修改的软件，可增量扩展，并包含内置的高可用性支持<sup>[3](https://impact.ornl.gov/en/publications/kernel-level-single-system-image-for-petascale-computing/)</sup>。

商业系统也提供了SSI特性。HP TruCluster Server V5.1A是一款面向AlphaServer系统的集群产品，需要Tru64 UNIX V5.1A操作系统，并需单独授权<sup>[14](https://www.hpe.com/psnow/downloadDoc/HP%20TruCluster%20Server%20V5.1A-c04154505.pdf?contentDisposition=attachment&deepLink=&form=false&hf=regular&id=c04154505.pdf&isFutureVersion=true&isLinearized=false&originalObjectName=&prelaunchSection=&preview=false&print=&r=&section=&softrollSection=&ver=17)</sup>。

## 优势与局限

SSI所宣称的优势包括透明的进程迁移和跨节点负载均衡、更高的可靠性和更高的可用性<sup>[15](https://www.dcs.warwick.ac.uk/~liganghe/2010-2011/cluster-1.pdf)</sup>。易于管理常被认为是SSI操作系统的一项优势，因为管理员可以将整个集群作为单一实体来管理<sup>[7](https://www.researchgate.net/publication/295253720_Single_system_image_A_survey)</sup>。SSI操作系统还被宣传为一种使并行计算透明且对用户友好的方式，使程序员看到一台单一且非常强大的计算机<sup>[16](https://www.scpe.org/index.php/scpe/article/view/243)</sup>。

局限则在于实际应用层面。一份专利分析指出，进程迁移和SSI系统只处理整进程迁移，集群系统在软件开发方面的复杂性依然存在，而且集群不提供以分布式方式运行SMP应用程序的能力<sup>[17](https://patents.google.com/patent/US7934035B2/en)</sup>。

## 2000年代以来发生了什么变化

对内核级SSI的兴趣在2000年代达到顶峰，但该方法并未被广泛采用；利默里克大学和都柏林理工大学的Philip Healy、Theo Lynn、Enda Barrett和John P. Morrison在2016年的调查中，部分将其归因于使SSI集群在计算中的重要性下降的因素，并指出了分布式虚拟机监控器方面的新近工作以及虚拟化内核级SSI集群可能的未来角色<sup>[1](https://www.sciencedirect.com/science/article/pii/S0743731516000058)</sup>。2024年前后的一项轻量级SSI Linux集群提案观察到，Kerrighed、OpenSSI和openMosix已不再积极维护，且是为前几代Linux内核和硬件设计的，同时认为它们的架构模式对于使用基于虚拟机监控器的虚拟化或内核模块加用户空间服务的当代重新实现仍有价值<sup>[18](https://www.gtoal.com/SSI_Cluster_Proposal.html)</sup>。

SSI理念在应用场景中持续存在。一项关于台式PC轻量级分布式Web网格的研究比较了Kerrighed、OpenSSI和openMosix在提供动态Web内容方面的表现，通过在线模拟发现Kerrighed未能处理的请求数最少，而三个系统的响应时间相当<sup>[19](https://arxiv.org/abs/1507.01067)</sup>。在高可用性场景中，解决方案的SSI能力被描述为其易用性的关键<sup>[20](https://citeseerx.ist.psu.edu/document?doi=0ea81a2be6071bc25493eef12ddf4f9b6675576a&repid=rep1&type=pdf)</sup>。

## References

1. [Philip Healy, Theo Lynn, Enda Barrett, John P. Morrison (2016). Single system image: A survey. Journal of Parallel and Distributed Computing, Volumes 90–91, pp. 35–51.](https://www.sciencedirect.com/science/article/pii/S0743731516000058)
2. [Single System Image, The International Journal of High Performance Computing Applications 15(2):124–135 (ResearchGate record)](https://www.researchgate.net/publication/220457188_Single_System_Image)
3. [Hong Ong, Jeffrey Vetter, R. Scott Studham, Collin McCurdy, Bruce Walker, Alan Cox (2006). Kernel-level single system image for petascale computing. Operating Systems Review (ACM) 40(2):50–54.](https://impact.ornl.gov/en/publications/kernel-level-single-system-image-for-petascale-computing/)
4. [Architecture Alternatives for Single System Image Clusters (Buyya)](https://buyya.com/papers/ssiArch.html)
5. [Single System Image Paper abstract (gridcomputing.com)](https://www.gridcomputing.com/papers/ssiabs.html)
6. [D5.1 State of the Art, SoOS project](https://webarchiv.hlrs.de/sites/soos/images/SoOS/Reports/soos_d5.1_v1.0.pdf)
7. [Single system image: A survey (PDF, ResearchGate record)](https://www.researchgate.net/publication/295253720_Single_system_image_A_survey)
8. [Capabilities for per Process Tuning of Distributed Operating Systems (INRIA, CiteSeerX)](https://citeseerx.ist.psu.edu/document?doi=52bdba4f6e04713b6f69295fa98f505c7e49a167&repid=rep1&type=pdf)
9. [MOSIX: A Cluster Load-Balancing Solution for Linux, Linux Journal](https://www.linuxjournal.com/article/4546)
10. [Freenix 2000 USENIX Annual Technical Conference Paper (McClure et al.)](https://www.usenix.org/legacy/publications/library/proceedings/usenix2000/freenix/full_papers/mcclure/mcclure_html/index_new.html)
11. [Migratable sockets in cluster computing, ScienceDirect](https://www.sciencedirect.com/science/article/abs/pii/S0164121204000536)
12. [HP-CERTI: Towards a high Performance, high Availability Open Source RTI](https://nongnu.uib.no/certi/papers/04F-SIW-014.pdf)
13. [OpenMosix, OpenSSI and Kerrighed: a comparative study (ResearchGate record)](https://www.researchgate.net/publication/4203887_OpenMosix_OpenSSI_and_Kerrighed_a_comparative_study)
14. [HP TruCluster Server V5.1A QuickSpecs](https://www.hpe.com/psnow/downloadDoc/HP%20TruCluster%20Server%20V5.1A-c04154505.pdf?contentDisposition=attachment&deepLink=&form=false&hf=regular&id=c04154505.pdf&isFutureVersion=true&isLinearized=false&originalObjectName=&prelaunchSection=&preview=false&print=&r=&section=&softrollSection=&ver=17)
15. [High Performance Computing lecture notes, University of Warwick](https://www.dcs.warwick.ac.uk/~liganghe/2010-2011/cluster-1.pdf)
16. [A Provision of a Single System Image Can Move Parallel Processing on Non-dedicated Clusters to the Mainstream Computing, Scalable Computing: Practice and Experience](https://www.scpe.org/index.php/scpe/article/view/243)
17. [US7934035B2 - Apparatus, method and system for aggregating computing resources, Google Patents](https://patents.google.com/patent/US7934035B2/en)
18. [Lightweight single-system-image Linux cluster proposal (gtoal.com)](https://www.gtoal.com/SSI_Cluster_Proposal.html)
19. [On Web-grid Implementation Using Single System Image, arXiv:1507.01067](https://arxiv.org/abs/1507.01067)
20. [Cluster Computing White Paper (CiteSeerX)](https://citeseerx.ist.psu.edu/document?doi=0ea81a2be6071bc25493eef12ddf4f9b6675576a&repid=rep1&type=pdf)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Servers, supercomputers & data centers › Cluster and parallel architectures

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/single-system-image

English original: https://www.edgepedia.org/single-system-image
