How Linux Works cover

How Linux Works

No rating yet
Series
Turing Programming Series
ISBN
9787115581617

Tags

Summary

This book is by the Japanese author Satoru Takeuchi (formerly of Fujitsu, where he worked on development and support for commercial Linux, especially the kernel), written for technical people who want to truly understand how Linux works. It does not list commands, nor does it dig deep into kernel source; it first "runs" system behavior through experiments, then explains the results with 198 diagrams and charts, turning abstract mechanisms into phenomena you can see for yourself. It covers the main core mechanisms of Linux: programs and processes, the kernel and system calls, the C standard library and the role of libraries; process creation (fork/execve), parent-child relationships, states and signals, zombie and orphan processes, shell job management and daemons; process scheduling, including scheduling under a single logical CPU and multiple logical CPUs, time slices, context switching, and performance; memory management, including reading memory information, memory reclamation, virtual memory, demand paging, and multilevel page tables; advanced process mechanisms such as copy-on-write, interprocess communication, mutexes, multiprocessing, and multithreading; and storage hierarchy, file systems, and external storage, including memory-mapped files, disk quotas, journaling and copy-on-write consistency, and Btrfs snapshots and volumes. The experiment programs are written in C and Python, with runnable accompanying code and verification methods. Readers run things by hand while checking the diagrams, working out one by one why Linux behaves as it does. The book suits application developers, system designers, operations and maintenance staff, and technical support personnel, as well as readers filling a gap in their knowledge of operating systems; only some basic Linux commands are needed to read it smoothly.

Editor's review

很多Linux书的问题在于,要么只教命令,要么直接跳到内核源码,中间那段“机制到底怎样运行”的空档没人填。这本书正好补的是这一层:先用实验把现象做出来,再用图把原理画出来。 作者武内觉在富士通做过多年商用Linux内核的开发与支持,属于真正处理过线上问题的人,因此选材很贴近实际:进程调度为什么这样切、内存为什么这样回收、文件系统的日志和写时复制到底在保住什么。198张图解是这本书的骨架,很多概念看图就能懂一半;实验程序又让它不只是“听懂”,还能“看到”。 译者曹栩长期参与开源贡献,术语处理比较稳妥,读起来不拗口。整本书定位清晰:它不是速查手册,也不是内核源码导读,而是帮你把Linux这条主线一次理顺的入门到进阶读本。适合放在手边,边跑实验边读。

Who it's for

A good fit for

  • 会一些Linux基本命令,想从“会用”走向“懂原理”的开发人员
  • 需要设计系统、评估性能的系统架构师与后端工程师
  • 日常排查Linux性能与资源问题的运维、SRE和技术支持人员
  • 正在学习操作系统的计算机专业学生,可作为教材之外的实践读物

Not a good fit for

  • 完全没接触过Linux、连基本命令都不熟悉的零基础读者
  • 想直接研读内核源码、需要深入代码级别的资深内核开发者
  • 只想要命令速查或运维脚本手册、不需要原理讲解的读者

Reading tips

  1. 按章节顺序读,第2至第5章的进程与内存是全书主干,先打通这条线
  2. 一定要动手跑配套实验程序,先看结果再看图解,会比先读文字更有效
  3. 读到调度、内存回收和文件系统一致性时,回头对照自己线上系统的实际表现
  4. 不必强求记住所有参数,重点是把机制和现象之间的因果关系记住

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

FAQ

读这本书需要什么基础?
只需要对Linux基本命令有所了解即可。书中的实验程序用C语言和Python编写,能照着运行更好,但不运行也不妨碍理解图解和原理部分。
这本书和《深入理解Linux内核》有什么不同?
定位不同。本书不逐行讲内核源码,它通过动手实验加图解来讲机制和现象,更适合想先建立整体直觉的读者。想深入代码级细节,可以在读完后转向内核源码类著作。
实验程序需要什么环境?
用一台普通的Linux机器即可,建议使用虚拟机或容器环境,方便反复试验。程序以C语言和Python编写,书中给出了运行方法和结果验证方式。还需要注意作者是否提供了配套代码。
没有编程基础能读吗?
能读懂大部分原理和图解,但实验部分会吃力。如果完全不会编程,建议先补一点C语言基础,再回头读这本书效果会更好。
这本书适合当教材用吗?
可以作为操作系统课程的补充读物。它更偏实践和直观理解,缺少习题和体系化理论推导,需要配合教材一起使用。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

Top rated in the same category