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

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

Example Embodiment

[0053] Next, the technical solutions in the embodiments of the present invention will be apparent from the embodiment of the present invention, and it is clearly described, and it is understood that the described embodiments are merely embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, there are all other embodiments obtained without making creative labor without making creative labor premises.

[0054] Such as figure 1 As shown, embodiments of the present invention provide a data-free cracking method for a video surveillance device, including:

[0055] S101, the initialization cache area, the buffer area includes an index zone and a data area, wherein the data area is configured to store a data stream to be processed by a video surveillance device; the indexing area is used to record the data stream in the The start position information in the data area.

[0056] Such as Figure 7 As shown, the buffer area include...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products