Method and system for enhancing performance of WEB servers on basis of zero copy

A WEB server and performance technology, applied in the computer field, can solve the problems of multi-system time and space resources, occupying large CPU resources, occupation, etc., to save system space and resources, improve system performance, and improve the effect of receiving and sending rates

Inactive Publication Date: 2018-05-29
GUANGDONG EFLYCLOUD COMPUTING CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There are two main factors that affect the performance of the web server: one is that the network card receives and sends data packets from the network by means of interruption, and there is data copying between the network card and the upper system, and the interruption operati

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
  • Method and system for enhancing performance of WEB servers on basis of zero copy
  • Method and system for enhancing performance of WEB servers on basis of zero copy
  • Method and system for enhancing performance of WEB servers on basis of zero copy

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and through specific implementation methods.

[0034] A method for improving the performance of a WEB server based on zero copy in this embodiment is to load the PF_RING module in the Linux kernel, and the network card loaded with the PF_RING module adopts the NAPI method based on device polling to capture data packets, and uses DMA to transfer the data packets Stored in the ring buffer, the PF_RING module directly transmits the data packet to the application layer through the MMAP mechanism.

[0035] Preferably, the NAPI method adopts the combination of an interrupt mechanism and a polling mechanism. When the amount of data is low, the interrupt mechanism is used to receive data, and when the amount of data is high, the polling mechanism is used to receive data, such as figure 1 As shown, including the process of the network card capturing data...

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 method for enhancing performance of WEB servers on the basis of zero copy. The method is characterized by comprising the following steps of: loading a PF-RING module in a linux kernel; capturing a data package by a network card which is loaded with the PF-RING module by adoption of an equipment polling-based NAPI manner; storing the data package in a ring-shaped cache byadoption of a DMA manner; and directly transmitting the data package to an application layer by the PF-RING module through an MMAP mechanism. According to the method, intermediate copy processes, in internal storage of hosts, of communication data, so that the data package reception and transmission speeds are improved, the data communication efficiency is improved, corresponding speeds are improved and then the performance of web servers are improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a zero-copy-based method and system for improving the performance of a WEB server. Background technique [0002] A web server is also called a web server, a WWW server, or an Http server. It receives user requests from the network and responds to user requests. The web server can respond to static pages or pictures, and can also delegate the generation of the response to some other programs into CGI, JSP, PHP scripts, etc., and the processing results of the request are finally returned to the browser in the format specified by the Http protocol. With the development of modern communication technology, the Web system is an important way of publishing and communicating various information, so its performance is the top priority. Facing tens of thousands of users, it is urgent to improve the performance of the Web server, which requires Web server It has higher packet processing ...

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): G06F13/34H04L12/861H04L12/863
CPCG06F13/34H04L47/6225H04L49/9073
Inventor 李绍良黄衍博杨燕清黄春豪
Owner GUANGDONG EFLYCLOUD COMPUTING 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