Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Cache sharing method and device and electronic equipment

A shared cache and shared memory technology, applied in the computer field, can solve the problems of large data processing delay, low memory utilization rate, and long time consumption, so as to improve utilization rate, reduce data processing delay, and reduce the number of repeated copies Effect

Pending Publication Date: 2021-07-27
北京蓝色星云科技发展有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in practical applications, audio and video data can change dynamically, and it is difficult for a fixed-size memory block to meet the needs of audio and video data processing, resulting in low memory utilization. Dividing the memory pool takes a long time and will cause a large delay in data processing

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 sharing method and device and electronic equipment
  • Cache sharing method and device and electronic equipment
  • Cache sharing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0089] 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 based on the present application belong to the protection scope of the present invention.

[0090] In order to solve the problems of low memory utilization rate and large data processing delay in the prior art, the embodiments of the present invention provide a shared cache method, device and electronic equipment.

[0091] A method for sharing a cache provided by an embodiment of the present invention may include:

[0092] Create and initialize a shared memory; establish a mapping relationship between the address of the shared memory and the virtual...

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

Embodiments of the invention provide a cache sharing method and device, and electronic equipment. The method comprises the steps that a shared memory is created and initialized; a mapping relationship between the address of the shared memory and the virtual memory address of a target process is established; a producer is created according to a producer creation instruction, and a consumer is created according to the consumer creation instruction; the producer inserts to-be-consumed data into the shared memory in a sequential insertion and sequential coverage mode and sends the information of to-be-consumed data to the consumer, wherein sequential insertion and sequential coverage indicate that the data area of the shared memory is repeatedly traversed from beginning to end, so that the to-be-consumed data is inserted into the shared memory in a sequential insertion and sequential coverage manner; and the consumer obtains the to-be-consumed data from the shared memory according to the information of the to-be-consumed data, and processes the to-be-consumed data. According to the invention, the memory utilization rate can be improved and the data processing delay is reduced.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device and electronic equipment for sharing cache. Background technique [0002] With the advancement of science and technology, the performance of hardware such as electronic equipment continues to improve. In terms of video data processing, as the amount of video data increases, the video resolution is also continuously improved, and the functions of video display are also more complex, and electronic devices need to process more and more audio and video data. Devices and the like are required to have higher and higher memory capacities. [0003] In order to alleviate the demand for memory capacity of electronic devices, a method of using a shared cache is: divide the memory pool into blocks of a fixed size, and then use the divided blocks to process audio and video data. [0004] However, in practical applications, audio and video data can change dynamica...

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 Applications(China)
IPC IPC(8): G06F9/50G06F3/06
CPCG06F9/5016G06F3/0644G06F3/0673
Inventor 张华孔庆新
Owner 北京蓝色星云科技发展有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products