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

Data transmission method between servers and servers

A data transmission method and server technology, which are applied in the data transmission method between servers and the server field, can solve the problems of wasting system resources, application processes cannot work normally, and cannot meet application process space requirements, etc., so as to save system resources and improve performance effect

Active Publication Date: 2012-02-01
TAOBAO CHINA SOFTWARE
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the inventor found in the research that in the second data transmission method above, the shared memory shared by the data distribution process and the application process is a space that cannot be changed in size and is pre-created by the data distribution process according to the prediction result. In practical applications, if the space of the created shared memory is smaller than the space required by the data of all application processes, the space requirements of the application process cannot be met, causing the application process to fail to work normally; if the space of the created shared memory is larger than that of all application processes The space required by the data will waste system resources

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0048] The data transmission method between servers is described in detail below by taking a specific application scenario as an example. Wherein, in this application scenario, it is the data transmission between the front-end server and the back-end server. In addition, for the convenience of describing the process, it is assumed that the front-end server has multiple application processes for data transmission. Since each application process can use the solution in this application for data transmission, only one of the application processes A is used in this embodiment. illustrate. see Figure 5 , which is a flowchart of an embodiment of a data transmission method between servers in the present application, such as Figure 5 As shown, the data transmission method includes:

[0049] Step 501: when the application process A of the front-end server starts, it creates a file 1 according to its own demand for memory space, and maps the created file 1 to a shared memory a;

...

Embodiment 3

[0085] Corresponding to the foregoing data transmission method between servers, an embodiment of the present application further provides a server. see Figure 7 , which is a schematic structural diagram of an embodiment of a server in the present application, and the server includes: a shared memory creation module 701 , a remaining space detection module 702 , a data arrival detection module 703 and a data transmission module 704 . The internal structure and connection relationship of the device will be further introduced below in conjunction with the working principle of the device.

[0086] The shared memory creating module 701 is used to create respective files for each application process according to the memory space requirements of each application process, map the created file into a shared memory, and send the file handle of the created file to the remaining space detection module and data arrival detection module, the file handle carries shared memory information; ...

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 embodiment of the invention discloses a data transmission method between servers and servers. The method comprises the following steps of: creating respective files according to the requirement of respective internal memory spaces by an application process; mapping the files into shared memories; transmitting a created file handle to a data distribution process; detecting whether the respectively-created shared memory has residual space for storing respective data to be processed by the application process or not; if so, coping the respective data to be processed in respective shared memories; detecting whether the respective data to be processed in the application process reach the shared memory or not by the data distribution process; if so, acquiring respective data to be processed in the application process from respective shared memories of the application process; and transmitting the acquired data to a far-end server by the data distribution progress. According to the embodiment of the invention, system resources are saved while normal work of the application process is ensured and the efficiency of data transmission and the performance of the server are improved.

Description

technical field [0001] The present application relates to the field of communication and computer technology, and in particular to a data transmission method between servers and the server. Background technique [0002] In various network environments, data transmission between servers is often involved. For example, the front-end server will send its own data to the back-end server, and the back-end server will process the data; after the back-end server processes the data, it will return the processed data to the front-end server. [0003] In the prior art, a method for realizing data transmission between servers is as follows: in server A, the operating system copies the data in the application process to the kernel (the first data copy), and then passes The communication mechanism, such as the unix domain mechanism, sends the data in the kernel to the data distribution process; after the data distribution process receives the data, the operating system allocates a memor...

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): H04L29/06H04L29/08
Inventor 董昊
Owner TAOBAO CHINA SOFTWARE
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