Operation card driver implementation method based on application layer

An implementation method and application layer technology, applied in computing, program control design, instruments, etc., can solve problems such as inability to make full use of the computing power of hardware computing cards and consume CPU, so as to avoid CPU consumption, improve overall performance, and avoid The effect of the copy operation

Inactive Publication Date: 2020-05-08
NO 30 INST OF CHINA ELECTRONIC TECH GRP CORP
View PDF12 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And during multitasking, applications frequently call system calls, and the operating system needs to frequently switch tasks
Th

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
  • Operation card driver implementation method based on application layer
  • Operation card driver implementation method based on application layer
  • Operation card driver implementation method based on application layer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention adopts the necessary initialization operation completed in the kernel space. The business logic that completes the operation in user space. Such as figure 2 As shown, its functional flow is as follows:

[0020] (1) Apply for a large memory area that can be used for DMA transfer. And provide direct access to the application layer interface.

[0021] a) Reserve a whole block of memory when the operating system starts (the specific amount of reserved memory is calculated according to the processing capacity of the business)

[0022] b) When running applications with large memory requirements on the Linux operating system, since the default page size is 4KB, many TLB misses and page fault interrupts will be generated, which will greatly affect the performance of the application. When the operating system uses 2MB or more as the paging unit, the number of TLB Miss and page fault interrupts will be greatly reduced.

[0023] The present invention us...

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 an operation card driver implementation method based on an application layer. The operation card driver implementation method comprises the following steps of 1, finishing initialization operation in a kernel space; and 2, completing all business processes in the application layer space. Compared with the prior art, the method has the positive effects that a hardware DMA memory and a control register of the operation card are mapped to a user space, an interface is provided to allow an application program to directly put data into a DMA area, and operation card hardwareis allowed to be controlled. After operation is completed, a completion function provided by an application program in advance is called asynchronously, and copying operation of a large amount of data is avoided. And an asynchronous completion mode is used, so that a plurality of complex operations are allowed to be realized in one thread, and CPU consumption caused by excessive CPU task switching is avoided. According to the method, the operational capability of the CPU is fully utilized, and the overall performance of complex operation is improved.

Description

technical field [0001] The invention relates to an application-layer-based computing card driver implementation method. Background technique [0002] With the research and development of transport layer devices and application layer devices, more and more devices need to call hardware devices at high speed at the application layer to achieve complex computing services. The traditional working mode of calling kernel services by applications cannot meet the performance requirements gradually. [0003] The typical process of using computing cards in the existing application layer is as follows: figure 1 shown, including the following steps: [0004] (1) The application prepares the raw data. Initiate a system call, call the interface provided by the driver, and pass the address of the original data to the driver. [0005] (2) The driver program copies the original data of the application program to the DMA area accessible by the computing card, operates the hardware of the ...

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/4401G06F13/28
CPCG06F9/4411G06F13/28
Inventor 单金良阳春朱红宏胡炜李国涛李文张涛
Owner NO 30 INST OF CHINA ELECTRONIC TECH GRP CORP
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