What is the role of buffering and caching in the I/O subsystem?
Last updated
Buffering holds in-transit data to bridge speed and transfer-size mismatches between producer and consumer. It also gives copy semantics so later user changes don't corrupt a pending write.
Caching keeps redundant copies of recently used data in memory (e.g. the page cache) so repeat accesses skip the slow device.
Key distinction: a buffer may hold the only copy of data, while a cache copy also lives elsewhere. Cached writes risk loss on crash unless flushed.
- https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/13_IOSystems.html
- https://www.geeksforgeeks.org/operating-systems/kernel-i-o-subsystem-in-operating-system/
- https://www.geeksforgeeks.org/operating-systems/difference-between-spooling-and-buffering/
- https://www.tutorialspoint.com/article/kernel-i-o-subsystem-in-operating-system
- https://medium.com/illumination/why-you-shouldnt-read-directly-from-disk-f951585121b5