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

A cache management method and device

A cache and management module technology, applied in the computer field, can solve problems such as system performance degradation, frequent cache refresh, and inapplicability of kernel mode.

Inactive Publication Date: 2017-01-18
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the inconsistency of management units and the existence of multiple CPUs, it is possible to cause a large number of cache failures, resulting in frequent cache refreshes, which eventually lead to system performance degradation
[0004] In the prior art, page coloring can be used to improve system performance. The basic principle is to control each user-mode process so that it can only access pages of a specific color, that is, introduce coloring strategies when processes are created, and allocate pages through page fault exceptions. Introduce coloring strategies, etc., so as to avoid cache failure during process switching, but this solution is only applicable to user mode, not to kernel mode, and the mapping relationship between page and cache is fixed, and the cache is divided into each process, reducing the usage of the entire cache

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
  • A cache management method and device
  • A cache management method and device
  • A cache management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0051] An embodiment of the present invention provides a cache management method, such as figure 1 shown, including:

[0052] 101. The server acquires statistical information of the memory area of ​​the physical address through the statistical module, and the statistical information includes the cache hit rate, or cache miss rate, or access frequency of the physical memory page.

[0053] Wherein, the server may be a server with multi-core or many-core process...

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 buffer management method and a buffer management device and relates to the field of a computer. The use efficiency of the buffer can be improved, and the system performance is improved. The method is characterized in that the statistical information of memory regions of physical addresses is obtained through a statistical module, the memory regions are classified through a management module according to region marking of the physical addresses and the statistical information, each type of classified memory region is colored so that the colors of the memory regions in different types are different, the mapping relationship in a region color mapping table is updated according to the colored memory regions, the mapping relationship belongs to the mapping between the region marking of the physical addresses and the colors of the memory regions after the coloring, according to the mapping relationship, the data corresponding to the current access physical address is buffered in a buffer region through a color register, and the buffer region corresponds to the color of the memory region of the current access physical addresses in the buffer. The embodiment of the invention is used for carrying out color remapping during the data buffer.

Description

technical field [0001] The invention relates to the field of computers, in particular to a cache management method and device. Background technique [0002] With the advancement of technology, new multi-core and many-core computer systems continue to emerge, including multiple physical CPUs (Central Processing Unit, central processing unit), and each physical CPU contains a large-capacity hardware cache. In the hardware cache structure of modern CPUs, the smallest unit of hardware cache management in the CPU is cache bin (cache line), and multiple Cache lines form a set (set). Among them, the smallest unit of memory management in the OS (Operating System) is page (page), and the number of consecutive sets required for a physical page to be mapped to the CPU hardware cache is a cache bin (cache book), and a cache bin represents a kinds of colors. [0003] When task0 and task1 have pages mapped to the same cache bin, and task0 runs on core0, and task1 runs on core1, it will ...

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/0882G06F12/0811G06F12/0842
Inventor 裘稀石吴建国
Owner HUAWEI TECH CO LTD