Unlock instant, AI-driven research and patent intelligence for your innovation.

Cache management method, cache controller and computer system

A computer system and cache management technology, applied in the field of communication, can solve problems such as SSD writing, and achieve the effect of reducing writing

Active Publication Date: 2020-12-15
HUAWEI TECH CO LTD +1
View PDF15 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the existing technology, some data blocks with large cache value may be frequently swapped in and out of the cache, resulting in unnecessary writes to the SSD.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Cache management method, cache controller and computer system
  • Cache management method, cache controller and computer system
  • Cache management method, cache controller and computer system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0049] figure 1 A computer system architecture diagram provided by an embodiment of the present invention is shown. Cache (Cache) is a small-capacity memory between the central processing unit (Central Processing Unit, CPU) and the main memory. The access speed is faster than the main memory and close to the CPU. It can provide instructions and data to the CPU at high speed and improve the execution speed of the program. Cache technology is an important ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A cache management method used in a computer system, a cache controller, and a computer system are provided. The method comprises: the cache controller selecting a first data block to be replaced in a cache (S210), in which the first data block is a data block recorded at a first position in a least recently used (LRU) linked list, and the LRU linked list is configured to record information of accessed data blocks in the cache; the cache controller determining that a maximum historical reuse distance of the first data block is greater than a default threshold (S220), in which the maximum historical reuse distance of the first data block is obtained according to positions in the LRU linked list at which the first data block was accessed at least twice; and forbidding the cache controller from eliminating the first data block in the cache (S230). By selectively forbidding elimination of the data block in the cache, the invention can effectively avoid a situation in which data blocks with cache values in the data center are frequently swapped in and out the cache, reducing unnecessary writes to the cache.

Description

technical field [0001] The present invention relates to the communication field, and more specifically, to a buffer management method, a buffer controller and a computer system in the communication field. Background technique [0002] In recent years, non-volatile memory (Non-Volatile Memory, NVM) develops rapidly. Solid State Drive (SSD), as a relatively mature NVM product at this stage, has been widely used in many scenarios, such as data centers and workstations. SSD has lower latency than hard disk drive (Hard Disk Drive, HDD), but the price per gigabyte (GB) of SSD is much higher than that of HDD, that is, HDD can be exchanged for replacement at a relatively low price. Large capacity, but the performance of HDD is limited by the mechanical movement of the magnetic head. Therefore, currently, SSDs are often deployed between Dynamic Random Access Memory (DRAM) and HDD as a cache layer to balance price and performance requirements. [0003] Although SSDs exhibit many at...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/0802G06F12/123
CPCG06F12/0802G06F12/12G06F12/0868G06F12/0897G06F12/123G06F2212/217G06F2212/222
Inventor 倪源江蒋德钧熊劲王元钢
Owner HUAWEI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More