Understand the difference between a computer and the Linux Buffer buffer cache and the Cache

The difference between Linux and the Buffer Cache of

The difference between Cache and Buffer

Author: know almost Users
link: https: //www.zhihu.com/question/26190832/answer/32387918
Source: know almost
copyrighted by the author. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

cache divide the intermediate layer in order to compensate high-speed equipment and low-speed devices introduced, the final ** role played faster access.
The main purpose of buffer performs traffic shaping, the sudden large number of small-scale I / O organized into stable small number of large-scale I / O, in order to reduce response times ** ** (such as movies from the Internet you can not write about the next little bit of data on the hard disk, but a certain amount of data accumulated after writing a piece together, or are you playing hard to be broken).
=======================
the view that the process belongs to the boss, unscrupulous dictation:
. 1, Buffer (buffer) at both ends of the system processing speed balancing (viewed in the long time scale) when used. It was introduced in order to reduce the influence of the short-term burst of I / O, play traffic shaping effect. For example, the producer - consumer issues, the speed they produce and consume resources generally close, plus a buffer resource just can offset an abrupt change when / consumption.
2, the Cache (cache) is the system ends the processing speed mismatch a time-of compromise strategy . Because the difference in speed between the CPU and the memory increases, so people take advantage of data locality (locality) wherein, by using a hierarchical storage system (memory Hierarchy) strategy to reduce the effect caused by this difference.
3, after the assumed memory access becomes do the calculation with the CPU as fast, cache can disappear, but the buffer remains. Such as downloading stuff from the Internet, instantaneous rate may vary considerably, but in the long term it is stable, by introducing a buffer so you can make the OS more stable rate of the received data, further reducing damage to the disk.
4, TLB (Translation Lookaside Buffer, translation look-aside buffer) since the name wrong, in fact it is a cache.

Guess you like

Origin www.cnblogs.com/net-saiya/p/10969049.html