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

Linux Data transmission method and device and user terminal

A data transmission method and the technology of the first address, applied in the field of devices and user terminals, Linux data transmission method, can solve the problems of inconvenient data transmission, restriction of data transmission operation of the operating system, system burden and slow down system operation, etc.

Inactive Publication Date: 2018-06-22
SHENZHEN FORWARD IND CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

From the perspective of the CPU, in order to protect the security of the kernel, Linux divides the architecture into user space and kernel space. The data copy operation in the process of data transmission leads to a huge CPU overhead, which limits the operating system's ability to effectively perform data transmission operations. ability
[0004] To sum up, the existing data transmission methods under the Linux system all realize data transmission through data copying. Data copying causes a large amount of CPU and other system resources to be occupied, and even causes a burden on the system that slows down the operation of the entire system, which greatly limits Linux. The data transmission capability and execution capability of the system brings inconvenience to the maintenance personnel based on the data transmission under the Linux system

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
  • Linux Data transmission method and device and user terminal
  • Linux Data transmission method and device and user terminal
  • Linux Data transmission method and device and user terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] refer to figure 2 , the first embodiment of the present invention provides a Linux data transmission method, including:

[0050] Step S10, generating an address translation interface between the virtual address and the physical address according to the known first address of the physical space and the first address of the mapped virtual space;

[0051] As mentioned above, what needs to be understood is that Linux is a set of Unix-like operating systems that are free to use and spread freely. It is a multi-user, multi-tasking, multi-threading and multi-CPU operating system based on POSIX and UNIX. It can run major UNIX utility software, application programs and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits Unix's network-centric design idea and is a multi-user network operating system with stable performance.

[0052] As mentioned above, based on the Linux system, a large amount of CPU needs to be used for data transmission, so as to reali...

Embodiment 2

[0059] refer to image 3 , the second embodiment of the present invention provides a Linux data transmission method, based on the above figure 2 In the first embodiment shown, before the step S10 "generate an address translation interface between the virtual address and the physical address according to the known first address of the physical space and the first address of the mapped virtual space", it also includes:

[0060] Step S30, when the memory space is initialized, map the physical memory reserved or requested by the system through mmap to obtain the first address of the virtual space.

[0061] Above, what needs to be understood is that mmap maps a file or other object into memory. Files are mapped onto multiple pages, and if the size of the file is not the sum of the sizes of all pages, the unused space of the last page will be cleared. mmap plays a big role in the user space mapping call system. The mmap operation provides a mechanism for user programs to directl...

Embodiment 3

[0064] refer to Figure 4 , the third embodiment of the present invention provides a Linux data transmission method, based on the above figure 2 In the first embodiment shown, after the step S10 "generate an address translation interface between the virtual address and the physical address according to the known first address of the physical space and the first address of the mapped virtual space", it also includes:

[0065] Step S40, after the available memory is released, confirm the adjacent available memory adjacent to the available memory;

[0066] As mentioned above, this embodiment implements memory allocation management by establishing a memory management mechanism. After the memory is released through the user's use or the system's automatic allocation, the memory management mechanism confirms the released free memory and its adjacent adjacent available memory, for example, the available memory adjacent to the memory address of the available memory in the memory poo...

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 Linux Data transmission method and device and a user terminal, wherein the method comprises: generating an address conversion interface between virtual addresses and physicaladdresses according to a known physical space starting address and a mapped virtual space starting address; allocating physical space memory blocks corresponding to available physical addresses in a memory to be used, and acquiring virtual space memory blocks of the virtual addresses corresponding to the physical addresses through the address conversion interface such that the virtual space memoryblocks are operated to indirectly operate the corresponding physical space memory blocks during writing of data to be stored. Zero-copy transmission of data is achieved through memory allocation, nosystem resources such as a CPU (central processing unit) are not used, system slowdown in case of high quantity of data transmission due to system burden is avoided, data transmission capacity and executing capacity of the Linux system are greatly improved, and data transmission based on the Linux system is facilitated for maintainers.

Description

technical field [0001] The present invention relates to the technical field of Linux data transmission, and more specifically, to a Linux data transmission method, device and user terminal. Background technique [0002] Linux is a set of Unix-like operating systems that are free to use and spread freely. It is a POSIX and UNIX-based multi-user, multi-tasking, multi-threading and multi-CPU operating system. It can run major UNIX utility software, application programs and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits Unix's network-centric design idea and is a multi-user network operating system with stable performance. [0003] Modern CPUs usually implement different working modes, corresponding to different levels of permissions. From the perspective of the CPU, in order to protect the security of the kernel, Linux divides the architecture into user space and kernel space. The data copy operation in the process of data transmission leads to a h...

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): G06F12/06G06F12/0842G06F12/1009G06F9/50
CPCG06F9/5016G06F9/5022G06F9/5077G06F12/0623G06F12/0842G06F12/1009
Inventor 杨雄
Owner SHENZHEN FORWARD IND CO LTD
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