当前位置:网站首页>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
边栏推荐
- openinstall:微信小程序跳转H5配置业务域名教程
- [Maui] add click events for label, image and other controls
- 金融壹账通拟7月4日香港上市:2年亏近30亿 市值蒸发超90%
- Yoda unified data application -- Exploration and practice of fusion computing in ant risk scenarios
- Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
- sshd_ Discussion on permitrotlogin in config
- Node version manager NVM installation and switching
- 力扣(LeetCode)181. 超过经理收入的员工(2022.06.29)
- 证券账户随便哪里开都能使用吗 开户安全吗
- 8 best practices to protect your IAC security!
猜你喜欢

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

Neurips 2022 | cell image segmentation competition officially launched!

Several cases of index failure

田溯宁投的天润云上市:市值22亿港元 年利润下降75%

Exploration and practice of inress in kubernetes

索引失效的几种情况

为什么一定要从DevOps走向BizDevOps?

Combinaison Oracle et json

Jd.com renewed its cooperation with Tencent: issuing class A shares to Tencent with a maximum value of US $220million

CVPR 2022 | 基于密度与深度分解的自增强非成对图像去雾
随机推荐
证券账户随便哪里开都能使用吗 开户安全吗
Huawei Equipment configure les services de base du réseau WLAN à grande échelle
内核同步机制
Can servers bundled with flask be safely used in production- Is the server bundled with Flask safe to use in production?
Oracle和JSON的結合
Tempest HDMI leak receive 5
Get key code
树莓派4B安装tensorflow2.0[通俗易懂]
activity工作流引擎
Redis启动与库进入
Tempest HDMI leak receive 3
When is testing not unit testing- When is a Test not a Unit-test?
Width and widthstep of iplimage
sshd_config 中 PermitRootLogin 的探讨
Intel Labs announces new progress in integrated photonics research
“目标检测”+“视觉理解”实现对输入图像的理解及翻译(附源代码)
金鱼哥RHCA回忆录:DO447使用Ansible与API通信--使用Ansible Tower API启动作业
2022年6月编程语言排行,第一名居然是它?!
Combination of Oracle and JSON
放弃深圳高薪工作回老家