Write data monitoring method and system based on EPOLL
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- 中电福富信息科技有限公司
- Publication Date
- 2016-12-07
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2
Abstract
Description
technical field
[0001] The invention relates to a method and system for monitoring data written based on EPOLL. Background technique
[0002] epoll is a poll improved by the Linux kernel to handle a large number of file descriptors. It is an enhanced version of the multiplexed IO interface select / poll under Linux; it can significantly improve the program in the case of only a small number of active connections in a large number of concurrent connections. The CPU utilization of the system.
[0003] However, the edge trigger (ET) mode has fewer system calls than the level trigger (LT). If the send buffer is not full, epoll will notify the write event until the developer fills the send buffer, and then epoll will send the buffer next time Notify the write event when it changes from full to not full. When the socket is not writable. We need to temporarily store the unsent data in the waiting list, so there is a hidden danger, that is, when the client only sends but does not r...