# SunOS

**SunOS** 是 [Sun Microsystems](https://www.edgepedia.org/zh/sun-microsystems) 为其工作站和服务器开发的 Unix 操作系统，于 1980 年代初首次发布，至今仍作为 Oracle Solaris 的内部名称存在。

| 关键事实 | 详情 |
|---|---|
| 首次发布 | 根据 UNIX 时间线，SunOS 1.0 于 1982 年发布；日本信息处理学会的博物馆时间线记载 Sun Microsystems 于 1983 年为 Sun-1 和 Sun-2 工作站发布 SunOS，基于 Unix 4.1 BSD<sup>[1](https://www.unix.org/unix_history.html)</sup><sup> • </sup><sup>[2](https://museum.ipsj.or.jp/en/computer/work/index.html)</sup> |
| BSD 时代 | SunOS 4.1.4 于 1994 年 11 月发布，又称 Solaris 1.1.2，是 BSD 系 SunOS 产品线的最后一版<sup>[3](https://betawiki.net/wiki/SunOS_4.1.4)</sup><sup> • </sup><sup>[4](https://softpanorama.org/Solaris/solaris_history.shtml)</sup> |
| System V 时代 | 1987 年底，Sun 宣布其下一代系统将派生自 AT&T 的 System V 第 4 版，而非 Berkeley-UNIX SunOS 的进一步扩展<sup>[5](https://www.usenix.org/system/files/login/issues/1504_login_for_web.pdf)</sup> |
| 虚拟内存 | 在 SunOS 5.0 至 5.8 中，进程的地址空间占据磁盘存储交换分区中的一个文件，称为后备存储<sup>[6](https://docs.oracle.com/cd/E19455-01/806-4750/6jdqdflt8/index.html)</sup> |
| NFS | Sun 网络文件系统在 1985 年夏季 USENIX 大会上发表，实现在 SunOS 内核中，构建于新的虚拟文件系统（VFS）和 vnode 接口之上<sup>[7](https://cseweb.ucsd.edu/classes/sp04/cse223b/papers/sandberg85.pdf)</sup> |
| 遗留二进制文件 | Oracle Solaris 11 已移除对 SunOS 4 二进制文件的支持，但它们仍可在 Oracle Solaris 10 区域中执行<sup>[8](https://www.oracle.com/solaris/technologies/end-of-feature-notices-solaris11.html)</sup> |

## 源于 BSD

Sun Microsystems 成立于 1982 年，其早期工作站——1982 年 5 月发布的 Sun-1 和 1983 年的 Sun-2——需要一套适合网络化、图形化工程工作的操作系统。<sup>[2](https://museum.ipsj.or.jp/en/computer/work/index.html)</sup> 该公司获得 UNIX 授权，实现了 4.2BSD 的一个版本，称之为 SunOS；FreeBSD 文档中的 BSD 历史直接记录了这次授权。<sup>[9](https://docs-archive.freebsd.org/doc/4.4-RELEASE/usr/share/doc/en/articles/explaining-bsd/x45.html)</sup> 日本信息处理学会发布的时间线将发布时间定在 1983 年，并将 SunOS 描述为面向 Sun-1 和 Sun-2、基于 Unix 4.1 BSD 的操作系统。<sup>[2](https://museum.ipsj.or.jp/en/computer/work/index.html)</sup> Open Group 的 UNIX 历史时间线则将“SunOS 1.0 发布”定在 1982 年，与 AT&T 发布 System III 同期。<sup>[1](https://www.unix.org/unix_history.html)</sup>

Sun 出版的一本书的章节中有一张发布历史表，记载 SunOS 1.0 于 1983 年随基于 [Motorola 68010](https://www.edgepedia.org/zh/motorola-68010) 处理器的 Sun-2 工作站捆绑发布，并显示该产品线在基于 68020 的机器上推进到 SunOS 3.2，至 1988 年达到 SunOS 4.0。<sup>[10](https://ptgmedia.pearsoncmg.com/images/0130224960/samplechapter/0130224960.pdf)</sup> SunOS 4.0 引入了新的虚拟内存系统，将文件系统缓存与内存系统整合，这一设计在 USENIX 论文《SunOS 中的虚拟内存架构》中有所描述，实现在 Sun-2 和 Sun-3 架构上。<sup>[10](https://ptgmedia.pearsoncmg.com/images/0130224960/samplechapter/0130224960.pdf)</sup><sup> • </sup><sup>[11](https://kos.enix.org/pub/gingell8.pdf)</sup>

4.x 版本成为 Sun SPARC 工作站上的标准环境。GSI 维护的版本表列出 1990 年 3 月发布的 SunOS 4.1 支持 sun3 和 sun4 平台，1990 年 3 月的《SunOS 4.1 发行手册》记录了该版本在 Sun 工作站上的安装。<sup>[12](https://web-docs.gsi.de/~kraemer/COLLECTION/SOLARIS/SunOSandSolarisVersionHistory.html)</sup><sup> • </sup><sup>[13](https://bitsavers.org/pdf/sun/sunos/4.1/800-3802-10A_SunOS_4.1_Release_Manual_199003.pdf)</sup> 1994 年 11 月发布的 SunOS 4.1.4 终结了 BSD 系产品线；回顾性记述称其为最后真正的 SunOS。<sup>[3](https://betawiki.net/wiki/SunOS_4.1.4)</sup><sup> • </sup><sup>[4](https://softpanorama.org/Solaris/solaris_history.shtml)</sup>

## 转向 System V

1987 年，AT&T 与 Sun Microsystems 达成协议，围绕其版本统一 UNIX 市场，促使业界其余厂商组成竞争的开放软件基金会，史称“UNIX 战争”。<sup>[1](https://www.unix.org/unix_history.html)</sup> 1987 年底，在 AT&T 收购 Sun 大量股份后，Sun 宣布其下一代系统将不再扩展 SunOS，而是派生自 AT&T 的 System V 第 4 版；历史学家 Peter H. Salus 记载，这一宣布用他的话说让 UNIX 世界“打了个寒颤”，科学界感到 Sun 背弃了他们。<sup>[5](https://www.usenix.org/system/files/login/issues/1504_login_for_web.pdf)</sup> UNIX System V 第 4 版于 1989 年发布，统一了 System V、BSD 和 [Xenix](https://www.edgepedia.org/zh/xenix)，日本信息处理学会的时间线指出 SVR4 整合了 UNIX 4.3 BSD、XENIX 和 SunOS 背后的技术。<sup>[1](https://www.unix.org/unix_history.html)</sup><sup> • </sup><sup>[2](https://museum.ipsj.or.jp/en/computer/work/index.html)</sup>

新产品线内部编号为 SunOS 5.x，以 Solaris 2.x 的名义营销。对应关系是直接的：SunOS 5.x 的 `uname` 输出映射到 Solaris 2.x 的编号直至 2.6，每个 Solaris 发行版名称都包含其对应的 SunOS 5 次版本号。<sup>[14](https://sources.debian.org/src/gnulib/20120404%2Bstable-1/doc/solaris-versions)</sup> 例如，Solaris 2.6 操作环境由 SunOS 5.6 版软件及 ONC、OpenWindows、ToolTalk 和 DeskSet 工具组成。<sup>[15](https://docs.oracle.com/cd/E19504-01/802-5758/6i9gbq8s2/index.html)</sup> 较早的 BSD 系版本被追溯归为 Solaris 1.x，SunOS 4.1.4 以 Solaris 1.1.2 的名义营销。<sup>[3](https://betawiki.net/wiki/SunOS_4.1.4)</sup>

## 技术特征

**虚拟内存。** SunOS 5.0 至 5.8 实现的虚拟内存中，进程的地址空间占据磁盘存储交换分区中的一个文件，即后备存储，主存页面缓冲该地址空间的活动部分。映射扩展了这一方案：任何可读或可写文件的任何部分，包括通过 NFS 访问的文件，都可以逻辑地插入进程的地址空间，从而使文件读写自动化，且多个进程可以映射同一文件以实现高效的内存共享。<sup>[6](https://docs.oracle.com/cd/E19455-01/806-4750/6jdqdflt8/index.html)</sup>

**NFS 与 VFS 接口。** Sun 网络文件系统由 Sun Microsystems 的 Russel Sandberg、David Goldberg、Steve Kleiman、Dan Walsh 和 Bob Lyon 在 1985 年夏季 USENIX 大会上描述，提供对文件系统的透明远程访问。为了以用户透明的方式将 NFS 构建到 UNIX 4.2 内核中，团队添加了一个新的内核接口，将通用文件系统操作与具体实现分离：虚拟文件系统（VFS）接口定义对文件系统的操作，而 vnode 接口定义对其内文件的操作。这一设计使得新文件系统可以像添加新设备驱动一样安装，这也是 NFS 能够移植到其他操作系统和机器架构的原因。<sup>[7](https://cseweb.ucsd.edu/classes/sp04/cse223b/papers/sandberg85.pdf)</sup> VFS 架构延续到 System V 时代：SunOS 5.7 版具有虚拟文件系统架构，SunOS 虚拟内存子系统被纳入 SVR4。<sup>[16](https://docs.oracle.com/cd/E19620-01/805-3864/805-3864.pdf)</sup><sup> • </sup><sup>[17](https://www.r-5.org/files/books/computers/internals/ifs/Steve_Pate-UNIX_Filesystems-EN.pdf)</sup>

**与 SunOS 4 的兼容性。** 由于从 BSD 转向 System V 破坏了源代码和二进制兼容性，Sun 提供了过渡辅助工具。Solaris 2.5 环境提供 SunOS/BSD 源代码兼容包，使符合 SunOS 4.x 的应用程序源代码可以编译和运行；还提供 SunOS 二进制兼容包，支持 OpenWindows 和其他 SunOS 4.1.x 可执行文件，前提是它们不直接陷入内核、不直接写入系统文件、不使用 `/dev/kmem` 或 `libkvm` 例程、不使用未公开的 SunOS 接口，也不依赖非 SunOS 驱动。<sup>[18](https://docs.oracle.com/cd/E19455-01/806-2902/6jc3b36h9/index.html)</sup> 对于驱动开发者，Sun 发布了一张比较 SunOS 4.1 和 SunOS 5.7 内核支持例程的表格，明确说明它不是等价表，仅替换函数名并不总是足够。<sup>[19](https://docs.oracle.com/cd/E19620-01/805-3024/6j2sumi4k/index.html)</sup> 过渡也改变了管理方式：SunOS 5.x 软件包含特定于架构的内核，而非早期版本的通用内核配置，安装后管理员可能需要 `boot -r` 命令来重新配置设备名称和模块。<sup>[20](https://users.softlab.ntua.gr/~sivann/books/Solaris/solsa/appendix-a.html)</sup>

**标准符合性。** Oracle Solaris 作为 SunOS 5 产品线的延续，支持 X/Open 通用应用环境可移植性指南第 3 版（XPG3）和第 4 版（XPG4）、[单一 UNIX 规范](https://www.edgepedia.org/zh/single-unix-specification)（SUS，又称 XPG4v2）、SUSv2 和 SUSv3，文档列出了首次符合各项规范的 SunOS 或 Solaris 版本。<sup>[21](https://docs.oracle.com/cd/E86824_01/html/E54776/xns-5.html)</sup> 2018 年，Oracle Solaris 11.4 成为首个通过 UNIX V7 标准认证的产品。<sup>[1](https://www.unix.org/unix_history.html)</sup>

## 规模与性能

System V 产品线发展成为大型服务器操作系统。Solaris 9 发行版支持单系统最多 128 个 CPU、集群环境最多 848 个 CPU、最多 576 GB 内存、单系统一百万个并发进程、超过四十亿个网络连接；其 UFS 并发直接 I/O 特性使 OLTP 工作负载的 TPC-C 测量提升 87%，64 位 SPARC 平台上的 UFS 支持最大 16 TB 的文件系统。<sup>[22](https://www.oracle.com/solaris/technologies/solaris9-operatingsystem.html)</sup>

独立测量将 x86 移植版置于当时 UNIX 系统的中间位置。斯坦福大学 Kevin Lai 和 Mary Baker 1996 年的一项 USENIX 研究在 Pentium 上比较了 Linux、FreeBSD 和 Solaris，发现小文件工作负载下 Linux 比其他系统快一个数量级，FreeBSD 提供的网络带宽比 Linux 高两到三倍，总体而言 Solaris 性能通常介于两者之间；作者结论是没有一个系统在整体性能上明显更优。<sup>[23](https://www.usenix.org/conference/usenix-1996-annual-technical-conference/performance-comparison-unix-operating-systems)</sup> 1995 年同期管理员的报告也记录了 Solaris 2.4 交互使用比 SunOS 4.1.x 慢的观感。<sup>[24](https://www.cs.toronto.edu/sunmanagers/1995/1642.html)</sup>

## 命名与后期状况

Oracle Solaris 11.4 遵循持续交付模式，新功能以现有发行版更新的形式提供，无需升级。<sup>[25](https://www.oracle.com/latam/a/ocom/docs/support-library-lifetime-support-hardware-301321.pdf)</sup> BSD 时代的二进制遗产延续了数十年：SunOS 4 二进制支持保留到 Solaris 10，在 Oracle Solaris 11 中被移除，并注明 SunOS 4 二进制文件仍可在 Oracle Solaris 10 区域中执行；亚洲 SunOS4.x BCP（二进制兼容包）也遭遇了同样的命运。<sup>[8](https://www.oracle.com/solaris/technologies/end-of-feature-notices-solaris11.html)</sup>

## References

1. [History of UNIX, The Open Group](https://www.unix.org/unix_history.html)
2. [Workstations, Computer Museum, Information Processing Society of Japan](https://museum.ipsj.or.jp/en/computer/work/index.html)
3. [SunOS 4.1.4, BetaWiki](https://betawiki.net/wiki/SunOS_4.1.4)
4. [Solaris history, Softpanorama](https://softpanorama.org/Solaris/solaris_history.shtml)
5. [Peter H. Salus, "Dueling UNIXes and the UNIX Wars," ;login: April 2015, USENIX](https://www.usenix.org/system/files/login/issues/1504_login_for_web.pdf)
6. [Overview of Virtual Memory, System Interface Guide, Oracle](https://docs.oracle.com/cd/E19455-01/806-4750/6jdqdflt8/index.html)
7. [Sandberg, Goldberg, Kleiman, Walsh, and Lyon (1985), "Design and Implementation of the Sun Network Filesystem," Summer 1985 USENIX](https://cseweb.ucsd.edu/classes/sp04/cse223b/papers/sandberg85.pdf)
8. [End of Feature Notices for Oracle Solaris 11, Oracle](https://www.oracle.com/solaris/technologies/end-of-feature-notices-solaris11.html)
9. [Explaining BSD, FreeBSD 4.4-RELEASE documentation archive](https://docs-archive.freebsd.org/doc/4.4-RELEASE/usr/share/doc/en/articles/explaining-bsd/x45.html)
10. [Solaris Release History table, sample chapter, Prentice Hall](https://ptgmedia.pearsoncmg.com/images/0130224960/samplechapter/0130224960.pdf)
11. ["Virtual Memory Architecture in SunOS," USENIX 1987 (Gingell et al.)](https://kos.enix.org/pub/gingell8.pdf)
12. [SunOS & Solaris Version History, GSI](https://web-docs.gsi.de/~kraemer/COLLECTION/SOLARIS/SunOSandSolarisVersionHistory.html)
13. [SunOS 4.1 Release Manual, bitsavers](https://bitsavers.org/pdf/sun/sunos/4.1/800-3802-10A_SunOS_4.1_Release_Manual_199003.pdf)
14. [solaris-versions, gnulib documentation, Debian sources](https://sources.debian.org/src/gnulib/20120404%2Bstable-1/doc/solaris-versions)
15. [Solaris 1.x to 2.x Transition Guide, Preface, Oracle](https://docs.oracle.com/cd/E19504-01/802-5758/6i9gbq8s2/index.html)
16. [Solaris Transition Guide, Oracle](https://docs.oracle.com/cd/E19620-01/805-3864/805-3864.pdf)
17. [Steve Pate, UNIX Filesystems: Evolution, Design, and Implementation](https://www.r-5.org/files/books/computers/internals/ifs/Steve_Pate-UNIX_Filesystems-EN.pdf)
18. [Making the Transition from SunOS 4.x, OpenWindows Advanced User's Guide, Oracle](https://docs.oracle.com/cd/E19455-01/806-2902/6jc3b36h9/index.html)
19. [SunOS 4.1 to SunOS 5.7 Differences, Writing Device Drivers, Oracle](https://docs.oracle.com/cd/E19620-01/805-3024/6j2sumi4k/index.html)
20. [Solaris Systems Administrator's Guide, Second Edition, Appendix A](https://users.softlab.ntua.gr/~sivann/books/Solaris/solsa/appendix-a.html)
21. [XNS man page section 5, Standards, Environments, and Macros, Oracle](https://docs.oracle.com/cd/E86824_01/html/E54776/xns-5.html)
22. [Solaris 9 Operating System, Oracle](https://www.oracle.com/solaris/technologies/solaris9-operatingsystem.html)
23. [Kevin Lai and Mary Baker (1996), "A Performance Comparison of UNIX Operating Systems on the Pentium," USENIX ATC 96](https://www.usenix.org/conference/usenix-1996-annual-technical-conference/performance-comparison-unix-operating-systems)
24. [1995 Sun Managers summary: Solaris/SunOS speed](https://www.cs.toronto.edu/sunmanagers/1995/1642.html)
25. [Oracle and Sun System Software and Operating Systems support document](https://www.oracle.com/latam/a/ocom/docs/support-library-lifetime-support-hardware-301321.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Operating systems › Unix-like and Linux › Unix, BSD, and kernel internals

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/sunos

English original: https://www.edgepedia.org/sunos
