Unlock instant, AI-driven research and patent intelligence for your innovation.

Data transmission method and system

A data transmission method and technology of a data transmission system, applied in the field of data transmission, can solve the problems of low success rate of continuous memory application, inability to obtain expected cache size, underutilization of host system memory resources, etc., so as to improve the success rate of application Effect

Active Publication Date: 2017-06-13
北京中航通用科技有限公司
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the past, the host generally applied for one or two larger continuous memories for data caching when allocating the uplink DMA cache. However, as the required cache becomes larger and larger, the disadvantages of the traditional method become more and more obvious:
[0004] Disadvantage 1: The probability of successful application for large continuous memory is low. Once the system cannot provide the expected continuous memory resources, it can only reduce the size and continue to apply until the application is successful, which often fails to obtain the expected cache size;
[0005] Disadvantage 2: The memory resources of the host system are not fully utilized, because a larger block of continuous memory needs to be applied for, so the smaller continuous memory blocks in the system cannot be used, which may cause the system to fail even if there are sufficient memory resources. Only part of it can be used by the corresponding PCIE device

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 transmission method and system
  • Data transmission method and system
  • Data transmission method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] This embodiment records the working process of the data transmission method of the present invention in detail, and the uplink DMA transmission is controlled by an I / O device (such as a PCIE hardware device). When the host loads the driver, it starts working according to the following steps:

[0043] Step 1. Calculate the number of indexes based on the preset cache size S and the average packet length P, and then calculate the size I of the index memory block (I = (S / P) × U) according to the size U of the index unit, and follow the This size first applies for index memory blocks.

[0044] Each index unit needs information such as the length of the data packet, the serial number of the data memory block where the data packet is located, the offset address of the starting position of the data packet, the effective mark of the index unit, and the end mark of the index unit. The functions of these information are as follows:

[0045] Data packet length: record the length ...

Embodiment 2

[0087] This embodiment describes the data transmission system of the present invention, which includes a host and I / O devices connected to the host. Wherein, the host includes:

[0088] The index memory application unit is used to calculate the index number S / P according to the preset cache size S and the average packet length P, and then calculate the size of the index memory block I = (S / P) × U according to the size U of the index unit , and apply for an index memory block according to this size;

[0089] The data memory application unit is used to calculate the number of data memory blocks to be allocated N = S / M according to the preset cache size S and the size of each data memory block M, and apply for N blocks according to the preset data block size M data memory block;

[0090] The memory allocation information sending unit is used to write the initial physical address and length of the index memory block and the initial physical address of all data memory blocks...

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 discloses a data transmission method and system applied to an I / O device to transmit data to a mainframe through a DMA. The method includes the steps that the index number S / P is calculated according to preset cache size S and average data packet length P, then the size I = (S / P) * U of an index memory block is calculated according to the size U of an index unit, and the index memory block is applied according to the size; according to the preset cache size S and the size of each data memory block M, the number N = S / M of the data memory blocks required to be allocated is calculated, and N data memory blocks are applied according to the preset data block size M; the starting physical address and length of the index memory block, starting physical addresses of all the data memory blocks and the size of the data memory blocks are written into the I / O device; the I / O device is controlled to transmit uplink data through the DMA; the mainframe reads index information and obtains uplink data packet contents according to records of the index unit. By adopting the data transmission method and system, the memory resource application success rate of a mainframe system can be improved, and smaller continuous memory blocks can be effectively utilized to make the I / O device provide more mainframe memory resources.

Description

technical field [0001] The invention relates to the field of data transmission, in particular to data transmission control for I / O devices such as PCIE, and mainly provides a method and system for memory resource allocation management and data transmission for DMA transmission of I / O devices such as PCIE. Background technique [0002] When the I / O device transmits data, it generally uses a Direct Memory Access (DMA) technology to transfer data on the I / O device, thereby realizing background batch data transmission independent of the CPU. In the DMA operation, the host computer allocates DMA memory address space for the DMA operation, and the I / O device directly reads and writes data in the DMA memory address space, thereby completing the DMA mode data transmission. The DMA operation is realized through the DMA message. The I / O device sends the DMA message to the host. The DMA message contains the DMA address. The DMA address is located in the DMA memory address space alloc...

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 Applications(China)
IPC IPC(8): G06F13/28G06F12/06
CPCG06F12/063G06F12/0646G06F13/28
Inventor 柳卯陈宗权刘胜杰
Owner 北京中航通用科技有限公司