Cache management method and device, medium and equipment

A cache management and cache area technology, applied in the computer field, can solve the problems of reducing application system performance, memory resource limitations, swap partition performance is not as good as memory, etc., to achieve the effect of reducing system memory and optimizing cache management

Pending Publication Date: 2022-07-12
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the high price of RAM leads to limited memory resources, and only part of the data can be cached in memory. Based on this, memory cache resources need to be managed
[0003] In general, the more cached data, the more obvious the improvement of system application performance, but due to the limitation of fast device space such as memory, it is impossible to cache unlimited data
For example, in the Linux operating system, when the physical memory is exhausted, the swap partition will be used. Since the performance of the swap partition is not as good as that of the memory, swapping the memory data to the swap partition will seriously reduce the performance of the application system.

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 and device, medium and equipment
  • Cache management method and device, medium and equipment
  • Cache management method and device, medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0069] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.

[0070] Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-know...

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 invention belongs to the technical field of computers, and particularly relates to a cache management method and device, a medium and equipment. The method comprises the following steps: if object data stored in a cache region is called, creating a first reference pointer for pointing to the object data according to the object data; storing the first reference pointer into a first reference table, and adding a first numerical value to a preset parameter of the object data; releasing the first reference pointers according to the number of the first reference pointers in the first reference table and the storage sequence, and subtracting the first numerical value from the preset parameter of the object data of the released first reference pointers; and when the preset parameter of the object data is smaller than or equal to a first preset threshold value, releasing the object data from the cache region. According to the technical scheme provided by the embodiment of the invention, the system memory occupied by the application can be reduced under the condition of ensuring the operation performance of the application, and the optimization of cache management is realized.

Description

technical field [0001] The present application belongs to the field of computer technology, and specifically relates to a cache management method, apparatus, medium and device. Background technique [0002] In recent years, the in-memory data required by computing systems has continued to grow, so it is necessary to provide larger memory space for in-memory data computing technology. Currently, in-memory data processing frameworks are widely used in applications such as machine learning, graph computing, and stream processing. Random Access Memory (RAM) is used as memory. Since RAM accesses data several orders of magnitude faster than accessing data from the hard disk and the network, the memory data processing framework can also execute applications faster. a substantial increase. However, the high price of RAM results in limited memory resources, and only part of the data can be cached in memory. Based on this, memory cache resources need to be managed. [0003] Under n...

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
IPC IPC(8): G06F12/0871G06F12/1009G06F16/242G06F16/2455G06F16/27
CPCG06F12/0871G06F12/1009G06F16/244G06F16/24552G06F16/27Y02D10/00
Inventor 王佳黄铁鸣赵东罗程李斌
Owner TENCENT TECH (SHENZHEN) 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
Try Eureka
PatSnap group products