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

Efficient sampling port buffer management method

A buffer management and port technology, applied in the direction of memory address/allocation/relocation, multiprogramming device, etc., can solve the problems affecting the port's accessibility at any time, reduce communication efficiency, performance degradation, etc., to meet the functional characteristics requirements and Time requirements, improve communication efficiency, realize the effect of functional characteristics

Active Publication Date: 2017-11-28
AVIC NO 631 RES INST
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this mutual exclusion operation is that if the message load is relatively large or the time window of the partition is relatively small, if the port access port is not completed in the current time window, due to the mutual exclusion operation added to the shared buffer, it will As a result, the destination ports of other partitions cannot complete the access to the port within the partition time, which will affect the accessibility of the ports at any time, and also reduce the communication efficiency.
[0004] In order to reduce the performance problems caused by mutual exclusion operations, according to the idea of ​​exchanging space for time, one way is to add a buffer for each destination port, so that each destination port does not need to communicate with other N-1 destination ports. repulsion, but the problem is that the number of underlying message copies of the message will increase N times, and there is still a mutual exclusion operation between the source port and one destination port, which will bring a large performance loss
[0005] If new messages are written in the process of reading messages and need to be read again, the performance of the above two methods will be further degraded

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
  • Efficient sampling port buffer management method
  • Efficient sampling port buffer management method
  • Efficient sampling port buffer management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention provides an efficient sampling port buffer management method, the method is specifically as follows:

[0019] 1. When the sampling port is initialized, two buffers are allocated for the sampling port. For the convenience of expression, they are named BUFFER_1 and BUFFER_2 respectively. The two pointers of tempData and validData are used to point to these two buffers, and a write buffer count counter is saved at the same time.

[0020] 2. When the source port writes a message, write the message into the space pointed to by tempData, such as figure 1 shown in BUFFER_1.

[0021] 3. After the message is written, close task scheduling, point tempData to the buffer pointed to by validData, and point validData to the buffer pointed to by tempData, that is, exchange pointers, update the write buffer count counter at the same time, add 1 to the counter, and then start task scheduling. The destination port always reads data from the buffer pointed to by val...

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

An efficient sampling port buffer management method, including: 1) When the sampling port is initialized; 2) When the source port writes data, write the data into the buffer pointed to by the temporary pointer; 3) After the data is written, exchange the pointer The pointers of the two buffers update the write buffer counter at the same time, and add 1 to the count value of the write buffer counter; 4) When reading data from the source port, first save the count value of the write buffer counter, and then start from the valid pointer Read the data in the buffer, compare it with the count value of the latest write buffer counter after reading, and judge whether the count value of the write buffer counter has changed; if so, repeat step 4) until the count value of the write buffer counter does not change. Change occurs; if not, the reading is complete; 5) Send and read messages by calling the sampling port. The invention provides an efficient sampling port buffer management method which can improve the communication efficiency of the sampling port.

Description

technical field [0001] The invention belongs to the technical field of computer software control, and relates to a high-efficiency sampling port buffer management method. Background technique [0002] In order to meet the requirements of modularized and integrated avionics IMA system, a multi-partition operating system has emerged. The salient feature of a multi-partition operating system is that each partition is isolated from each other in space and time. Inter-partition communication is the main way to achieve information exchange between partitions. The sampling port is an important communication method for inter-partition communication. The function of the sampling port It is required to maintain only one message. When the source port writes a message, no matter whether the previously written message is read or not, the new message will overwrite the previous message; the destination port only reads the most recently arrived message. The sampling port needs to support ...

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 Patents(China)
IPC IPC(8): G06F12/08G06F9/46
Inventor 贠海顺叶宏韩炜李运喜任晓瑞徐晓光时磊陈晓磊侯光霞梅涛曹原张东仝敏卫一芃杨晓宁杨弋高东明
Owner AVIC NO 631 RES INST
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