Method for executing Epoll system calling by Docker

An event and file descriptor technology, applied in the field of Docker executing Epoll system calls, can solve the problems of Docker container efficiency reduction and Docker container function defects, and achieve the effect of improving the response speed

Active Publication Date: 2020-02-14
CHINA STANDARD SOFTWARE
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the above solution is not used, the Docker container will have functional defects in the 64-bit embedded system. Using such a solution will reduce the efficiency of the Docker container

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 for executing Epoll system calling by Docker
  • Method for executing Epoll system calling by Docker

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to have a further understanding of the technical solution and beneficial effects of the present invention, the technical solution of the present invention and its beneficial effects will be described in detail below in conjunction with the accompanying drawings.

[0041] The purpose of the present invention is to provide a more efficient calling method for the problem that the existing Docker responds too slowly when executing the Epoll system call. The method that Docker provided by the present invention executes the Epoll system call still uses the mode of directly calling Epoll.

[0042] figure 2 For Docker of the present invention, execute the flow chart of the method for Epoll system call, as figure 2 As shown, the present invention first creates an epoll instance by the system call Epoll_Create1 provided by go when Docker executes the system call, returns the file descriptor of the instance, and then registers the specific file descriptor needed by the...

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 relates to a method for executing Epoll system calling by a Docker and application of the method, and the method comprises the following steps: creating an Epoll instance, and returninga file descriptor of the instance; registering a required specific file descriptor; waiting for a registration event; after monitoring that a certain event occurs, detecting whether an error is reported in the event occurrence process or not; detecting the property of the event, if the event is an OOM event, entering an OOM event processing flow, and if the event is a conventional event, performing the next operation; judging whether the event is an EPOLLHUP event or not, if not, ending, and if yes, performing the next operation; and deleting the EPOLLHUP event from the event list corresponding to the corresponding file descriptor, and reporting an error if the deletion fails. According to the method and the device, the defect that the executive quit speed of an existing Docker container is low is overcome, and the response speed of the Docker container is increased.

Description

technical field [0001] The invention relates to the technical field of computer software optimization, in particular to a method for Docker to execute an Epoll system call and an application thereof. Background technique [0002] With the continuous development of Internet technology, Internet applications appear in all aspects of people's lives. The background services of these applications are under tremendous pressure all the time. When a large number of user requests flock to the background server, it will cause huge pressure on the server. This has high requirements on the performance of the server. Although the intuitive way of using a server with higher performance or increasing the number of servers is very simple, it will bring additional overhead and cause a rapid increase in cost. Therefore, how to do more with limited resources has always been the focus. [0003] In recent years, with the development of container technology, Docker containers have entered the pu...

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): G06F8/36G06F8/41
CPCG06F8/36G06F8/443Y02D10/00
Inventor 孟杰薛皓琳卢彦张蓓刘莉
Owner CHINA STANDARD SOFTWARE
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