当前位置:网站首页>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 .
边栏推荐
- Where is 5g really powerful? What is the difference with 4G?
- 物联网?快来看 Arduino 上云啦
- How to enhance influence
- [performance tuning basics] performance tuning standards
- Byte and Tencent have also come to an end. How fragrant is this business of "making 30million yuan a month"?
- gateway
- How to apply agile development ideas to other work
- Anti epidemic through science and technology: white paper on network insight and practice of operators | cloud sharing library No.20 recommendation
- Prototype mode -- clone monster Army
- Difference between map and object
猜你喜欢

The difference between RPC and restful

Grating diffraction

Apple, Microsoft and Google will no longer fight each other. They will work together to do a big thing this year

Interpreter mode -- formulas for dating

Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading

在Dialog中使用透明的【X】叉叉按钮图片

云计算发展的 4 个阶段,终于有人讲明白了

Enjoy yuan mode -- a large number of flying dragons

网络安全审查办公室对知网启动网络安全审查,称其“掌握大量重要数据及敏感信息”

"Super point" in "Meng Hua Lu", is the goose wronged?
随机推荐
The JS method parameter passed a number beginning with 0. A magical problem occurred and bothered me for a long time
Predicate
Difference between map and object
【建议收藏】时间序列预测应用、paper汇总
年轻人捧红的做饭生意经:博主忙卖课带货,机构月入百万
Simulation lottery and probability statistics experiment of the top 16 Champions League
情绪识别AI竟「心怀鬼胎」,微软决定封杀它!
开放可编程基础设施(OPI)项目,重新定义DPU/IPU
Agency mode -- Jiangnan leather shoes factory
CVPR 2022 remembers Sun Jian! Tongji and Ali won the best student thesis award, and hekaiming was shortlisted
Apple, Microsoft and Google will no longer fight each other. They will work together to do a big thing this year
Implement the redis simple client customized based on socket
用自身细胞作为原料,首例3D打印耳朵移植成功!未来可打印更复杂器官
物联网?快来看 Arduino 上云啦
Wechat applet custom tabbar
OpenVINO2022 Dev Tools安装与使用
"Super point" in "Meng Hua Lu", is the goose wronged?
使用gorm查询数据库时reflect: reflect.flag.mustBeAssignable using unaddressable value
Stackoverflow 年度报告 2022:开发者最喜爱的数据库是什么?
红象云腾完成与龙蜥操作系统兼容适配,产品运行稳定