The main purpose of setting disk buffers in system memory is to reduce the number of disk I/Os. The disk buffer is the place where the hard disk and the external bus exchange data. Its impact on performance greatly exceeds the impact of the disk cache on performance.
#The operating environment of this article: windows10 system, thinkpad t480 computer.
The main purpose of setting disk buffers in system memory is to reduce the number of disk I/Os.
The disk buffer is the place where the hard disk and the external bus exchange data.
The process of reading data from the hard disk is to convert the magnetic signal into an electrical signal, then fill and clear it again and again through the buffer, then fill it again, clear it again, and send it out step by step according to the cycle of the PCI bus. It can be seen that the buffer The role of the district is quite important. Its role is also to improve performance, but its difference from cache is: 1. It is hardware with a fixed capacity, unlike cache, which can be dynamically allocated in memory by the operating system. 2. Its impact on performance is much greater than the impact of disk caching on performance, because if there is no buffer, it will require reading or writing to the disk every time a word (usually 4 bytes) is transmitted.
Free learning video sharing: Introduction to programming
The above is the detailed content of What is the main purpose of setting disk buffer in system memory. For more information, please follow other related articles on the PHP Chinese website!