OSTEP 系列索引
OSTEP 系列索引
《Operating Systems: Three Easy Pieces》(OSTEP)是 Remzi H. Arpaci-Dusseau 与 Andrea C. Arpaci-Dusseau 编写的操作系统经典教材。本系列以官方 Version 1.10 为基准,按原文顺序翻译和整理,保留英文术语、代码、命令、章节结构与练习线索。
系列定位
- 主材料:OSTEP 官方站点
- 采用版本:Version 1.10,官方引用日期为 October/November 2023
- 三条主线:virtualization、concurrency、persistence
- 翻译原则:逐段对应原文;既有约定俗成的技术词保留英文或中英并列;代码、命令、变量名和 API 不翻译;原文没有图片的地方不额外生成图片。
- 图件说明:本系列每篇记录源文档中的图件类型与位置。若原文是代码 listing 或 terminal transcript,则直接使用 Markdown 代码块;若存在独立图片,再放入
assets/{笔记名}/并指定显示宽度。
目录
| 章节 | 内容 |
|---|---|
| 系列定位 | 版本、范围与翻译约定 |
| 目录与进度 | 已完成、进行中和待整理篇目 |
| 依赖关系 | 章节之间的阅读依赖 |
| 练习与实现材料 | 官方代码、项目和课程材料 |
| 当前进度 | 本系列的执行清单 |
目录与进度
| 篇目 | 原文范围 | 状态 |
|---|---|---|
| 01 OSTEP:前言与导论 | Preface、Introduction、2.1–2.7 | ✅ 已完成 |
| 02 OSTEP:进程抽象 | Processes | ✅ 已完成 |
| 03 OSTEP:Process API | fork()、wait()、exec()、redirection、signals | ✅ 已完成 |
| 04 OSTEP:Limited Direct Execution | direct execution、trap、timer interrupt、preemption | ✅ 已完成 |
| 05 OSTEP:CPU 调度导论 | workload、FIFO、SJF、STCF、Round Robin、I/O | ✅ 已完成 |
| 06 OSTEP:多级反馈队列 | MLFQ、priority、starvation、gaming、boost | ✅ 已完成 |
| 07 OSTEP:比例份额调度 | lottery、stride、tickets、CFS | ✅ 已完成 |
| 08 OSTEP:多处理器调度 | cache coherence、affinity、SQMS、MQMS、migration | ✅ 已完成 |
| 09 OSTEP:地址转换 | virtual/physical address、base/bounds、protection | ✅ 已完成 |
| 10 OSTEP:Memory API | malloc()、free()、memory bugs、heap API | ✅ 已完成 |
| 11 OSTEP:Segmentation | segmentation、base/bounds、external fragmentation | ✅ 已完成 |
| 12 OSTEP:分页基础 | pages、frames、page table、PTE、page fault | ✅ 已完成 |
| 13 OSTEP:TLB | TLB、hit/miss、ASID、context switch、locality | ✅ 已完成 |
| 14 OSTEP:Advanced Page Tables | large pages、hybrid、multi-level、inverted page tables | ✅ 已完成 |
| 15 OSTEP:Swapping 机制 | swap space、present bit、page fault、page-in/page-out | ✅ 已完成 |
| 16 OSTEP:Swapping 策略 | AMAT、optimal、FIFO、LRU、Clock、thrashing | ✅ 已完成 |
| 17 OSTEP:Complete Virtual Memory Systems | VAX/VMS、Linux VM、COW、demand zeroing、clustering | ✅ 已完成 |
| 18 OSTEP:VM 总结 | translation、TLB、paging、swapping 与完整 VM 复盘 | ✅ 已完成 |
| 19 OSTEP:并发导论 | threads、parallelism、I/O overlap、race condition、critical section | ✅ 已完成 |
| 20 OSTEP:Thread API | pthread_create()、pthread_join()、mutex、condition variable | ✅ 已完成 |
| 21 OSTEP:Locks | mutual exclusion、atomic instructions、spin lock、lock granularity | ✅ 已完成 |
| 22 OSTEP:Lock-based Concurrent Data Structures | concurrent counter、linked list、queue、lock granularity | ✅ 已完成 |
| 23 OSTEP:Condition Variables | wait/signal、lost wakeup、producer/consumer、bounded buffer | ✅ 已完成 |
| 24 OSTEP:Semaphores | wait/post、binary/counting semaphore、ordering、reader/writer | ✅ 已完成 |
| 25 OSTEP:Common Concurrency Problems | atomicity violation、order violation、deadlock、livelock | ✅ 已完成 |
| 26 OSTEP:Event-based Concurrency | event loop、non-blocking I/O、state machine、多核扩展 | ✅ 已完成 |
| 27 OSTEP:Concurrency 总结 | thread、同步工具、bug pattern 与 event model 复盘 | ✅ 已完成 |
| 28 OSTEP:I/O Devices | polling、interrupt、DMA、device driver、I/O stack | ✅ 已完成 |
| 29 OSTEP:Hard Disk Drives | sector、seek、rotation、transfer、disk scheduling | ✅ 已完成 |
| 30 OSTEP:RAID | striping、mirroring、parity、capacity、reliability、rebuild | ✅ 已完成 |
| 31 OSTEP:Files and Directories | file、directory、pathname、file descriptor、open/read/write/unlink | ✅ 已完成 |
| 32 OSTEP:File System Implementation | superblock、inode、bitmap、directory、block pointer、buffer cache | ✅ 已完成 |
| 33 OSTEP:Fast File System(FFS) | cylinder group、block size、fragments、allocation locality | ✅ 已完成 |
| 34 OSTEP:Crash Consistency:FSCK 与 Journaling | crash consistency、fsck、write-ahead logging、checkpoint、barrier | ✅ 已完成 |
| 35 OSTEP:Log-structured File System(LFS) | sequential append、inode map、segment、cleaning、roll-forward | ✅ 已完成 |
| 36 OSTEP:Flash-based SSDs | flash page/block、FTL、GC、wear leveling、write amplification | ✅ 已完成 |
| 37 OSTEP:Data Integrity and Protection | LSE、corruption、checksum、misdirected/lost write、scrubbing | ✅ 已完成 |
| 38 OSTEP:Persistence 总结 | I/O、disk、RAID、file system、journal、SSD、integrity 复盘 | ✅ 已完成 |
| 39 OSTEP:Virtual Machine Monitors | VMM、hypervisor、CPU/memory virtualization、shadow page table、paravirtualization | ✅ 已完成 |
| 40 OSTEP:Authentication | principal、identity、password、salt、challenge-response、authentication factors | ✅ 已完成 |
| 41 OSTEP:Access Control | reference monitor、ACL、capability、least privilege、UNIX permissions | ✅ 已完成 |
| 42 OSTEP:Cryptography | symmetric/public-key cryptography、hash、certificate、CA、key management | ✅ 已完成 |
| 43 OSTEP:Distributed System Security | remote trust、certificate、replay、SSL/TLS、secure channel | ✅ 已完成 |
| 44 OSTEP:Free-Space Management | external fragmentation、free list、split、coalescing、fit policies | ✅ 已完成 |
| 45 OSTEP:Sun's Network File System(NFS) | client/server、statelessness、file handle、idempotency、cache consistency | ✅ 已完成 |
| 46 OSTEP:The Andrew File System(AFS) | whole-file caching、callback、FID、close-to-open、scalability | ✅ 已完成 |
| 47 OSTEP:Introduction to Operating System Security | CIA goals、security enclaves、threat model、Saltzer-Schroeder principles | ✅ 已完成 |
| 48 OSTEP:Distributed Systems | UDP、reliability、ack、retry、sequence counter、RPC、DSM | ✅ 已完成 |
| 49 OSTEP:Distributed Systems 总结 | communication、RPC、NFS、AFS、cache consistency 与 distributed security 复盘 | ✅ 已完成 |
| 50 OSTEP:附录与实验材料索引 | Dialogue、Lab Tutorial、Systems Labs、xv6 Labs 与官方代码/项目 | ✅ 已完成 |
| 51 OSTEP:Dialogue on the Book | 全书三条主线、阅读方式与 Dialogue 定位 | ✅ 已完成 |
| 52 OSTEP:Summary Dialogue on CPU Virtualization | trap、timer interrupt、scheduling policy 与实践 | ✅ 已完成 |
| 53 OSTEP:Summary Dialogue on Memory Virtualization | virtual address、TLB、page table、swapping 复盘 | ✅ 已完成 |
| 54 OSTEP:Summary Dialogue on Concurrency | thread interleaving、simple locking、Map-Reduce 与实践 | ✅ 已完成 |
| 55 OSTEP:A Dialogue on Distribution | failure、replication、retry 与 recovery | ✅ 已完成 |
| 56 OSTEP:A Dialogue on Security | confidentiality、integrity、availability 与 adversary | ✅ 已完成 |
| 57 OSTEP:A Dialogue on Virtual Machine Monitors | VMM/hypervisor 与 virtualization appendix 定位 | ✅ 已完成 |
| 58 OSTEP:A Dialogue on Monitors | monitor 作为 concurrency primitive | ✅ 已完成 |
| 59 OSTEP:A Dialogue on Labs | systems programming、xv6 projects 与实验安排 | ✅ 已完成 |
| 60 OSTEP:Laboratory Tutorial | C/UNIX、gcc、make、gdb、man 与 build/debug workflow | ✅ 已完成 |
| 61 OSTEP:Laboratory:Systems Projects | shell、allocator、concurrency、file system、file server projects | ✅ 已完成 |
| 62 OSTEP:Laboratory:xv6 Projects | system call、scheduler、VM、threads、FFS、journaling、FSCK | ✅ 已完成 |
依赖关系
mermaid
flowchart LR
A[Introduction] --> B[Processes]
B --> C[CPU virtualization and scheduling]
B --> D[Address spaces]
C --> E[Concurrency]
D --> E
D --> F[Paging and virtual memory]
B --> G[I/O and persistence]
G --> H[File systems and crash consistency]
练习与实现材料
- 官方代码仓库:与章节示例配套的 C 代码。
- 官方项目仓库:systems programming 与 xv6 项目。
- 官方 OSTEP 主页:章节、homework、simulator、projects 与 slides 的入口。
当前进度
- [x] 固定官方 Version 1.10。
- [x] 核对官方目录、Preface 和 Introduction。
- [x] 建立本系列目录与章节依赖关系。
- [x] 完成第一篇正文初稿、代码/输出保真整理与 checker/lint 校验。
- [x] 完成 Process API 正文初稿、代码/命令保真整理与 checker/lint 校验。
- [x] 完成 Limited Direct Execution 正文初稿、协议图与 checker/lint 校验。
- [x] 完成 CPU 调度导论初稿、算法对比与 checker/lint 校验。
- [x] 完成 Multi-level Feedback Queue 初稿、规则演进与 checker/lint 校验。
- [x] 完成 Proportional Share 初稿、lottery/stride/CFS 对比与 checker/lint 校验。
- [x] 完成 Multiprocessor Scheduling 初稿、SQMS/MQMS 对比与 checker/lint 校验。
- [x] 完成 Address Translation 初稿、virtual/physical address 模型与 checker/lint 校验。
- [x] 完成 Memory API 初稿、allocation/lifetime 错误清单与 checker/lint 校验。
- [x] 完成 Segmentation 初稿、base/bounds 与 external fragmentation 模型整理,并通过 checker/lint 校验。
- [x] 完成 Introduction to Paging 初稿、page table/PTE/page fault 模型整理,并通过 checker/lint 校验。
- [x] 完成 TLB 初稿、hit/miss、context switch 与 locality 整理,并通过 checker/lint 校验。
- [x] 完成 Advanced Page Tables 初稿、multi-level page table 与 space/time trade-off 整理,并通过 checker/lint 校验。
- [x] 完成 Swapping 机制初稿、present bit、page fault 与 page-in/page-out 整理,并通过 checker/lint 校验。
- [x] 完成 Swapping 策略初稿、replacement policy、AMAT 与 thrashing 整理,并通过 checker/lint 校验。
- [x] 完成 Complete Virtual Memory Systems 初稿、VAX/VMS、Linux VM、COW 与 demand zeroing 整理,并通过 checker/lint 校验。
- [x] 完成 VM Summary 初稿,建立 memory virtualization 全路径复盘清单,并通过 checker/lint 校验。
- [x] 完成 Concurrency: An Introduction 初稿、thread 模型与 race condition 交错示例,并通过 checker/lint 校验。
- [x] 完成 Thread API 初稿、POSIX create/join/mutex/condition variable 接口整理,并通过 checker/lint 校验。
- [x] 完成 Locks 初稿、atomic primitive、spin/sleep 与锁粒度整理,并通过 checker/lint 校验。
- [x] 完成 Lock-based Concurrent Data Structures 初稿、counter/list/queue 与可扩展性整理,并通过 checker/lint 校验。
- [x] 完成 Condition Variables 初稿、predicate、lost wakeup 与 bounded-buffer 整理,并通过 checker/lint 校验。
- [x] 完成 Semaphores 初稿、wait/post、ordering 与 reader/writer 整理,并通过 checker/lint 校验。
- [x] 完成 Common Concurrency Problems 初稿、atomicity/order violation 与 deadlock prevention 整理,并通过 checker/lint 校验。
- [x] 完成 Event-based Concurrency 初稿、event loop、non-blocking I/O 与 state machine 整理,并通过 checker/lint 校验。
- [x] 完成 Concurrency Summary 初稿,建立并发主线复盘清单,并通过 checker/lint 校验。
- [x] 完成 I/O Devices 初稿、polling/interrupt、DMA 与 device-driver stack 整理,并通过 checker/lint 校验。
- [x] 完成 Hard Disk Drives 初稿、seek/rotation/transfer 与 disk scheduling 整理,并通过 checker/lint 校验。
- [x] 完成 RAID 初稿、striping/mirroring/parity 与 failure recovery 整理,并通过 checker/lint 校验。
- [x] 完成 Files and Directories 初稿、file API、file descriptor、open file table 与 links 整理,并通过 checker/lint 校验。
- [x] 完成 File System Implementation 初稿、superblock/inode/bitmap/directory 与 block mapping 整理,并通过 checker/lint 校验。
- [x] 完成 Fast File System 初稿、cylinder group、fragments 与 allocation locality 整理,并通过 checker/lint 校验。
- [x] 完成 Crash Consistency 初稿、FSCK、journaling、checkpoint 与 durable ordering 整理,并通过 checker/lint 校验。
- [x] 完成 Log-structured File System 初稿、inode map、segment cleaning 与 roll-forward 整理,并通过 checker/lint 校验。
- [x] 完成 Flash-based SSDs 初稿、FTL、garbage collection、wear leveling 与 write amplification 整理,并通过 checker/lint 校验。
- [x] 完成 Data Integrity and Protection 初稿、failure modes、checksum、scrubbing 与 recovery 整理,并通过 checker/lint 校验。
- [x] 完成 Persistence Summary 初稿,建立 persistence 全路径复盘清单,并通过 checker/lint 校验。
- [x] 完成第一篇正文的人工校对与系列验收。
- [x] 完成 Virtual Machine Monitors、Authentication、Access Control 三篇 security 选读初稿,并通过 checker/lint 校验。
- [x] 完成 Cryptography 与 Distributed System Security 两篇 security 选读初稿,并通过 checker/lint 校验。
- [x] 完成 Free-Space Management 初稿,补回官方目录中遗漏的 Chapter 17,并通过 checker/lint 校验。
- [x] 完成 NFS 与 AFS 两篇 distributed file system 正文初稿,并通过 checker/lint 校验。
- [x] 完成 Introduction to Operating System Security 初稿,并通过 checker/lint 校验。
- [x] 完成 Distributed Systems 初稿,补回官方目录中遗漏的 Chapter 48,并通过 checker/lint 校验。
- [x] 完成 Distributed Systems Summary 初稿,建立 distributed systems 全路径复盘清单,并通过 checker/lint 校验。
- [x] 建立附录与实验材料索引,列出全部官方 Dialogue、Lab Tutorial、Systems Labs、xv6 Labs、code 与 projects 入口。
- [x] 精校 51–54 篇官方 Dialogue,核对对白顺序、术语与原文结构,并完成 checker/lint 校验。
- [x] 精校第 55 篇
A Dialogue on Distribution,核对对白顺序、术语与原文结构,并完成 checker/lint 校验。 - [x] 精校第 56 篇
A Dialogue on Security,核对对白顺序、术语与原文结构,并完成 checker/lint 校验。 - [x] 精校第 57 篇
A Dialogue on Virtual Machine Monitors,核对对白顺序、术语与原文结构,并完成 checker/lint 校验。 - [x] 精校第 58 篇
A Dialogue on Monitors,核对对白顺序、术语与原文结构,并完成 checker/lint 校验。 - [x] 精校第 59 篇
A Dialogue on Labs,核对对白顺序、术语与原文结构,并完成 checker/lint 校验。 - [x] 精校第 60 篇
Laboratory Tutorial,核对 F.1–F.9、代码/命令块与实验记录,并完成 checker/lint 校验。 - [x] 精校第 61 篇
Laboratory: Systems Projects,核对 G.1–G.8、项目列表与实验记录,并完成 checker/lint 校验。 - [x] 精校第 62 篇
Laboratory: xv6 Projects,核对 H.1–H.11、项目列表与材料基线,并完成 checker/lint 校验。 - [x] 完成前四十九篇正文人工校对,逐项整理并验证附录与实验材料。
参考资料
评论 (0)