Shared memory adjustment method, device, apparatus and medium

A technology of shared memory and adjustment method, applied in the field of computer processing, can solve the problems of long data message size and inability to correctly store data messages in shared memory, so as to ensure correct storage and transmission, improve flexibility, and improve the effect of utilization.

Active Publication Date: 2019-01-22
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the size of the data messages to be transmitted for each processing task in the unmanned vehicle system is ge

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
  • Shared memory adjustment method, device, apparatus and medium
  • Shared memory adjustment method, device, apparatus and medium
  • Shared memory adjustment method, device, apparatus and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 It is a flow chart of a shared memory adjustment method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of adjusting the size of the shared memory for storing data messages, especially for the function modules in the unmanned vehicle system. In the case of adjusting the size of the shared memory stored in the data messages transmitted between them, the method can be performed by the device for adjusting the shared memory provided in the embodiment of the present invention, which can be implemented in software and / or hardware, and generally can be Integrate in on-board equipment, such as control equipment for driverless vehicles. Such as figure 1 As shown, the method of this embodiment specifically includes:

[0024] S110. Pre-allocate message storage space in the shared memory space for processing tasks.

[0025] Generally speaking, a system will include multiple functional modules, and each functional module...

Embodiment 2

[0050] figure 2 It is a flow chart of a shared memory adjustment method provided by Embodiment 2 of the present invention. This embodiment is further specificized on the basis of Embodiment 1 of the present invention. According to the size relationship between the data message and the message storage space , the step of adjusting the size of the message storage space is embodied as: if the size of the data message is greater than the size of a storage unit in the message storage space, then increase the size of each storage unit in the message storage space the size of the storage unit until the size of the storage unit is greater than or equal to the size of the data message.

[0051] S210. Pre-allocate a message storage space in the shared memory space for the processing task, where the message storage space includes at least one storage unit and redundant space, and each storage unit has the same size.

[0052] Optionally, the size of the redundant space is equal to the p...

Embodiment 3

[0078] image 3 It is a schematic structural diagram of a shared memory adjustment device provided in Embodiment 3 of the present invention. The shared memory adjustment device is set on a vehicle-mounted device, such as image 3 As shown, the device specifically includes:

[0079] A message storage space allocation module 310, configured to pre-allocate message storage space in the shared memory space for processing tasks;

[0080] A data message obtaining module 320, configured to obtain the data message stored in the message storage space by the processing task;

[0081] The storage space size adjustment module 330 is configured to adjust the size of the message storage space according to the size relationship between the data message and the message storage space.

[0082] The embodiment of the present invention dynamically adjusts the size of the message storage space based on the size relationship between the data message stored in the message storage space and the mes...

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 discloses a shared memory adjustment method, device, apparatus and medium. The method comprises the following steps of: pre-allocating a message storage space in a shared memory space for processing tasks; acquiring a data message stored by the processing task in the message storage space; adjusting the size of the message storage space according to the size relationship between the data message and the message storage space. The embodiment of the invention can adapt to the storage requirements of different data messages with variable length, and reasonably utilizes the shared memory space.

Description

technical field [0001] Embodiments of the present invention relate to computer processing technology, and in particular to a shared memory adjustment method, device, device and medium. Background technique [0002] Unmanned vehicle system is an important application field of artificial intelligence. In the unmanned vehicle system, multiple functional modules corresponding to different functions are running, and each functional module is realized by a program, which may or may not have matching hardware devices. Typical functional modules are Driver module, Perception module and Planning module, etc. For example, the Perception module can be subdivided into Image perception module, Laser point cloud perception module, and Ultrasonic perception module. Different unmanned vehicle systems will have different functional modules due to different hardware devices or different software functions. [0003] In the prior art, each functional module has a corresponding processing task...

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): G06F9/54G06F9/50
CPCG06F9/5016G06F9/544
Inventor 夏黎明陈卓倪忠俊鲍万宇张超党跃东
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) 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