当前位置:网站首页>Epoll introduction
Epoll introduction
2022-07-01 11:22:00 【Daily enlightenment】
Multiple client connections arrive kernel( kernel )
Threads / process read fd Read the kernel
BIO:socket stay This period is blocking ( Multi process )
NIO: Synchronous non blocking period ( But the process )
Multiplexing NIO:kernel Added in select
NIO: If there is 1000fd Call on behalf of user process rotation 1000 Time kernel, It costs a lot
Multiplexing NIO:kernel Added in select , Kernel first select(1000fds), Return useful , Process re read(fd)
User mode 、 Kernel mode
Kernel area , Users cannot access , So we need to transfer data , Lead to fd Relevant data are copied around
How to improve : Spaces ( Red and black trees 、 Linked list 、mmap) Part of the kernel , Also part of the user
In the process, the file descriptor is placed in the red black tree , Put the data into the linked list
Zero copy :kernel More than one sendfile( system call )(out,in) 、read(fd)、write(fd)
Network card to kernel socketIO
File to kernel file IO
sendfile: Progress tune sendfile The kernel reads data and gets it to the buffer , Send it directly
边栏推荐
- No statements may be issued when any streaming result sets are open and in use on a given connection
- 2022/6/28学习总结
- Can I open a securities account anywhere? Is it safe to open an account
- [AI information monthly] 350 + resources! All the information and trends that can't be missed in June are here! < Download attached >
- 金融壹账通拟7月4日香港上市:2年亏近30亿 市值蒸发超90%
- 田溯宁投的天润云上市:市值22亿港元 年利润下降75%
- Web foundation of network security note 02
- Node version manager NVM installation and switching
- redis配置环境变量
- applyMiddleware 原理
猜你喜欢

Oracle和JSON的结合

【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>

Cvpr22 | CMT: efficient combination of CNN and transformer (open source)

"Target detection" + "visual understanding" to realize the understanding and translation of the input image (with source code)

软件项目管理 9.2.软件项目配置管理过程

Exploration and practice of inress in kubernetes

In June 2022, it was the first programming language?!

Brief analysis of edgedb architecture

达梦数据冲刺科创板:拟募资24亿 冯裕才曾为华科教授

Neurips 2022 | cell image segmentation competition officially launched!
随机推荐
The first anniversary of the data security law, which four major changes are coming?
TEMPEST HDMI泄漏接收 4
redis常识
Can servers bundled with flask be safely used in production- Is the server bundled with Flask safe to use in production?
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
redis中value/SortedSet
证券账户随便哪里开都能使用吗 开户安全吗
8款最佳实践,保护你的 IaC 安全!
How to make the development of liquidity pledge mining system, case analysis and source code of DAPP defi NFT LP liquidity pledge mining system development
Exposure:A White-Box Photo Post-Processing Framework阅读札记
今天开户今天能买股票吗?在线开户是很安全么?
Oneconnect plans to be listed in Hong Kong on July 4: a loss of nearly 3 billion in two years, with a market capitalization evaporation of more than 90%
Internal control of fund managers
redis中value/list
華為設備配置大型網絡WLAN基本業務
Oracle和JSON的结合
In June 2022, it was the first programming language?!
No statements may be issued when any streaming result sets are open and in use on a given connection
提问:测试工程师应该具备哪些职业素养?
Nordic nrf52832 flash download M4 error