Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Cache coloring memory allocation method and device for search tree

A memory allocation and search tree technology, applied in the storage field, can solve the problems of data search performance degradation, data cannot be cached at the same time, etc.

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

AI Technical Summary

Problems solved by technology

Since the capacity of the Cache is often much smaller than that of the main memory, all the data in the main memory cannot be cached in the Cache at the same time. When there is a new Cache Line in the main memory that needs to be cached in the Cache, all the locations that can cache the Cache Line are all deleted. When it is occupied, it is necessary to replace the Cache Line in a certain position and leave a free position to cache the new Cache Line; therefore, the performance of data search is degraded

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 coloring memory allocation method and device for search tree
  • Cache coloring memory allocation method and device for search tree
  • Cache coloring memory allocation method and device for search tree

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0037] Various embodiments of the present invention can be applied to memory systems using set associative and linear mapping Cache.

[0038] figure 1 It is a flow chart of Embodiment 1 of the cache coloring memory allocation method for a search tree in the present invention, as shown in figure 1 As shown, the method of this embodiment may inclu...

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

The embodiment of the invention provides a cache-coloring memory allocation method and device for search trees. The method includes: constructing the first search tree; determining that the first search tree has N layers of nodes; acquiring the number of the nodes which each layer in the N layers of nodes has; allocating corresponding colors in coloring colors of a memory for each layer of nodes according to the number of the nodes which each layer in the N layers of nodes has, wherein the corresponding colors allocated for all the layers of nodes are mutually different; and generating the second search tree after cache coloring according to the colors corresponding to each layer of nodes and the memory corresponding to the colors. Only the memory which can be mapped to the corresponding coloring colors is allocated when the memory is allocated for each layer of nodes according to the colors corresponding to each layer of nodes in the second search tree, mapping relationships exist between the memory and a Cache, thus an effect that the different layers of nodes cannot mutually compete for the Cache can be guaranteed, and thus search performance is improved.

Description

technical field [0001] Embodiments of the present invention relate to the field of storage technologies, and in particular, to a cache coloring memory allocation method and device for a search tree. Background technique [0002] In the hierarchical storage structure of modern computers, Cache is a layer of cache located between main memory and CPU registers. Cache is usually composed of SRAM with small capacity and fast speed. By caching the hot data required by CPU, it can reduce the CPU's access to main memory, improve the efficiency of memory access, and make up for the gap between CPU computing speed and main memory access speed. , which is conducive to improving the overall performance of the computer system. In order to reduce the overhead of data exchange between main memory and Cache, and make full use of the spatial locality (Spatial Locality) of computer programs, the unit of data exchange between Cache and main memory is usually a Cache line consisting of multipl...

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/0871
CPCG06F12/0871
Inventor 贺鹏杨馥榕谢高岗
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products