知识卡片
机械盘为何偏好顺序读
机械盘必须旋转盘片并移动磁头到目标位置,定位后读写相邻字节的增量成本较低。磁盘以扇区为最小传输单位,读取某个扇区中的一个字段也会取回整个扇区。让常一起访问的数据连续存放,可以摊薄定位开销,并给预读创造条件。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 2. B-Tree Basics Disk-Based Structures · 查看原书依据
On spinning disks, seeks increase costs of random reads because they require disk rotation and mechanical head movements to position the read/write head to the desired location.
参考来源
- 位置:《Database Internals》Chapter 2. B-Tree Basics(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch02.html#idm46104533573848,段 38)
- 结论依据:原文对照昂贵的机械定位与较便宜的连续传输。
- 原始内容:On spinning disks, seeks increase costs of random reads because they require disk rotation and mechanical head movements to position the read/write head to the desired location.