Buffer Cache and understanding

Linux and Windows memory
memory mechanism Linux system is a priority use of physical memory, when there is idle physical memory, Linux system does not release memory, used memory even if the program has been closed, this part of the memory is used for caching a. In other words, even if you have a great memory, used for some time, it will be filled. The advantage of this is that those who start the program just turned off, or just read a nice access data more quickly, so the Linux system as a stable server is very suitable. The Windows system is always to leave some free space in memory, immediate memory have free program will also use some virtual memory, the benefits of doing so is to start new programs faster, new memory directly assigned to the new program , while the Linux system? Because memory is used often in all states, the first clean out a chunk of memory, reassigned to new uses, therefore, to start the new program will be slower.

Buffer, Cache and memory
cache stores the contents of the reservoir RAM location storing the address and the frequently accessed data items. When the processor references an address in the memory, the cache memory to check whether there will be this address. If the address is there, then the processor returns the data; if the address is not stored, the memory access routine. Because the cache memory is always faster than main RAM memory speed, when the speed is lower than RAM access speed of the microprocessor, a cache memory is often used. Buffer: buffer register, i.e., referred to as buffer, divided into input and output buffers. Cache: i.e., a cache memory, a special memory subsystem in which frequently used data is copied to be able to quickly access on the CPU. In short Buffer and Cache is a memory technology to reduce CPU performance bottleneck call memory, and that if there is any relationship between the two?

Relationship of Buffer Cache
similarities: CPU interacts with reduced I / O read and write memory bottleneck memory technology, are an area of memory.
Differences: Buffer order for a device to synchronize different speeds, a buffer area created, written Buffer data is to be written out from other devices. Cache is to increase the read speed, data will often require immediate or pre-read cache, data is written into the Cache to other devices from which to read.

Guess you like

Origin www.cnblogs.com/zhouzhifei/p/11577012.html