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
CN110795092AActive Publication Date: 2020-02-14CHINA STANDARD SOFTWARE

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA STANDARD SOFTWARE
Publication Date
2020-02-14

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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