当前位置:网站首页>What are the problems with traditional IO? Why is zero copy introduced?
What are the problems with traditional IO? Why is zero copy introduced?
2022-06-24 20:40:00 【InfoQ】
Conventional IO What are the problems ? Why zero copy ?
read(file, tmp_buf, len);
write(socket, tmp_buf, len);

- The first copy, Copy the data on the disk into the buffer of the operating system kernel , The process of copying is through DMA Carrying .
- Second copy, Copy the data from the kernel buffer to the user's buffer , So our application can use this data , This copy to process is done by CPU Accomplished .
- The third copy, Just copy the data to the user's buffer , And then copy it to the kernel socket In the buffer of , The process is still by CPU Carrying .
- The fourth copy, Put the kernel of socket Data in the buffer , Copy to the network card buffer , This process is again caused by DMA Carrying .
边栏推荐
- C语言实现扫雷(简易版)
- "Super point" in "Meng Hua Lu", is the goose wronged?
- Stackoverflow 年度报告 2022:开发者最喜爱的数据库是什么?
- Sequence stack version 1.0
- 图像PANR
- 对“宁王”边卖边买,高瓴资本“高抛低吸”已套现数十亿
- Dongyuhui is not enough to bring goods to "rescue" live broadcast
- Builder mode -- Master asked me to refine pills
- Combination mode -- stock speculation has been cut into leeks? Come and try this investment strategy!
- Predicate
猜你喜欢

顺序栈遍历二叉树

微信小程序中使用vant组件

Leetcode (135) - distribute candy

Leetcode(135)——分发糖果

年轻人捧红的做饭生意经:博主忙卖课带货,机构月入百万

顺序表的基本操作

How to apply agile development ideas to other work

The four stages of cloud computing development have finally been clarified

基于SSM的物料管理系统(源码+文档+数据库)

Two fellow countrymen from Hunan have jointly launched a 10 billion yuan IPO
随机推荐
Internet of things? Come and see Arduino on the cloud
Berkeley, MIT, Cambridge, deepmind et d'autres grandes conférences en ligne: vers une IA sûre, fiable et contrôlable
Set up your own website (14)
How to apply agile development ideas to other work
图像PANR
Agency mode -- Jiangnan leather shoes factory
How does the video platform import the old database into the new database?
Vant component used in wechat applet
Basic properties and ergodicity of binary tree
顺序栈1.0版本
Wait for the victory of the party! After mining ebb tide, graphics card prices plummeted across the board
消息称腾讯正式宣布成立“XR”部门,押注元宇宙;谷歌前 CEO:美国即将输掉芯片竞争,要让台积电、三星建更多工厂...
CVPR 2022缅怀孙剑!同济、阿里获最佳学生论文奖,何恺明入围
Memo mode - game archiving
unity之模糊背景(带你欣赏女人的朦胧美)
Sequence stack version 1.0
网络安全审查办公室对知网启动网络安全审查,称其“掌握大量重要数据及敏感信息”
字节、腾讯也下场,这门「月赚3000万」的生意有多香?
视频平台如何将旧数据库导入到新数据库?
Prototype mode -- clone monster Army