Home
Ask HN: How IO Works?
I want to learn how I/O works in a reasonable detail.<p>For instance, when I want to do something with a disk, IIRC, things that get involved are<p>- Kernel / OS calls (maybe we can skip this)
- File System
- MBR / GPT
- Random v/ Sequential calls<p>I want to understand what happens in each level. Is there anything I can read to gain understanding of all of these areas?
3 comments
prosaic-hacker9 months ago
This is not a topic that can be explained while standing on one foot.
It is a multi layer cake of hand-offs of information
similar to the ISO OSI model of networking (which of course is I/O through the network.<p>At the top end is a program asking built in function or library to print some text. Many layers down is
the final hardware receiving the text and displaying it.
These two video will cover the lower layers<p><a href="https://www.youtube.com/playlist?list=PLowKtXNTBypFWff2QjXCWuSfJDWcvE0Vm" rel="nofollow">https://www.youtube.com/playlist?list=PLowKtXNTBypFWff2QjXCW...</a><p><a href="https://www.youtube.com/playlist?list=PLowKtXNTBypFbtuVMUVXNR0z1mu7dp7eH" rel="nofollow">https://www.youtube.com/playlist?list=PLowKtXNTBypFbtuVMUVXN...</a>
NavinF9 months ago
Related: <a href="https://www.brendangregg.com/Perf/linux_observability_tools.png" rel="nofollow">https://www.brendangregg.com/Perf/linux_observability_tools....</a><p>Usually people who ask questions like this are debugging IO performance issues. That image shows the relevant layers and the tools you use to find issues like write amplification
评论 #41304662 未加载
wmf9 months ago
I would start with an operating systems textbook or MOOC. Then you have more specific books like Practical File System Design and there are a bunch of Linux kernel books but I'm not sure which ones are good for I/O.