Home >Common Problem >What is the function of cache memory

What is the function of cache memory

王林
王林Original
2020-07-09 15:26:3832091browse

The function of the cache memory is: after adding the cache memory between the CPU and the memory, the CPU can directly access data from the memory, thus reducing the time and improving the running speed of the system. Cache memory consists of Cache memory bank, address translation component, and replacement component.

What is the function of cache memory

Function:

When the CPU in a higher-end computer accesses data from the memory, the memory speed cannot keep up with the high speed of the CPU. And make it wait, thus wasting precious time of the CPU. After adding a cache memory between the CPU and the memory, the CPU can directly access data, thereby reducing time and improving the running speed of the system.

Related introduction:

Cache memory is a first-level memory that exists between the main memory and the CPU. It is composed of static memory chips (SRAM). The capacity is relatively small but the speed is higher than the main memory. Much, much closer to CPU speed.

In the hierarchy of computer storage systems, it is a high-speed, small-capacity memory between the central processing unit and the main memory. Together with the main memory, it forms a first-level memory. Scheduling and transfer of information between cache and main memory is automated by hardware.

Mainly consists of three parts:

Cache storage body: stores instructions and data blocks transferred from main memory.

Address translation component: Create a directory table to convert the main memory address to the cache address.

Replacement component: When the cache is full, data blocks are replaced according to a certain strategy and the address translation component is modified.

The above is the detailed content of What is the function of cache memory. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn