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

Data lockless caching method for video monitoring equipment and server

A video monitoring and data technology, applied in the direction of electrical digital data processing, input/output process of data processing, instruments, etc., can solve problems such as low memory usage efficiency, affecting products, memory waste, etc., to improve cache usage efficiency and save System resource calls, the effect of saving memory resources

Active Publication Date: 2021-03-16
成都焱之阳科技有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In addition, in order to ensure the correctness of the read and write data, a mutex is added between the read and write threads for isolation operations. On average, a lock / unlock operation is performed every 30ms, which reduces the utilization efficiency of the system CPU. At the same time, it also repeatedly Dynamically apply for / release memory, resulting in a large number of memory fragments, resulting in low memory usage efficiency, which in turn affects the instability of product storage modules and preview modules
Another solution uses a fixed-size circular buffer queue for recycling, but since the size of each frame of data is not fixed during the actual operation of the product, this method will lead to waste of memory
These have greatly reduced the efficiency of data cache usage, leading to the problem of low efficiency of data 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
  • Data lockless caching method for video monitoring equipment and server
  • Data lockless caching method for video monitoring equipment and server
  • Data lockless caching method for video monitoring equipment and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] 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.

[0054] Such as figure 1 As shown, the embodiment of the present invention provides a data lock-free caching method for video surveillance equipment, including:

[0055] S101. Initialize the buffer area, the buffer area includes an index area and a data area, wherein the data area is used to store the data stream to be processed by the video surveillance equipment; the index area is used to record that the data stream is stored in the The start and end positio...

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 provides a data stream lockless caching method for video monitoring equipment and a server, and the method comprises the steps: initializing a cache region which comprises an index region and a data region; when a data stream is collected, packaging the data stream to obtain packaged data; when the length of the frame data in the packaged data exceeds the preset maximum single-framelength, discarding the packaged data; when the length of the frame data in the packaged data does not exceed the preset maximum single-frame length, storing the packaged data into the data area, and storing the start-stop position information of the packaged data in the data area into the index area; and when an instruction for acquiring data from the cache region is received, acquiring corresponding packaged data in the data region through the start-stop position information stored in the index region, and sending the packaged data. According to the method, system resource calling is greatlysaved, and the data caching efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of video monitoring, in particular to a data lock-free caching method and server for video monitoring equipment. Background technique [0002] Existing video surveillance equipment caches data using chained splicing caches. When data streams are generated, the required memory is temporarily requested from the system dynamically and connected to the end of the previous storage node to form chained storage. Due to the "consumption" cycle Uncertain and irregular existence of multiple "consumers", while "producer" data is continuous, it is easy to cause data accumulation, resulting in a large amount of memory not being released in time. [0003] Among them, the producer of data refers to the electronic device that generates data, for example, the producer of the camera when the camera collects video data stream; the consumer of data refers to the electronic device that uses the data, for example, displaying surv...

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): G06F3/06
CPCG06F3/061G06F3/0644G06F3/0656G06F3/0676
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