cache is a cache memory, which is located between the CPU and the main memory DRAM. It is small in size but high in speed and is usually composed of SRAM. The write operation of cache is relatively complex. Commonly used methods include write-through method, write-back method and mark method.
The operating environment of this article: Windows 7 system, Dell G3 computer.
Cache memory is a high-speed cache memory in a computer. It is a small but high-speed memory located between the CPU and the main memory DRAM (Dynamic Random Access Memory). It is usually composed of SRAM (Static Random Access Memory static memory). It is a small-capacity but high-speed memory located between the CPU and the memory.
The speed of the CPU is much higher than that of the memory. When the CPU directly accesses data from the memory, it has to wait for a certain period of time, while the Cache can save a part of the data that the CPU has just used or recycled. If the CPU needs to access data again, When using this part of the data, it can be called directly from the Cache, thus avoiding repeated access to data and reducing the waiting time of the CPU, thus improving the efficiency of the system. Cache is divided into L1Cache (level one cache) and L2Cache (level two cache). L1Cache is mainly integrated inside the CPU, while L2Cache is integrated on the motherboard or CPU.
Write operation:
Because it is necessary to ensure that the data cached in the Cache is consistent with the content in the memory, the write operation of the Cache is relatively complex. Commonly used methods include write direct method, write back method and mark. Law.
Related expansion introduction:
Memory is a collection of many storage units, arranged in order of unit numbers. Each unit is composed of a number of binary bits to represent the value stored in the storage unit. This structure is very similar to the structure of an array, so in the VHDL language, an array is usually used to describe the memory.
Memory is a memory component used to store programs and various data information. Memory can be divided into two categories: main memory (referred to as main memory or memory) and auxiliary memory (referred to as auxiliary memory or external memory). It is the main memory that directly exchanges information with the CPU.
The working method of main memory is to store or read various types of information according to the address of the storage unit, collectively referred to as access memory. The carrier that collects storage units in the main memory is called a memory bank. Each unit in the memory bank can store information represented by a string of binary codes. The total number of bits of this information is called the word length of a storage unit. There is a one-to-one correspondence between the address of the storage unit and the information stored in it. There is only one unit address, which is fixed, but the information stored in it can be replaced.
The binary code indicating each unit is called the address code. When looking for a certain unit, first give its address code. The register that temporarily stores this address code is called the memory address register (MAR). In order to store information taken out from the storage unit of the main memory or information to be stored in a certain storage unit, a memory data register (MDR) is also set up.
(Learning video sharing: Programming video)
The above is the detailed content of What is cache?. For more information, please follow other related articles on the PHP Chinese website!

事情其实是这样的,当时领导交给我一个perf硬件性能监视的任务,在使用perf的过程中,输入命令perf list,我看到了以下信息:我的任务就要让这些cache事件能够正常计数,但关键是,我根本不知道这些misses、loads是什么意思。

存储器中存取速度最快的是“内存储器”;计算机中的存储器采用层次结构,按照速度快慢排列依次是内存储器、高速缓冲存储器、计算机的主存、大容量磁盘,其中内存一般分为RAM随机存取存储器和ROM只读存储器。

能直接存取。内存储器又称内存,是外存与CPU进行沟通的桥梁,计算机中所有程序的运行都是在内存中进行。内存的作用是用于暂时存放CPU中的运算数据,以及与硬盘等外部存储器交换的数据。只要计算机运行,操作系统就会把需要运算的数据从内存调到CPU中进行运算;当运算完成后,CPU再将结果传送出来,内存的运行也决定了计算机的稳定运行。

计算机具有很强的记忆能力的基础是:足够容量的存储装置。存储器可分为内存和外存,它们使得计算机具有强大的记忆功能,可以存储大量的信息,这些信息,不仅包括各类数据信息,还包括加工这些数据的程序。

存储器系统是指计算机中由存放程序和数据的各种存储设备、控制部件及管理信息调度的设备(硬件)和算法(软件)所组成的系统。存储系统提供写入和读出计算机工作需要的信息(程序和数据)的能力,实现计算机的信息记忆功能。存储系统的层次化结构可以分为5级:寄存器组、高速缓存Cache、主存、虚拟存储器和外部存储器。

u盘是中国发明的,朗科公司是U盘的全球发明者。2002年7月,朗科公司的“用于数据处理系统的快闪电子式外存储方法及其装置”获得国家知识产权局正式授权,该专利填补了中国计算机存储领域20年来发明专利的空白;2004年12月7日,朗科获得美国国家专利局正式授权的闪存盘基础发明专利。

使用cache可以提高计算机运行速度这是因为Cache缩短了CPU的等待时间。Cache是位于CPU和主存储器DRAM之间,规模较小,但速度很高的存储器。Cache的功能是提高CPU数据输入输出的速率;Cache容量小但速度快,内存速度较低但容量大,通过优化调度算法,系统的性能会大大改善。

cache叫做高速缓冲存储器,是介于中央处理器和主存储器之间的高速小容量存储器,一般由高速SRAM构成;这种局部存储器是面向CPU的,引入它是为减小或消除CPU与内存之间的速度差异对系统性能带来的影响。Cache容量小但速度快,内存速度较低但容量大,通过优化调度算法,系统的性能会大大改善。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Chinese version
Chinese version, very easy to use

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
