The cache is cache, which is the buffer between CPU and memory. Because the CPU is much faster than the main memory, it usually takes a while for the CPU to get the data from it. The cache holds some data that the CPU has just used or is recycled, and when the CPU needs to fetch the data again, the data in the cache is called, which reduces the CPU wait time and improves the efficiency of the system. Cache can be divided into the first level cache and level two cache, the first level of cache is integrated in the CPU, level two cache is integrated on the motherboard, now the level two cache is also integrated within the CPU.
Buffer is the buffering between devices that have different priorities or are memory-not-synchronized, primarily for buffering between hard disks and memory.
Main differences:
Cache is cached for buffering between CPU and memory;
Buffer is the I/O cache for memory and hard disk buffering
This article from the "Small Sky" blog, reproduced please contact the author!
About the difference between the buffer and the cache under Linux