系统与基础设施0xax.gitbooks.io编辑精选
Linux Inside:Linux 内核如何工作
Linux Inside – How the Linux Kernel Works
2017 — 2022,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
这是开源书籍《Linux Inside》的在线版本,系统讲解 Linux 内核如何工作,涵盖启动过程、中断、系统调用、内存管理与分页等底层机制,并配合源码和大量技术细节展开。它更适合想深入理解内核实现、而不满足于只读概览的读者。
为什么经久不衰:它把晦涩的内核源码级知识组织成可读的免费教程,虽然部分内容会随内核版本和启动方式变化而过时,但理解底层机制的价值仍然很高。
HN 评论精选
补充了较新且内容渐多的 Linux 内核官方文档资源。
除了零散的文本文件和 Linux man 手册之外,还有这个:https://www.kernel.org/doc/html/latest/ 。它相当新——大约一年前才启动,但里面已经有不少内容了(我估计是从旧的 XML 文档迁移而来的)。
dom0查看英文原文
Besides some scattered text files and the Linux man pages, there is this: https://www.kernel.org/doc/html/latest/ It's fairly new - started about a year ago, but there's quite a lot of stuff in there already (bootstrapped from the old XML stuff, I believe).
分页章节技术细节充分,可与经典操作系统教材比较,并足够指导实践。
我读了一部分,想判断它与经典操作系统设计书(比如《4.4BSD 操作系统设计与实现》)相比如何。看分页那一章,《Linux Insides》对虚拟寻址指针中每一位的含义做了清晰且非常技术化的描述,还包括启用某种分页模式需要设置哪些位这类细节,详细到足以真正动手做点什么。我觉得我不是目标读者,但读起来很有意思。
fn-mote查看英文原文
I read some of this to try to determine how it would compare to a classic operating systems design book - like maybe "The Design and Implementation of the 4.4 BSD Operating System". Looking at the Paging [1] chapter, the _Linux Insides_ book has a clear, very technical, description of the meaning of every bit in pointers used for virtual addressing. It includes details like what bits you need to set in order to enable a particular paging mode, so it's really enough detail to actually _do_ something. I don't think I'm the target audience, but it was interesting to look at. [1] https://0xax.gitbooks.io/linux-insides/content/Theory/linux-theory-1.html
指出内核网络子系统缺乏较新的高层次文档。
这看起来是很棒的资源,但为什么很难找到一份相对较新的 Linux 内核网络部分说明?这似乎是内核中(至少在高层次上)文档最少的部分——如果有人知道好资源,我很想听听。
agons查看英文原文
This looks like a really good resource, but why is it so difficult to find a somewhat up-to-date description of networking in the Linux kernel? It seems like the least documented (at a high level, anyway) part of the kernel - if anyone knows a good resource I'd love to hear it.
批评启动章节受 BIOS/UEFI 和不同 CPU 架构变化影响,已经过时。
这内容已经过时了吧?现在没人再从传统 BIOS 启动,所以直到“切换到 64 位”为止的内容都不对了。UEFI 启动更简单,但仍值得深挖。那 AARCH64 以及其他没有 CPU 模式切换的平台呢?
phendrenad2查看英文原文
This is already outdated, right? Nobody boots up from legacy BIOS anymore, so everything up to and including "transitioning to 64-bit" is wrong. UEFI boot is simpler, but still worth digging into. And what about AARCH64 and other platforms where there are no CPU modes to go through?
历次讨论
同类还值得读
TTY 揭秘(2008)
The TTY demystified (2008)
经典文章深入剖析了 Unix/Linux 中 TTY 子系统的工作原理,包括线路规程、终端驱动、信号与控制字符等机制。
系统与基础设施上首页 11 次 · 2009–2025linusakesson.net编辑精选为什么 GNU grep 这么快
Why GNU grep is Fast
FreeBSD 邮件列表上一篇广为流传的帖子,解释 GNU grep 为什么快:核心在于 Boyer-Moore 字符串搜索算法配合精心优化的内部循环和 I/O,让程序在搜索时“…
系统与基础设施上首页 9 次 · 2010–2022lists.freebsd.orgXplain:为普通人讲解 X11
Xplain – Explaining X11 for the rest of us
《Xplain》是作者(HN 用户 Jasper_)写的一系列 X11 长文,用他在浏览器中重建的 X11 绘图模型做交互演示,讲解 X11 的绘图模型与窗口系统设计。
系统与基础设施上首页 6 次 · 2013–2020magcius.github.io编辑精选旋风教程:为 Linux 创建极小 ELF 可执行文件(1999)
A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux (1999)
breadbox 写于 1999 年的经典教程,主题是如何为 Linux 手工构造并裁剪出体积极小的 ELF 可执行文件。
系统与基础设施上首页 6 次 · 2007–2025muppetlabs.comPostgreSQL 内部原理
The internals of PostgreSQL
《The Internals of PostgreSQL》是一本免费在线书籍,系统讲解 PostgreSQL 的内部实现,包括查询处理、并发控制、WAL、缓冲区管理等核心机制。
系统与基础设施上首页 5 次 · 2017–2025interdb.jp编辑精选