Data transmitting and receiving method and device based on processor sharing internal memory

A data transmission method and technology of a data transmission device, which are applied in the directions of multi-programming devices, electrical digital data processing, instruments, etc., can solve the problems of repeated copying of message data, and achieve the effect of reducing overhead.

Active Publication Date: 2009-08-12
HUAWEI TECH CO LTD
View PDF0 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the invention is to solve the problem that the

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 transmitting and receiving method and device based on processor sharing internal memory
  • Data transmitting and receiving method and device based on processor sharing internal memory
  • Data transmitting and receiving method and device based on processor sharing internal memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] Such as figure 1 As shown, it is a schematic block diagram of a message transmission device based on processor shared memory according to an embodiment of the present invention. The data sending device 10 includes: a data storage unit 101, which is used to write data into at least one of the shared memory pools of the processor. A memory block; a pointer generating unit 102, configured to generate a memory block pointer according to the address information of the memory block; a pointer sending unit 103, configured to send the memory block pointer to a receiver.

[0029] If device 10 sends a message broadcast:

[0030] Such as figure 2 As shown, the data storage unit 101 may include a first data writing module 1011: used to obtain a memory block from the memory pool as a message buffer, and write the message data to be sent into the data area in the message buffer; image 3 As shown, the pointer generation unit 102 may include a first pointer generation module 1021: ...

Embodiment 2

[0053] The embodiment of the present invention includes the following two parts: a queue structure in which message queues and buffers are separated, and is used for high-speed message broadcasting.

[0054] The queue structure of message queue and buffer separation is as follows Figure 9shown. The message queue is a message buffer pointer queue in the form of a linked list, and the queue pointer in the task control block points to the message queue. A message buffer consists of a message header and a data area. Wherein, in addition to recording the message name, message type, data volume and sending task identifier, the message header also includes a lifetime. The lifetime records the number of times the message is sent.

[0055] In a multi-core processor system, the above-mentioned queue structure is located in the shared memory space. In this way, not only messages can be passed between tasks of the same core, but also message communication can be adopted between tasks...

Embodiment 3

[0064] The embodiment of the present invention includes the following three parts: a message queue, a queue structure in which a message header and a data buffer are separated, and is used for high-speed message forwarding.

[0065] Such as Figure 11 shown, shows that in the second embodiment Figure 9 Based on the queue structure that further separates the message header and the data buffer, both the message header and the data buffer occupy memory blocks independently. Among them, in addition to including the message name, message type, data volume, sending task identification and lifetime, the message header also adds two pointers: data buffer pointer and parent message pointer. The parent message pointer is used for the forwarded message to point to its parent message.

[0066] High-speed message forwarding also consists of four processes of message creation, sending, receiving and releasing.

[0067] The message creation process obtains two memory blocks from the memo...

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 method and a device for sending/receiving data on the basis of processor shared memory, wherein the data-sending method based on processor shared memory comprises the following steps of writing data into at least one memory block in a shared memory pool of a processor, generating a memory block pointer according to the address information of the memory block and sending the memory block pointer to a receiver. The invention also provides a data-sending device based on processor shared memory, as well as a method and a device for receiving data on the basis of processor shared memory. As the invention adopts a technical means of transmitting the memory block pointer instead of message data, the invention has the advantages of solving the problem that the message data is repeatedly copied during message transmission and achieving the technical effect of reducing overhead for both memory and time.

Description

technical field [0001] The present invention relates to the field of processors, in particular to a data sending and receiving method and device based on processor shared memory. Background technique [0002] In processor systems, especially multi-processing systems, message passing is often used as the main method of inter-task communication and inter-processor communication because it can well reflect the "producer-consumer" relationship and has the advantages of strong portability. Way. The Message Passing Interface Forum (Message Passing Interface Forum, MPIF) has developed a Message Passing Interface (Message Passing Interface, MPI) standard for this communication mode. In some applications, there is not only point-to-point messaging, that is, a message is sent by a sender to a receiver, but also point-to-multipoint message broadcasting, that is, a message is sent by a sender to multiple receivers, and message forwarding, that is, Messages are received by one receiver...

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/46G06F15/167
Inventor 杨炼
Owner HUAWEI TECH 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